My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
Thanks Linda, still having problem. I have followed your instruction, check out is fine now for all 3 modules , mixed cart and cart with only #20 are also working fine but cart without #20 still show all three modules (should be only Singpost), back to the same problem posted #501
In the module for:
posmalaysia
what happens if you change the IF to:
Code:if ($chk_cat > 0 && $chk_cat == $_SESSION['cart']->count_contents()) {
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!
And please confirm these shipping rules:
1. singpost - enable for all categories except cat #20
2. posmalaysia - enable when cart only have cat #20
3. singpostplusposmalaysia - mixed cart enable only when cart have cat #20 plus any other cat
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!
Using a slightly different approach ...
SIGNPOST:
POLYMALAYSIA:Code:// bof: disable for these master_categories_id if (IS_ADMIN_FLAG == false) { // check master_categories_id add one line per master_categories_id $chk_cat = 0; $this->enabled = true; $chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','20'); if ($chk_cat > 0) { $this->enabled = false; } echo '<br>SINGPOST - ' . 'chk_cat: ' . $chk_cat . ' count: ' . $_SESSION['cart']->count_contents() . ' ' . ($this->enabled ? 'ON' : 'OFF') . '<br>' . ' - 1. singpost - show when cart without cat #20' . '<br><br>'; } // eof: disable for these master_categories_id
SINGPOSTPLUSMALAYSIA:Code:// bof: disable for these master_categories_id if (IS_ADMIN_FLAG == false) { // check master_categories_id add one line per master_categories_id $chk_cat = 0; $this->enabled = false; $chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','20'); if ($chk_cat > 0 && $chk_cat == $_SESSION['cart']->count_contents()) { $this->enabled = true; } echo '<br>POSMALAYSIA - ' . '$chk_cat: ' . $chk_cat . ' total count: ' . $_SESSION['cart']->count_contents() . ' ' . ($this->enabled ? 'ON' : 'OFF') . '<br>' . ' - 2. pos_malaysia - show when cart have only cat #20' . '<br><br>'; } // eof: disable for these master_categories_id
Code:// bof: enable for mixed cart where cat #20 must be present plus any other cat global $db, $cart; if (IS_ADMIN_FLAG == false) { // check master_categories_id add one line per master_categories_id $chk_cat = 0; $this->enabled = false; $chk_cat += $_SESSION['cart']->in_cart_check('master_categories_id','20'); if ($chk_cat > 0 && $chk_cat != $_SESSION['cart']->count_contents()) { $this->enabled = true; } echo '<br>SINGPOSTPLUSMALAYSIA -' . 'chk_cat: ' . $chk_cat . ' count: ' . $_SESSION['cart']->count_contents() . ' ' . ($this->enabled ? 'ON' : 'OFF') . '<br>' . ' - 3. singpost_plus_posmalaysia - show when cat #20 plus any other cat<br><br>'; }
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 for the update that this is working and sorry for the delay in getting the three of these working as needed ...![]()
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 am using ver 1.5 zencart if that makes a difference.
Want to do like the first post. I understand alittle about putting the code in the shipping options you do not want it to show in. Just not quite sure how to get it to go to table rate with a mixed cart or other items?
I have 4 different shipping methods
Jewelry Shipping - using flatrate clone called jewelry.php = This I only want categories with jewelry items to use this shipping option. Turn off if there is a combination of jewelry and other items or just other items in the cart and use the Table Rate Option
Linen Shipping - using flaterate clone called linen.php = This I only want categories with linen items to use this shipping option. Turn off if there is a combination of Linen and other items or just other items in the cart and use the Table Rate option
Shoes Shipping - using item shipping clone called shoes.php = This I only want categories with shoes items to use this shipping option. Turn off if there is a combination of shoes and other items or just other items in cart and use Table Rate option.
Table Rate Option - using the table rate clone table1.php = This I only want to use this on all other categories and mixed carts.
Any help would be appreciated.
Mack
Anyone!