Questions tagged [variable-product]
16 questions
5
votes
1 answer
Variable product attribute: Customizing each displayed radio buttons text value
In WooCommerce I am using WC Variations Radio Buttons plugin (by 8manos) to replace the typical dropdown selectors with Radio Buttons.
I've added the below code to my child themes function.php:
// Display the product variation price inside the…
![](../../users/profiles/7347347.webp)
Nick Chand
- 99
- 1
- 9
4
votes
1 answer
Woocommerce how to ajaxify add to cart button for variable products using custom html radio buttons instead of dropdown menu - no plugin
I'm trying to put all of the pieces of this puzzle together. I've been reading all of the questions and answers on this subject for the past 3 days. So the general blueprint that i'm following is as follows:
On single product page, first checking…
![](../../users/profiles/15040627.webp)
Ruvee
- 1,144
- 2
- 9
- 20
4
votes
1 answer
Set minimum, maximum and step quantity programmatically for specific variable products in WooCommerce
I use WooCommerce cart quantity won't change after cart update answer code to customize some product quantity arguments (as min, max and step arguments).
Now I have a variable product with product id 27525, and I want to apply another rule to this…
![](../../users/profiles/14847965.webp)
user14847965
- 79
- 5
1
vote
1 answer
Add a red asterisk at the end of all attributes labels in Woocommerce variable products
How do I add a red asterisk to the end of all attributes labels in Woocommerce? It seems like it should be simple, but I'm having a hard time with figuring it out. Wouldn't it be in the functions.php file?
The required attributes are actually…
![](../../users/profiles/4685222.webp)
MsEvette
- 57
- 1
- 5
1
vote
0 answers
Modifying select for product variation in React Js
In a small ecommerce project (sourcing data from WooCommerce) in ReactJs i have a variable product
Besides all the product data i got two array object representing the product variations, one contains all the available attribute and options:
nodes:…
![](../../users/profiles/15339536.webp)
popland
- 11
- 1
1
vote
1 answer
By a variable product id, how to display variations products by their specified SKUs
I want to display some variations products by their specified skus and not to display all the variations products within a variable product id.
For example:
The Variable product id is: #556
Sub variations products of variable product id #556, I…
![](../../users/profiles/2725229.webp)
pv619
- 385
- 5
- 24
1
vote
1 answer
Set a max displayed available stock quantity on Woocommerce archives for variable products
I want to set the maximum number of stock available items on Woocommerce shop pages.
I am using Display the stock availability for all product types in Woocommerce archive pages answer code, which does a great job, showing the available stock for…
![](../../users/profiles/7762843.webp)
twbot
- 13
- 2
1
vote
0 answers
Woocommerce: Automatically select variable product radio button, if it's the only option available
I have a variable product where users can select different radio options from 3 attributes. The problem is, some attributes options are N/A (as the other attribute option cancels it out.)
EG:
Attribute 1 - Size,
Attribute 2 - Pattern,
Attribute 3 -…
![](../../users/profiles/14287049.webp)
Emily
- 11
- 1
1
vote
1 answer
How to create a product page with variant dropdowns in react?
What's the best way to create a product page with variant dropdowns?
I have a product with list of variants eg:
[{size: "small", color: "red", material: "metal"},
{size: "small", color: "red", material: "wood"},
{size: "medium", color: "blue",…
![](../../users/profiles/10299105.webp)
poca
- 3,468
- 2
- 7
- 15
0
votes
0 answers
Woocommerce reset variation
I have an issue with a Woocommerce website where I provide flying vouchers. On each product, there are 2 varieties to choose from
Airport (each airport offers different flight durations to pick from)
duration of flight
Currently, when user chooses…
![](../../users/profiles/15970657.webp)
Mark
- 1
- 1
0
votes
1 answer
Set a variation out of stock in all WooCommerce products
We have mugs printing system with WooCommerce and we display available printable colors as variations. I need to set out of stock a certain variation in all products, i.e., if we do not have red color availability then I want to set red variation…
![](../../users/profiles/10411267.webp)
Strange
- 300
- 3
- 19
0
votes
0 answers
Woocommerce ajax variation threshold problem
I have used this snippet for changing variation ajax threshold because variable product shows this message:
Sorry, no products matched your selection.
Used snippet:
function wc_ajax_variation_threshold( $qty, $product ) {
return…
![](../../users/profiles/13852931.webp)
Lukáš Olos
- 13
- 1
0
votes
1 answer
WooCommerce (4.8.0) WordPress (5.6) not saving the SKU value for Variable Product
I am afraid its a new issue.
Update the SKU value on main variable product is not shown, after successful update message.
While, update of each SKU value variation of this product succeeds.
I am using WooCommerce (4.8.0) WordPress (5.6)
Turned off…
![](../../users/profiles/4284015.webp)
Mulli
- 1,138
- 1
- 16
- 26
0
votes
0 answers
WooCommerce variable product price x quantity change
I want to display a price of variable products when quantity changes. I've tried everything but i failed. The below code is working for a simple product but not for the variable products: