Error Adding Shipping DIscount
Permalink Browser Info Environment
Attempting to add a free shipping discount results in this error:
when using V 2.0.8 of core commerce. This is because this addon does not set the $shippingMethods property.
Adding
(which I stole from the native flat rate shipping) into the controller.php fixes the error
Warning: Invalid argument supplied for foreach() in packages/core_commerce/models/shipping/method.php on line 19
when using V 2.0.8 of core commerce. This is because this addon does not set the $shippingMethods property.
Adding
protected $shippingMethods = array( 'LOCALPICKUP' => 'Local Pickup' );
(which I stole from the native flat rate shipping) into the controller.php fixes the error
Type: | Discussion |
---|---|
Status: | New |
Thanks, will do!
Hi Todd
Are you able to share the fixes as i need to implement this urgently to the table-based shipping addon, which isn't supported thanks in advance.
Are you able to share the fixes as i need to implement this urgently to the table-based shipping addon, which isn't supported thanks in advance.
Please try the attached version of TBS. It's much newer than the version available in the Marketplace and includes support for the free shipping discount.
Hi Todd
Thanks for that, however before table based shipping allowed for price from and to now its just from and so i can no longer specify prices i.e. 0-50 is 5 and 51+ is free like i did before, please help, thanks
Thanks for that, however before table based shipping allowed for price from and to now its just from and so i can no longer specify prices i.e. 0-50 is 5 and 51+ is free like i did before, please help, thanks
You can specify ranges with TBS. The lower value is just implied. So, if the lowest "Up to" value you enter is 5 that "row" would include order with up to 5 products.
By the way, table based shipping is not a product I support. It was written by another developer. The only reason I have a newer version is because I have developed it for my own clients.
By the way, table based shipping is not a product I support. It was written by another developer. The only reason I have a newer version is because I have developed it for my own clients.
Thanks again,
Todd