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.
Related
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!
Here's the scenario:
I have a product using gravity forms product add-ons with prepopulated fields in the URL.
Example: website.com/product/book/?title=BookTitle&price=9.99
When a user clicks the link, the fields are prepopulated into the product so when the user clicks the add to cart button on the product page, the details are injected into the product and displayed on the cart & checkout pages. This part works well.
Is it possible to create an add-to-cart link that includes the URL parameters?
Example: website.com/cart/?add-to-cart=20762&title=BookTitle&price=9.99
I know this probably doesn't work like this, but ideally, I want a simple add to cart button that adds the product to the cart and also includes the URL parameter information.
I have items that are using Woocommerce Product Add-ons. This plugin uses the POST method, however I wanted to keep the Ajax buttons for the other products.
Based on "Remove add to cart button for specific product categories in WooCommerce 3" answer code That removes the add-to-cart button for specific product tags on single product pages, but problem now is I have no button to show.
The code replace also the ajax add to cart button by a button linked to the product and on single product pages, when hitting RETURN/ENTER key, the product is added to cart, which is exactly what I wanted. However, I want to have a Buy Now or Submit button in place. What should I do?
After using shortcode [add_to_cart id="09"] for ex. "Read More" button is displayed, instead of "Add to Cart".
What shall I do to make it "Add to Cart" so that my product gets added to cart. I remember my client wasn't interested in having add to cart button.
To solve his problem I included "Read More" button and directed the flow to single product page. Now I want to include "Add to Cart" button to add products to cart, however it is showing "Read More", instead of "Add to Cart".
Please help me solve the problem
In this case, you could use the shortcode [add_to_cart].
But you can also create your own button by using a custom Add to Cart URL.
To create a custom Add to Cart URL for that product, you will need to add ?add-to-cart=123 replacing 123 with the ID of your product.
The result will be something like https://www.yourwebsite.com/?add-to-cart=123. Whoever clicks on this link, will add the product 123 to their cart.
To begin, open your dashboard and go to Products.
In the products’ list, hover over the product you want to create a custom Add to Cart URL for. On the left, you will notice a text like ID: 123 where 123 is the ID of that product.
I am using avada 4.0.2 theme.
When I add price of a product, Add to cart button is displayed everywhere where the product is shown but when there is no price added,
then there is no Add to cart button. I want to display "Add to cart" button always even if I don't mention any price in Regular Price column.
Actually I want to display a pop up form on clicking a button. I want to display this button on the place of Add to cart. for this I am using a WooCommerce Email Inquiry & Cart Options LITE plugin which replaces the Add to cart button with Buy Now button which on being clicked displays pop up form.
Now the problem is this button is displayed only when price is added to a product.
I somehow managed to display like I wanted. I could not make Add to cart show always rather I wrote .product-buttons{diaplay:none;} and echo the code of the button in content-product.php used in the plugin.