Skip to main content

All Questions

Tagged with
-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 ...
null's user avatar
  • 1
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('#...
AJD's user avatar
  • 424
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 ...
muhammed Amr's user avatar
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 ...
Davide Stiglitz's user avatar
-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 ...
Yoné's user avatar
  • 3
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 ...
Rv5's user avatar
  • 25
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 ...
Adam's user avatar
  • 5,932
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 = \...
Alexander's user avatar
  • 149
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['...
Dias's user avatar
  • 160
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 ...
Miri's user avatar
  • 11
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 ...
n1k1dk's user avatar
  • 87
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 ...
Joo Carlos JC Digital's user avatar
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 ...
Devon Regular's user avatar
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 ...
pechyno's user avatar
  • 81
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. ...
Telma Alves's user avatar

15 30 50 per page
1
2 3 4 5
91