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
0 votes
0 answers
31 views

How to override a specific condition inside filter "woocommerce_add_to_cart_validation"

I am using WooCommerce subscription and Mollie Payments for WooCommerce plugin. It supports multiple subscription product to be purchased on a single checkout process, however when user tries to do a ...
ManoharSingh's user avatar
0 votes
0 answers
23 views

It inserts some times 1 or 2 or 3 or 4 rows every time. how to fix [closed]

Hello i use this code to add a product in the shopping cart and it inserts it sometimes 1 time, sometimes 2 or 3 or 4 times. I want only 1 time to insert it how to fix this? $sqlin="INSERT INTO ...
Antonis Ch.'s user avatar
-1 votes
0 answers
19 views

Auto-applied coupon on Mix Match Products on minimum quantity

How do we properly code the below? I am looking to have auto-applied coupon in cart for mix-match products and minimum quantity should be 5 but can't figure it out. I already created a coupon based on ...
Cel's user avatar
  • 1
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
1 vote
0 answers
53 views

Shipping cost based on shipping zone and on items quantity steps in WooCommerce

i have a PHP code that counts shipping cost in woocommerce based on quantity steps in addition to another cost based on shipping zone, the sum of two costs give the total shipping cost. what i need ...
Shehab Zahran's user avatar
0 votes
1 answer
44 views

Add specific product to cart together with the main product in WooCommerce

I try do something similar to 'product addons', but manually. I would have few simple products, that have to be as companions. Their ids will be the same. I want to make them as checkboxes, with ...
libertarian's user avatar
0 votes
0 answers
57 views

how to display woocommerce cart items in form and mail using contact form 7?

I have this code to create a custom tag for display woocommerce cart items in cf7 form and send cart items in email notifications. But in Email I can't figure out how show cart items like they are ...
Captain Krik's user avatar
0 votes
0 answers
29 views

Modify cart total and then order total when an order is placed in WooCommerce [duplicate]

I'm using this code to modify my total on the checkout page However, if I place an order, the modified total is not reflected in the order itself, and still has the unmodified checkout total. Can ...
P P's user avatar
  • 9
0 votes
0 answers
29 views

Display text and variables above WooCommerce cart block, and in cart items components

I am trying to display "Hello World $some_php_variable_related_to_cart" above the WooCommerce cart block (in a proper way, using WordPress and WooCommerce API), and to update $...
Cuti's user avatar
  • 151
1 vote
0 answers
40 views

Add a custom notice in to WooCommerce mini cart widget

I would like it to display a message on top of a minimum order amount. Have just found code that puts a message in the cart page but would like it to show up in the side cart that opens when you click ...
Sofia Hjärtberg Zintio's user avatar
1 vote
1 answer
96 views

Use WC Kalkulator product field values to update WooCommerce cart item product properties

In WooCommerce, I use the WC Kalkulator plugin for a simple product (ID 4692). The problem is, this simple product has only static weight and dimensions values that get pulled into each cart item ...
Jreppe's user avatar
  • 13
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
24 views

Adding cart item key in WooCommerce Cart HTML table doesn't show up

My WooCommerce Woo Cart Table element does not show cart_item_key value on each row, which I need to AJAX update my cart. I tried creating a custom cart.php in a child theme, but that file is not ...
Adam's user avatar
  • 5,932

15 30 50 per page
1
2 3 4 5
121