Credit Card ONLY Coupon

General ShopSite user discussion
Post Reply
smil72
Posts: 2
Joined: Wed Jul 11, 2018 9:19 am

Credit Card ONLY Coupon

Post by smil72 »

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?
loren_d_c
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere
Contact:

Re: Credit Card ONLY Coupon

Post by loren_d_c »

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 http://help.shopsite.com/help/14.0/en-US/sc/pro/cart.variables.html) 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.

-Loren
Post Reply