New Zenner
- Join Date:
- Nov 2009
- Posts:
- 10
- Plugin Contributions:
- 0
Shopping Cart: loop through products to turn off Flat Rate shipping for certain prods
Using ZenCart for selling tickets to events. I am creating a mod that will turn off the flat rate shipping module if an event is within 7 days of current date (I have a new column in products_description that holds the event date).
I am having a problem writing the loop in my function. Where are the shopping cart product ids kept? Or put another way how do I access the items in the shopping cart - $cart is a global var but I cannot fund docs on it.
Any help getting the products_id out of the shopping cart from within a loop would be great.