I am setting up the shipping using the Zone Rates module. Besides the weight ranges to determine prices, I need to add an extra 0.6% of the $ total of the sale to pay the shipping insurance. How can I do this? Thanks in advance!
I am setting up the shipping using the Zone Rates module. Besides the weight ranges to determine prices, I need to add an extra 0.6% of the $ total of the sale to pay the shipping insurance. How can I do this? Thanks in advance!
You can customize the shipping module you are using for this ...
I recommend cloning the shipping module first, then customizing that one so you do not have your code overwritten on future upgrades ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Linda, thanks for your reply. I didn't notice it until now, had not realized I had notifications off for the subscriptions...
Tell me, how do I find out what the order total is from that file, the shipping module I'll be editing, and how can I display and add this percentage as part of the shipping?
Look in the shipping module for where the rate is determined and you will see:
PHP Code:
$order_total_amount = $_SESSION['cart']->show_total() - $_SESSION['cart']->free_shipping_prices() ;
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
I look and look and still can't figure out well how to implement the extra 0.6% for the insurance in the shipping module. I was wondering if it'd be better to implement it with an Order Total module.
I ended up adding it in the file you mentioned, at the end of the weight method case.
PHP Code:
// Here we'll add the shipping insurance 0.6%. ~Anguz
$shipping += $_SESSION['cart']->show_total() * 0.006;
Thanks for the update on what worked for you for this ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Sure. Thank you for your help.
Bookmarks