Answer the question
In order to leave comments, you need to log in
Can I set a discount when paying with a visa?
Hello! I want to do such a thing - to motivate customers to pay in the store (woocommerce) with a plastic card, to do - 50 rubles discount when paying with a visa .... I thought it was a coupon, but it wasn’t there ... because the coupon is first driven in, and then the payment method is selected ... you can drive in, get a discount and pay by another method .....
how is it possible?
Answer the question
In order to leave comments, you need to log in
How do you make online payment? Through some service?
My suggestion:
Give coupons for the next purchase for payment with a visa. Easily implemented and also a kind of motivation.
There are 3 options for integration with the payment gateway:
1. transfer to the gateway page at the moment of choosing a payment - will not work
2. payment directly on the side of the site - I have not seen this in the Russian Federation yet. But in theory, if you find it, you can try to play with the mechanics.
3. generating a payment button on the transit page after selection. This is where it could work in theory. Need to try.
In general, both solutions are not simple. Programmers are needed above the average level. The option with a coupon for the next purchase looks more adequate.
If through the code, then you can:
- add a coupon in the admin panel with the desired percentage or discount amount;
- on the checkout page, add a js script that, upon changing the payment method to meet the condition, will send a request to add a coupon (not wc-ajax=apply_coupon, but via wp_ajax so that the coupon code is not on the front), and then to update the checkout ( $('body').trigger('update_checkout') )
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question