WooCommerce 5.6.0 Checkout Coupon Form Issue using functions.php - php

My original coupon box was set by default to the top.
I'm using How do I move the apply coupon input below the order on the checkout page in Woocommerce? answer code and moved the box below products in the "my order" section.
Each time I submit a coupon, it removes some of the entered data as the page is being submitted.
Is there a method to remove this submit page feature & have it behave like the default option where it updates without refreshing the page?
Thanks in advance!

Related

Woocommerce cart coupn field as toggle

I would like to make the default Woocommerce coupon field on the cart page into a toggle, exactly like it is on the checkout page. There should be the text "Have a coupon?" and when this is clicked, the coupon field and button should appear (and disappear again when the text is clicked again, so a basic toggle). How can I achieve tis? I tried copying the form-coupon.php into the cart.php template, but it did not work.

Woocommerce one page checkout custom

I want to use one page checkout process in woocommerce. i have created a new page(addition) with some name and have added the shortcode
[woocommerce_cart][woocommerce_checkout]
here is the shortcodes i am using
It is working fine but login for returning customer login button is not working.
but on checkout page returning customer login button is working.
Can you please help?
i want to make one page checkout process. Image is attached Please help
Try to go to the woocommerce settings (checkout tab) and set both cart page and checkout page to your single-checkout page

Coupon Code on Checkout Woocommerce

I am currently trying to have coupon codes work on my checkout page, using the Oxygen theme. Currently I am loading both the cart and the checkout on the same page, but when using the coupon code provided by the cart, I get redirected to the cart page, which I absolutely do not want (want to stay on xxxx.com/checkout.
How can I go about removing this href, or including the coupon code solely on the checkout page without using the coupon window provided by the [woocommerce_cart]
What you are asking is not traditional behavior of checkout, but it can be done. All you have to do is change the Cart Page's target Page.
Goto to Woocommerce settings
Flip to the Checkout tab
Under Checkout Pages, locate Cart Page
Change its target page to Checkout or whatever page you are using for that purpose
Save and Test

Input field woocommerce cart

I am trying to have order notes on the cart page instead of on the checkout page.
I actually only need to have an input field on the cart page and have the inputted text passed on to the order in admin. Does anyone have a good solution for this?
You can override your templates:
http://docs.woothemes.com/document/template-structure/

woocommerce - coupon on checkout page

I'm using Woocommerce for Wordpress to build a webshop.
I have removed the coupon from cart and added it to the checkout. When I enter the coupon code and hit 'apply coupon', it completes the whole form and goes directly to the payment gateways. I want to make sure the coupon first gets added to the order total. Any idea?
Thanks!
Woocommerce already provides provision to add coupon from the checkout page you don't need add. Probably you have edited the checkout page template and added the coupon form inside the checkout form that's why checkout form is submited on clicking apply coupon. In order to customize the coupon in checkout page you have to look into wooocmmerce checkout.js.

Categories