Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Item count variable


Recommended Posts

In checkout_shipping.php, $cart->count_contents variable allows me to do things in respect to the total amount of items in the cart. Is there any equivalent variable for the quantity of each individual products in the cart?

Link to comment
Share on other sites



The shopping_cart.php file is the last step where quantities can be changed before entering the checkout process. If the customer wishes to change the quantities they would have return to the shopping cart to do so. The closest thing I could find it the Quantity Shopping Cart contribution.





Link to comment
Share on other sites

The orders class loops through each item you could test it and return a true or false if the item qtys are all > 2.





Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile


Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.


For links mentioned in old answers that are no longer here follow this link Useful Threads.


If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...