In the shipping module for the USPS there is the code:
// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_USPS_STATUS == 'True') ? true : false);
}
The existing IF statement stops the $this->enabled from being able to run when the shipping is Free Shipping and makes its value false ...
You can add other conditions either within this code or after to determine when the $this->enabled should be true or false based on your conditions ...
Free Options freeoptions can also have something similar done on the code for its $this->enabled ...
// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_FREEOPTIONS_STATUS == 'True') ? true : false);
}
So you can again turn off the $this->enabled by setting its value to false when this product is in the cart ...
However, what do you want to happen when 7 things are in the cart and 1 of them is this 1 product?
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!