Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Feb 2008
    Posts
    2
    Plugin Contributions
    0

    Default Where is the file/code to validate a coupon?

    I need to have a coupon only work if 2 specific products are in the cart. Right now, using restrictions, if I deny top and allow 2 products, the coupon still works if I add one product or the other. I need the coupon to be valid only if both products are in the cart.

    But I can't seem to find the validation code that I need to change. Can someone point me in the right direction? Or better yet, if someone has already done something similar, can you tell me what I need to change?

    Thanks.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Where is the file/code to validate a coupon?

    see the collect_posts() function in the ot_coupon.php module
    and possibly, but not likely needed, the is_product_valid() function in functions_general.php
    .

    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.

  3. #3
    Join Date
    Feb 2008
    Posts
    2
    Plugin Contributions
    0

    Default Re: Where is the file/code to validate a coupon?

    Thanks. I found it.

 

 

Similar Threads

  1. Where is the file to hard code extra words into title for the category/product pages?
    By skeeterz71 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 23 Mar 2014, 09:32 AM
  2. Replies: 2
    Last Post: 31 Aug 2009, 07:43 PM
  3. Debugging code: where is the customer login code?
    By phillip.darley in forum General Questions
    Replies: 7
    Last Post: 1 Jul 2009, 12:42 PM
  4. CVV2 Code - where's the card security code entered?
    By jamieboulder in forum General Questions
    Replies: 2
    Last Post: 12 Mar 2008, 06:05 PM

Posting Permissions

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