....Continued from previous post
The next two show the shipping estimator with ot_shipping, "free shipping for order over $100.00" turned on and off. Shipping estimator disappears when on.
And lastly, this is a shot of shipping options during checkout with free shipping turned on. All options disappear...
I have ot_shipping "free shipping" turned off as you recommended. Whatever other info you need please let me know.
Thank you!!!
Just for a little clean up ... add to your stylesheet.css
Now if you double check things and go to Modules ... Shipping ... you see only the shipping modules with green dots turned on for:Code:.hiddenField { display: none; } .visibleField { display: inline; }
USPS
You want MEDIA to be Free and still show the other USPS shipping methods, correct?
Are there any constraints based on Products in the Cart that cannot be sent by MEDIA mail for Free?
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!
Thank you for that stylesheet code...I never knew what that extra box was all about
You are correct, the only shipping module is USPS, all others are off. Media Mail to be free when a customer spends $100 or more but still show other USPS shipping methods. No product restraints. Thanks!
Try customizing the file:
/includes/modules/shipping/usps.php
around line 566 with the code in RED:
see if that accomplishes what you are trying to do ...Code:if ($this->usps_countries == 'US' && MODULE_SHIPPING_USPS_FIRST_CLASS_FILTER_US == 'True' && preg_match('#First\-Class#i', $type) && $cnt_first > 1) continue; // bof: offer Free Media if total >= 100.00 if ($_SESSION['cart']->total >= 100.00 && preg_match('#(Media Mail)#i', $type_rebuilt)) { $cost = 0.00; } // eof: offer Free Media if total >= 100.00 $methods[] = array('id' => $type_rebuilt, 'title' => $title, 'cost' => $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!
Very nice! Thank you Ajeh! Coffee and donut coming your way![]()
Thanks for the update that this is working for you now ...
And thanks for the coffee and donuts ... we were really in need of some today ...![]()
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, or anyone reading. Was wondering if I could get help getting this to work with the new USPS mod. I can't find where to put the code, or if the code will even work anymore. Thanks!
I put it in the same place ...
Code:$show_hiddenCost = ''; // bof: offer Free Media if total >= 100.00 if ($_SESSION['cart']->total >= 100.00 && preg_match('#(Media Mail)#i', $type_rebuilt)) { $cost = 0.00; } // eof: offer Free Media if total >= 100.00 $methods[] = array('id' => $type_rebuilt, 'title' => $title . $show_hiddenCost, 'cost' => $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!