Oba-san
- Join Date:
- Sep 2003
- Location:
- Ohio
- Posts:
- 62,757
- Plugin Contributions:
- 1
Different shipping methods for different categories
webpdq:
It does NOT work but maybe someone can show me how to fix it.
// disable when products_model is not all books this goes in item
global $db;
if (($total_count - $_SESSION['cart']->count_contents('products_model','book') == 0)) {
// show
$this->enabled = true;
} else {
// hide
$this->enabled = false;
}
You have an error in your code, you used a single = you need a double == in the IF ...
Linda McGrath
If you have to think ... you haven't been zenned ...
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!