I already figured that there would have to be some kind of "if" statement in the code saying that if the shipping was less than $7.95 then make it $7.95, but I don't know how to do that. I am only just beginning to figure out how PHP works.
I already figured that there would have to be some kind of "if" statement in the code saying that if the shipping was less than $7.95 then make it $7.95, but I don't know how to do that. I am only just beginning to figure out how PHP works.
Customize the code from:
to now force the amount ...Code:$methods[] = array('id' => $type, 'title' => $this->types[$type], 'cost' => ($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes);
Code:if ($cost < 7.95) { $methods[] = array('id' => $type, 'title' => $this->types[$type], 'cost' => (7.95 + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes); } else { $methods[] = array('id' => $type, 'title' => $this->types[$type], 'cost' => ($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes); }
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!]
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!
Thanks. That did the trick, although, after getting the client on the phone, they decided to go a different route with the shipping, so I didn't end up needing this after all. Isn't that the way it is sometimes?But thanks for the help anyway.
Thanks for the update that this would have worked for you in another life ... alas, that is the way things go with clients ...![]()
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!]
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!
Hi Ajeh,
I want to know how this can be implemented in Zones shipping module, please provide the code modification.
I also want to know is it possible that a handling fee ads if product from particular category or particular products adds up to the cart.
For example one of my cart deal in pets and it have pets accessories as well as live pets. Pet accessories can be shipped with standard shipping charges but live pets need special packing so will cost extra.
Any Idea how can be implemented.
Thanking you in advance.
~ Time
Basically you are altering similar code for zones.php ...
Code:$this->quotes = array('id' => $this->code, 'module' => MODULE_SHIPPING_ZONES_TEXT_TITLE, 'methods' => array(array('id' => $this->code, 'title' => $shipping_method, 'cost' => $shipping_cost)));
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!]
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!
Can you modify and say how it can be done. Like suppose we give 5lbs as box max weight then is it possible to workout minimum fee on per box basis.
And I would like to know is my 2nd question possible to do, if so then how.
~ Time
*** duplicate post deleted *** Please do not post in more than one thread.
Last edited by Kim; 29 Mar 2009 at 06:02 PM.
I'm not sure if I'm asking the question in the right part of the forum, but here goes anyway. This is my first time using Zen Cart, I am also new to PHP. The shop I am working on sells bottled beer online. We only sell in multioples of 12 bottles (ie delivery of full cases only) though they can be a mixture of 12 different products, or 12 of the same. This will be made clear throughout the site.
We have 3 needs for shipping:
1. Free delivery within two counties in the UK (about a 60-80 miles radius of our base) for one case or more.
2. Courier delivery within the rest of Engalnd at £6.50 per case of 12
3. Courier delivery to Scotland and Wales and Ireland at a cost of £9 per case of 12.
I know I can set a delivery price of £0.50 per item and have it add up to £6 per case of 12 for delivery, but how do I make it so the customer tells us at checkout which of the three options they have chosen and how do I get the shipping costs calculated? and how can I set those options up??
I am afraid I am struggling to under stand how the shipping module works
Any help greatly appreciated.
Thanks
I'd recommend that you start a new thread with this question since it doesn't have anything to do with setting up a minimum shipping fee. You'd put it in the Shipping and Payment Modules Forum, the same forum that this topic is in.
Regarding your question about how the customer tells you which shipping method they want, all the available shipping options will be displayed on the first checkout page. They mark which one they want.