Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2013
    Location
    New York
    Posts
    5
    Plugin Contributions
    0

    help question Including Gift Vouchers in the Discount Coupon calculation

    Currently, Zencart excludes Gift Voucher purchases from the Discount calculated at checkout. Regardless of whether the Coupon has no restrictions or whether the coupon is specifically set up to allow the GV product code in "restrictions" it is still excluded. To clarify, I would like to offer a $100 Gift Voucher for $90. The coupon would only be allowed once per customer. Also GV proceeds could not be used to then purchase an additional GV or someone could easily game the system. I have looked in the Order Total module and have not found any place where the GV is specifically excluded from the calculation. Can someone point me in the right direction?? PS - I am not a developer so please excuse any misuse of terms.

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    2,873
    Plugin Contributions
    27

    Default Re: Including Gift Vouchers in the Discount Coupon calculation

    This posting by Ajeh (http://www.zen-cart.com/showthread.p...t-certificates) allows your store to offer discounted gift certificates. I'm not sure if that's exactly what you're looking for, but it's pretty close!

  3. #3
    Join Date
    Dec 2013
    Location
    New York
    Posts
    5
    Plugin Contributions
    0

    help question Re: Including Gift Vouchers in the Discount Coupon calculation

    Quote Originally Posted by lat9 View Post
    This posting by Ajeh (http://www.zen-cart.com/showthread.p...t-certificates) allows your store to offer discounted gift certificates. I'm not sure if that's exactly what you're looking for, but it's pretty close!
    Thank you so much LAT9 for the prompt response!! I've read that thread and it seems that the code cannot be used when the GV is priced are by attributes, which is how ours is priced, so maybe there is no way to do this?

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    66,819
    Plugin Contributions
    6

    Default Re: Including Gift Vouchers in the Discount Coupon calculation

    You could customize the function is_product_valid and customize the section for:
    Code:
        if (preg_match('/^GIFT/', $product->fields['products_model'])) {
          return false;
        }
    to allow the particular coupon_id to be validated regardless of the preg_match ...

    I would customize this just for the specific coupon_id and not as a regular by pass of this safety ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  5. #5
    Join Date
    Dec 2013
    Location
    New York
    Posts
    5
    Plugin Contributions
    0

    Default Re: Including Gift Vouchers in the Discount Coupon calculation

    Quote Originally Posted by Ajeh View Post
    You could customize the function is_product_valid and customize the section for:
    Code:
        if (preg_match('/^GIFT/', $product->fields['products_model'])) {
          return false;
        }
    to allow the particular coupon_id to be validated regardless of the preg_match ...

    I would customize this just for the specific coupon_id and not as a regular by pass of this safety ...
    Thanks so much Linda! I will try that! Happy Holidays!

 

 

Similar Threads

  1. Incorrect tax calculation when using discount coupon
    By Royal in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 20 Jul 2010, 01:02 PM
  2. Replies: 18
    Last Post: 12 Mar 2010, 06:37 PM
  3. Discount Coupon Tax calculation problem
    By Amit001 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 1 Aug 2008, 02:00 PM
  4. Group Discount + Coupon = wrong tax calculation (Ontario store)
    By Rebelwax in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 24 Mar 2008, 07:20 PM
  5. Coupon Discount Calculation Seems Wrong
    By kevinhankens in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 5
    Last Post: 24 Feb 2007, 09:55 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •