How to make coupon codes mandatory on checkout - wordpress

I need to have the check out process done by the vendor himself not by the customer and that is how :
I need to make the coupon code mandatory ( to be added by the vendor) so the
"proceed to check out " button is not active unless the coupon code is added, and after the vendor adds the code, the order is completed.

Would recommend the use of javascript to prevent the user from clicking the checkout button.
Each button has a "disabled" state, at which the button is greyed out (by default) and cannot be clicked on (similar to the update cart button when no changes have been made). Simply add the disabled state to the checkout button onLoad, then remove that state when a coupon has been applied (button click event on the apply coupon button).

Related

Payment getaway disable after click the radio button WooCommerce checkout page

My client would like to have two types payment methods one is COD another is PayPal. When the customer clicks the delivery button this will disable COD option and if the customer clicks the takeaway button the PayPal option will be disabled in the checkout page in Woocommerce. Please help me fix this?
Both buttons will be set top of the check out page.
By the type of delivery/takeout button click, adding/removing disabled attribute from payment radio option can help like this way.
$("#btnDelivery").on('click', function(){
$('#payment_method_cod').attr("disabled", "true");
$('#payment_method_paypal').removeAttr("disabled");
});
$("#btnTakeout").on('click', function(){
$('#payment_method_paypal').attr("disabled", "true");
$('#payment_method_cod').removeAttr("disabled");
});

Woocommerce checkout page "place order" button disabled

I'm using cash on delivery service for my site running on loaclhost. If I update any section(pincode or address textbox) of my billing part or select checkbox "ship to differnt address" the place order button get's disabled. Even if i undo all the changes made to address or pincode the place order button becomes active just for a millisecond and then again goes in deactivated state. On reloading the page it again becomes active.

Woocommerce Submit Order button not showing blockUI

I'm currently having an issue where the Submit/Process Order button is not invoking BlockUI. The button action works fine and processes the order, however there is quite a delay once the button has been clicked. I'm concerned customers may click it a second time.

Paypal Standard - Add to cart button (with options) Can i use a text link instead of button image and remain secure?

Im using Paypal Standard shopping cart - Add to cart button (with options)
Can i use a text link instead of the Paypal provided button image while the button code is still securely hosted on paypal ?
I want to use a text link and style the button that way instead of the standard add to cart buttons.
I see in Paypal button generator that you can make a text link for email, but that doesnt work for add to cart buttons with options, which is sometimes necessary.
Thanks for any advice.
Whenever you check "Save button at PayPal" option , your buttons are hosted and secured by PayPal.
Unfortunately, any button with "drop-down" options generated via Paypal button generator will not have the email tab generated. This is because it is highly impossible to have drop-down options in an email link.This is intended behavior.
To use a link for add to cart which is non-hosted :
https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_cart&business=S4X5XW328WAYY&item_name=tests&currency_code=USD&amount=10.00&add=1
where business is your paypal account email address or business ID.

How do I create a View Cart button in Website Payments Standard?

I'm using Website Payments Standard.
I've created 2 Add to Cart buttons using the manager and they work fine.
If my buyer clicks the Continue Shopping button, he's returned to the catalogue page and can't see the cart.
How do I create a View Cart button, please ?
It doesn't appear in the Button factory.
After you create your Add to Cart button, scroll down past the box where PayPal gives you your HTML code. There's a section that says Create more buttons, and one of the options says Create a View Cart button.

Resources