Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

add up quantity of items in order total


ttoomey

Recommended Posts

I'm trying to custom modify the coupons module by adding a field requiring a minimum quantity of 10 items in order for a coupon to be valid. I have tried to grab information out of the $order->products[$i]['quantity'] array and I can't get any informaiton. I'm just trying to echo out basic information at this point on the checkout_confirmation page with no luck.

 

How would I be able to grab the quantity info from each product and add them together? Does anyone know how to just access this information and I can go on from there?

 

any help is appreciated.

Assault

If you want to find it you'll have to google "Assault T-Shirts" because posting my damn url in my signature is against the forum rules.

T-Shirts with an edge

Powered by OSCommerce + about 20 different custom addons and some Wordpress

Link to comment
Share on other sites

  • 4 weeks later...

becareful in case the code you added concatenates strings instead of adding numbers. You could echo the result at the end of the iterations to see what shows up.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...