You say I could customize to do this based on the amount. Does that mean I would have to customize the php code or is there already something in place that would do this easily?
Thanks again.
You say I could customize to do this based on the amount. Does that mean I would have to customize the php code or is there already something in place that would do this easily?
Thanks again.
You would customize the shipping modules(s) php code for this where you see the handling charge being applied and combined with the 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!
I added the following code:
if ($cost > 65)
{
$methods[] = array('id' => $type,
'title' => $title,
'cost' => ($cost + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);
}
else
{
$methods[] = array('id' => $type,
'title' => $title,
'cost' => $cost * $shipping_num_boxes);
}
The problem with this is that the $COST variable is not the subtotal of the cart, it is the cost of shipping.
So I see two different options here. 1.) Find the variable for the sub-total of the cart and use that variable in this code instead of $COST. 2.) Find variable for the sub-total and in that module, change the value of MODULE_SHIPPING_USPS_HANDLING accordingly.
Any suggestions here?
Thanks.
I ended up adding the following code to get the sub-total:
$cartShowTotal = $_SESSION['cart']->show_total();
if ($cartShowTotal > 65){...
instead of uses the $COST variable
Thanks again for your help.
Let me know if this could cause problems.
I'd have to test it but that is the right idea that you are using ...![]()
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!