Custom Shipping on Core Commerce
I tried to set up a couple of custom shipping types on an eCommerce site I'm working on but when I clicked to install them I received this error and now don't know how to get rid of it...
Fatal error: Class 'CoreCommerceNonUkShippingTypeController' not found in /var/www/vhosts/maryreedart.co.uk/httpdocs/packages/core_commerce/models/shipping/type.php on line 223
Hopefully someone out there knows how to get rid of this!
Can you post a copy of the controller.php you're using? you'll have to change the extension of the file to .txt (controller.txt) but that will help others see exactly where the error is coming from.
No worries... could you just let me know please where I can locate the correct controller.php to send.
How did you go about creating these custom shipping types?
I used this post to create the custom shipping types
Followed the last post and then the lonk to the C5 page on custom shipping types.
Essentially I just wanted a UK £0.00 shipping cost and a rest of the word cost of £4.00
Thanks for your help.
Like the tutorial says the whole folder called "flat" at (your site's root)/packages/core_commerce/models/shipping/types/ has to be copied and moved to here:
(your site's root)/models/shipping/types/flat.
Then the whole folder has to be renamed to whatever you want your class to be (looks like you are going for Non_UK. but the name of the folder can only contain lowercase like this: non_uk.
If I remove any of the 2 shipping types I uploaded into the models/shipping/types etc I now get this message...
Warning: require_once() [function.require-once]: Filename cannot be empty in /var/www/vhosts/maryreedart.co.uk/httpdocs/packages/core_commerce/models/shipping/type.php on line 222
Fatal error: require_once() [function.require]: Failed opening required '' (include_path='.::/var/www/vhosts/maryreedart.co.uk/httpdocs/libraries/3rdparty:/var/www/vhosts/maryreedart.co.uk/httpdocs/concrete/config/../libraries/3rdparty') in /var/www/vhosts/maryreedart.co.uk/httpdocs/packages/core_commerce/models/shipping/type.php on line 222
Bit out of my depth here...
you solved that problem? I´m kinda in the same mess right now!