Questions tagged [product-variations]
This tag should be used with the [woocommerce] tag — and should not be used if the [woocommerce] tag is not applicable. It should be used for questions about the WooComerce Variations feature, aka Product Variations or Variable Product.
product-variations
511
questions
1
vote
1
answer
34
views
Specific product attribute custom dropdown for WooCommerce variation selection
In WooCommerce, I have an attribute called License Type. This attribute has 2 terms:
Single Site License
Multi Site License
With the above, I'm trying to create a custom select dropdown, where the ...
2
votes
1
answer
55
views
Filter hook woocommerce_product_get_weight doesn't work with product variations
It appears the woocommerce_product_get_weight hook that I have been using to override product weight (for the purpose of affecting the shipping calculation) is not firing for any of my product ...
3
votes
1
answer
78
views
Add to cart multiple variations via JQuery and Ajax in WooCommerce
I'm using add_to_cart method to add a variation to cart with Ajax, this works but I can't find a way to add multiple variations using the same request.
If I send one_data it works, but not with ...
2
votes
1
answer
45
views
Add to cart a product variation via JQuery and Ajax in WooCommerce
I am Unable to add a product variation to cart using jQuery and Ajax. With the code below, the parent variable product is added, but not the variation.
For example, I specified one of T-shirt ...
0
votes
0
answers
16
views
Product page quantity for variable product
In WordPress, I just want to add variable product types to the cart because I'm adding quantities
to the variable products. It works for simple products, but for variable products, it's functioning ...
0
votes
0
answers
22
views
Woocommerce rest API variations attributes
I'm trying to send a new variation to a Woocommerce product. It is correctly created except for the attribute.
I'm sending:
$data = [
'sku'=> $confezione['CODART'],
'price' => $...
0
votes
1
answer
47
views
WooCommerce Migration | Variable Product aren't imported
TL;DR : WC Variable product aren't imported corrrectly with each migration method
I'm having an issue when importing variable products.
I used some methods to import them: WooCommerce Import/Export ...
0
votes
0
answers
30
views
Show monthly installment prices on Woocommerce single product page for variable product variations
I am using a plugin to display a widget that calculates the monthly installments of a product when buying on credit. The plugin uses $product->get_price() and $variation->get_price() to fill the ...
0
votes
1
answer
103
views
How can I modify the Woocommerce product entry form page to preload dropdown lists of attributes and values?
The Woocommerce product entry page creates a product_attributes div containing a a select dropdown for Add Existing attributes. But the existing attributes and their values aren't populated until the ...
0
votes
0
answers
105
views
Variations not showing properly on single product
I am a bit of a noob when it comes to adding code to my website but I am at my whits end with this one. On a single variable product page I get the following error:
method="post" enctype=&...
2
votes
1
answer
48
views
Change product varation price programatically based on a custom field in WooCommerce
I have some variable products that have a custom field "base price". I want to change the variation price only in single product, cart and checkout pages that should affect original prices.
...
0
votes
1
answer
48
views
Add a text below the related attribute option based WooCommerce variation custom field
In woocommerce website, I want to add a tag or toolkit or something that will show a text that its recommanded/most choosen/most sold item, I want to show it around a variant option that i chose from ...
1
vote
1
answer
77
views
How to display custom fields of variable products under the product title of the front product page
The code for adding custom fields in the background is as follows:
// 1. Add custom field input @ Product Data > Variations > Single Variation
function bbloomer_add_custom_field_to_variations( $...
2
votes
1
answer
46
views
Display the calculated subtotal based on quantity in WooCommerce single variable products
I found the following code, that calculates the subtotal based on quantity for WooCommerce single products:
add_action( 'woocommerce_after_add_to_cart_button', 'bbloomer_product_price_recalculate' );
...
1
vote
1
answer
28
views
Customize WooCommerce Low Stock Email Content Based on Product Variation custom field
I have customized my WooCommerce store to assign priority levels (1-4) to product variants, which helps us manage our inventory more effectively. These priority levels are saved as post meta for each ...