All Questions
Tagged with code-snippets woocommerce
74 questions
0
votes
1
answer
44
views
Woocommerce wholesale user role setting minimum order quantity to 10 products PHP
I’ve been searching for PHP solutions related to WooCommerce, but nothing I've found has worked for my specific requirements. Here’s the background on my situation:
I need wholesale users to meet a ...
0
votes
1
answer
37
views
ACF get_field not returning value inside function with foreach loop
I have a function that loops all Woocommerce subcategories for the current category. Inside the subcategory loop there is an advanced-custom-field that is supposed to display an icon. But I do ...
0
votes
0
answers
17
views
sending sms to dokan vendors on order processing status [duplicate]
This snippet hooks into the WooCommerce order status change event and sends an SMS to each vendor associated with the products in the order. The SMS will notify the vendor of the new order and prompt ...
-2
votes
1
answer
127
views
Code Snippet for Add to Cart Redirect only works for the Add to Cart Button in SINGLE PRODUCT PAGE
The code snippet for redirecting the add to cart to the checkout page only works when I press the add to cart on the SINGLE PRODUCT PAGE. It does not work when I click the add to cart button on the ...
0
votes
1
answer
133
views
PHP Code Snippet Not Working in CartFlows (WooCommerce Plugin)
I followed THIS tutorial to change the coupon field and button text, using the following script in a Code Snippet:
/**
* Change the CartFlows Coupon Field text and Button text.
*
* @param array $...
0
votes
0
answers
65
views
How to display a thumbnail of product variation in custom table? I just make a custom variation table in woocommerce
I created a custom variation table in WooCommerce, and I need to display product variations thumbnails in that custom table.
What is it the right way?
What is the code to create this?
Here is a ...
0
votes
1
answer
584
views
Send Woocommerce registration confirmation email when administrator register a new Woocommerce client
I'm trying to create a snippet that send the woocommerce registration confirmation email to the new woocommerce clients that are registered by the administrator so they can see their password or reset ...
0
votes
1
answer
752
views
replace h2 with h1 in an Elementor Pro "archive products" widget
I would like to change all the product titles on this page (https://alessandramilano.eu/all-shoes/) from H2 to H1. How can I do?
I have tried different codes but I can't get to the solution. Do I have ...
0
votes
0
answers
67
views
How can I set Minimum & Maximum items quantity per order based on categories Wooccomerce using PHP
I have this issue: I have 4 categories, but I want that users can purchase min & a max of 3 items in a total of 3 of these categories. And, for the other category, they can only add 1 item per ...
1
vote
1
answer
59
views
WooCommerce discount for unlogged users based on if a field has any input add 10% discount
I would like to give 10% discount for companies (B2B) but I don't want to give discount for individual person (B2C). The only way to check if somebody (not logged in) is an individual person or a ...
0
votes
0
answers
155
views
How to make a parent page for a custom taxonomy in woocommerce
I am using Woof product filter plugin and want to add a new taxonomy. Right now I have it set up with categories (type of products), brands using Perfect Brands for Woocommerce (assigns custom "...
-1
votes
2
answers
902
views
How to Find WooCommerce Product without Featured Images
I want that the products not showing on the shop frontend who are missing the featured image.
I did not found until now a good solution.
I want excluded these products.
Looking for a snippet code or ...
0
votes
0
answers
2k
views
Add a video to the product gallery in Woocommerce without plugin
I'm trying to add a video to the product gallery in Woocommerce. The workaround I found to keep the speed good is to add the thumbnail for the video as an image and make it clickable so that it links ...
0
votes
0
answers
44
views
Trouble with editing contents/message of Empty Side Cart
I am trying to change the default text thats in the empty side cart on WooCommerce. It just doesn't look inviting at all.
For some reason all my atempts fail, I have limited understanding of PHP but ...
1
vote
0
answers
219
views
How to replace WooCommerce My Account registration form with a Gravity User Registration Form
I would appreciate it if anyone could advise how to replace WooCommerce My Account registration form with a form created by the Gravity Forms User Registration plugin.
Thank you,
I tried the Enable ...