Credit Card ONLY Coupon

General ShopSite user discussion

Credit Card ONLY Coupon

Postby smil72 » Wed Jul 11, 2018 9:29 am

First time Poster... Is there a way to have a percentage discount Coupon applied to an order ONLY if the customer is paying by credit card?
Posts: 2
Joined: Wed Jul 11, 2018 9:19 am

Re: Credit Card ONLY Coupon

Postby loren_d_c » Wed Jul 11, 2018 9:37 am

There is no exception for payment type in the coupon configuration, so it's not a built-in feature. I suppose you could use custom JavaScript in the Commerce > Order System > Shopping Cart field labeled 'Javascript added at start of built-in CheckIt function' to check the for the existence of the coupon in the cart via the Shopping Cart JavaScript Variables (see the available coupon variables in the docs at and if it's there and the shopper is trying to use a non-credit card payment option just not allow the order to proceed.

Posts: 2564
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Return to User Forum

Who is online

Users browsing this forum: No registered users and 11 guests