All Questions
1,360
questions
-2
votes
0
answers
19
views
Customize WooCommerce Storefront mini-cart header text based on cart items
I try to customize WooCommerce Storefront mini-cart header, so there are:
when there are no products in cart, it gives result A text;
when there are 1 product in cart, it gives result B text,
when ...
1
vote
1
answer
29
views
Force State/County field to be required in WooCommerce Shipping Calculator
I am trying to make sure that the Shipping State field is selected in the shipping calculator.
Using the solution here works great for the City and Postcode fields like this:
jQuery('#...
0
votes
0
answers
25
views
Add a product to the cart via api for non signed up user in WordPress
I'm facing a hard problem in adding a product to the cart via api for non signed up user in WordPress. I started to think it is not possible to achieve it. It works properly for users which are signed ...
0
votes
2
answers
70
views
Showing custom empty cart page . WooCommerce and Divi Theme
I’m working on an e-commerce site based on WooCommerce and the Divi theme. Specifically, when the cart is empty, I get a blank page (though the header and footer are present). I’d like to know if ...
-1
votes
1
answer
42
views
I want to add my custom add to cart button [closed]
I'm using motta theme for WooCommerce, and i don't like their add to cart button, it's too big, i want it to be so simple like a plus button, can you guys help me?
I tried to add many suggested codes ...
1
vote
1
answer
41
views
Change WooCommerce product single add to cart button text only if the product is in cart
In WooCommerce, I would like to update the 'add to cart' text when the corresponding product is removed from the cart.
I have the following code which changes the text when the product is added to the ...
1
vote
1
answer
88
views
Auto Update WooCommerce Cart on cart item quantity change
I want to enable an AJAX auto update when user changes the quantity (first hiding "Update cart" button) in WooCommerce cart page.
I followed the steps from this tutorial.
So basically I use ...
0
votes
0
answers
85
views
Modify cart item subtotal format in the WooCommerce cart block
In the cart shortcode, I use the woocommerce_cart_item_subtotal hook to display the item subtotal using wc_format_sale_price(), because I'm showing a deal.
Here is the code:
$subtotal = \...
1
vote
1
answer
28
views
Woocommerce add custom data to products that are already in the cart in custom file
I have file custom.php where do I add products with custom data (field_wrap_name and field_wrap_img) WC()->cart->add_to_cart
custom.php
foreach($result as $res) {
if( isset($_POST['...
1
vote
2
answers
60
views
Dynamic displayed message based on shipping zone and cart amount threshold in WooCommerce
On Display a custom message based on customer shipping zone in Woocommerce answer, I found a solution to show a message in cart based on the shipping zone.
I want to show a message based on shipping ...
2
votes
1
answer
73
views
Update WooCommerce product price based on a custom input field
I added a custom number input field to my single product pages. The regular Price gets multiplied by an inputted integer value.
For example, if the Base Price is 10$ and the user puts 2 as value in ...
0
votes
0
answers
19
views
The subtotal sum on the cart page is incorrect (Bookable product) [duplicate]
I'm building a reservation website for "day use" ticket sales using the Woocommerce Bookings plugin. However, I need to add custom fields based on the quantity of tickets (persons) the ...
1
vote
1
answer
104
views
Only change cart item subtotal, but not displayed item price in WooCommerce
I have been stick on this problem for a while and I can't seem to figure out how to change the line item subtotal of a line item in woocommerce.
You see, I am making a rental site and while choosing ...
1
vote
0
answers
41
views
Woocommerce - Cart form is being duplicated after adjusting the input quantity
After adjusting (increase or decrease) the quantity of the products on the cart page of my e-shop, the whole section is being duplicated. What I found on the web is that the problem si probably in the ...
1
vote
1
answer
60
views
Add the delivery time to WooCommerce displayed shipping methods based on cart items stock status
We have an online store and I would like to modify the label below the shipping method (hook: woocommerce_cart_shipping_method_full_label) based on the stock status of the products in the cart.
...