Skip to main content

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.

1 vote
1 answer
32 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 ...
Freddy's user avatar
  • 769
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 ...
Venk Reddy's user avatar
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 ...
Becker Armata's user avatar
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 ...
Becker Armata's user avatar
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 ...
Muhammad Arhab's user avatar
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' => $...
mcm_mcm's user avatar
0 votes
1 answer
46 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 ...
Mathieu's user avatar
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 ...
Shayne's user avatar
  • 1
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 ...
Victoria's user avatar
  • 302
0 votes
0 answers
99 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=&...
E Nicolae's user avatar
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. ...
kirtan ajudiya's user avatar
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 ...
Chirag Joshi's user avatar
1 vote
1 answer
74 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( $...
jackievon51's user avatar
2 votes
1 answer
45 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' ); ...
Suriyan S's user avatar
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 ...
Silverbear's user avatar

15 30 50 per page
1
2 3 4 5
35