Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Quantity of Items in Order


sharky92663

Recommended Posts

Posted

Hi,

 

Can anyone point me to the file(s) that actually calculate the total number of items in the order? Also, is there a contribution out there that allows me to look up each item in the cart? I want to go through each item in the shopping cart and determine if it is within a certain category/group. Any help would be great.

 

JH

Posted
Hi,

 

Can anyone point me to the file(s) that actually calculate the total number of items in the order? Also, is there a contribution out there that allows me to look up each item in the cart? I want to go through each item in the shopping cart and determine if it is within a certain category/group. Any help would be great.

 

JH

 

$products = $cart->get_products();

$n = sizeof($products);

for ($i=0; $i<$n; $i++) {

do your stuff

}

Treasurer MFC

Posted
Hi,

 

Can anyone point me to the file(s) that actually calculate the total number of items in the order? Also, is there a contribution out there that allows me to look up each item in the cart? I want to go through each item in the shopping cart and determine if it is within a certain category/group. Any help would be great.

 

JH

 

You can take a look at the shopping_cart.php file.

Have a nice play with it.

good luck.

Archived

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

×
×
  • Create New...