Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2018
    Location
    uk
    Posts
    31
    Plugin Contributions
    0

    Default set mximum savings for a discount code

    hi guys
    is there a way to set the maximum saving or maximum order for a coupn code

    for example if i offer 25% off for new cuistomers can i either set it to maximum order of £200 for example or set a maximum saving to say £50 so that of they were to spend £1000 on first order they wouldnt save more than the set amount of £50 ( or what ever) but if they only spent for eample £10 then it would just discount 25% as normal ( £2.50 off on a £10 order)

    hiope that makes sense
    i want to offer new customers an i9ncentive but dont want to be giving £100's away on a first order if they try to take advantage
    zen 2.1
    PHP Version: 8.3.14
    https://www.cjscreativecrafts.com/

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,690
    Plugin Contributions
    11

    Default Re: set mximum savings for a discount code

    You would need to modify the includes/modules/order_total/ot_coupon.php file and add a field to the coupons table.

    The functions for the operation would need to be rewritten as well.

    A fairly daunting task unless you really know your way around PHP development.

    As an option, you can apply coupons with specific values to specific categories or products using the Restrictions button in Admin > Discounts > Coupon Admin. That may work until you can find someone to work with you on a mod.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  3. #3
    Join Date
    Jun 2018
    Location
    uk
    Posts
    31
    Plugin Contributions
    0

    Default Re: set mximum savings for a discount code

    Thankyou for your reply

    Unfortunately the suggest of specific value coupons wouldnt work as we have given away literally 100’s of businesses cards with 25% off coupon on so it needs to be a percentage discount and cover all products on the site

    I can edit php on a very basic level with clear instructions but something like this is a million miles above me
    zen 2.1
    PHP Version: 8.3.14
    https://www.cjscreativecrafts.com/

  4. #4
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,740
    Plugin Contributions
    22

    Default Re: set mximum savings for a discount code

    Quote Originally Posted by vmax View Post
    I can edit php on a very basic level with clear instructions but something like this is a million miles above me
    Are you willing to thoroughly test the modifications if I provide you with a working solution? If so, PM me and I'll send you the instructions.

    I find the idea very interesting and if testing goes well, I'll PR - might be a welcome feature in Zen Cart.

 

 

Similar Threads

  1. v157 Set max discount amount for coupon code
    By nicolle_leong in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 4
    Last Post: 31 Jul 2021, 02:06 PM
  2. Salemaker - how to show discount prices and savings in cart and checkout
    By kwright in forum Setting Up Specials and SaleMaker
    Replies: 0
    Last Post: 1 Dec 2010, 09:24 PM
  3. Can I set a discount for 9 select items which are only redeemable with a coupon code?
    By Colema in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 9
    Last Post: 3 Jul 2010, 07:58 PM
  4. Set max discount for Group Discount + Discount + etc.
    By KEnik in forum Setting Up Specials and SaleMaker
    Replies: 0
    Last Post: 16 Jun 2010, 05:39 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