Forums / Discounts/Coupons, Gift Certificates, Newsletters, Ads / total value of Gift Certificates in cart

total value of Gift Certificates in cart

Locked

Started by gilby on 7 Jun 2010, 11:20 PM · Views: 914

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
7 Jun 2010, 11:20 PM
#1
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

total value of Gift Certificates in cart

When purchasing Gift Certificates
Is there a way to calculate the total value of Gift Certificates in the shopping cart.

I need a way to exclude the value of Gift Certificates being purchased from being applied to a particular promotion.

25 Jun 2010, 2:14 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: total value of Gift Certificates in cart

You'd have to loop thru the products in the cart and find which ones have products_model like 'GIFTxxxxxxxx'.
Or, depending "where" you want to use this info, the checkout_success page has a number of order-related numbers available for submitting to commission-tracking services, and all the discounts/coupons/gift-certs are summed into one variable there, which might be useful if that's where you need this info.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.