product-variations Questions

4

Solved

I would like to display the default product attributes form value and it's regular price in my front end template file. The var_dump below shows options in an array. I Need to get the [default_attr...
Josephinejosephson asked 9/12, 2017 at 10:37

4

Solved

I'm using Woocommerce and product variations and all my variations have a default variation defined. How I can find the default variation and display its price? This is the code I got so far, but i...
Passage asked 31/8, 2015 at 20:55

3

Solved

How do I use the variation id to find the variations price using javascript? This is what I've got so far. I've got the variations ID, but i can't figure it out. I've been googling it for hours. a...
Vignola asked 28/2, 2019 at 13:5

13

Solved

I have created a variable product ("parent" product) in WooCommerce version 3+. From a WordPress plugin, I would like to programmatically create the product variations ("children&quo...
Porter asked 27/11, 2017 at 19:18

3

Solved

When adding variations to a WooCommerce product it is adding in a blank attribute. Meaning that when I try to add my own attribute it gets appended to an existing array. Example code I am running: ...

5

We use Woocommerce to sell colorboxes. Mostly the variable-product option is chosen. We added a modal dialog with a color palette, where the customer can chose a color from. This is next to the com...
Tonkin asked 18/6, 2014 at 7:32

4

Solved

In Woocommerce, I have a report in the admin area that tallies up products sold.There are only 5 products sold on the site but there are 1 or 2 variations on some. The report works great but ignore...
Motorist asked 22/1, 2018 at 21:50

6

Solved

I'm developing a theme for wordpress and woocommerce and need to show a variation's stock. <p class="stock-m13"><?php echo $product->get_stock_quantity(); ?></p> I r...
Maccaboy asked 28/5, 2015 at 18:38

5

Solved

I'm building an e-commerce site. I'm having some trouble with WooCommerce Variable Product. The "Add to Cart" button works fine with simple products, but does not work with variable produ...
Birl asked 29/6, 2016 at 22:36

4

Solved

Ever since we upgraded to Woocommerce version 3 our order confirmations are showing huge titles that include the variation detail. I don't like how it looks and it breaks some important functionali...
Gerigerianna asked 30/6, 2017 at 6:29

2

Solved

I have been looking EVERYWHERE and I cannot seem to find a solution to a very simple problem. I have a Woocommerce store and I want to show to the user a message "Out of stock" next to th...
Flatulent asked 2/5, 2021 at 0:39

2

Objective: add product to cart despite unselected variations, i.e. remove/disable the mandatory nature of variation fields. Issue: WooCommerce's absolute requirement for all variations to be select...
Piero asked 8/4, 2021 at 9:55

3

I think I'm working with an old theme since new themes seem to have a js file already in place to update the variant ID in the URL upon making options selections for a product. I've been trying t...
Soporific asked 5/10, 2018 at 14:57

1

I have a t-shirt product that has a choice of sizes and colours. After selecting of one variation I would like the first available option to be auto selected in the other variation. For example, if...

1

I am using Show stock status next to each attribute value in WooCommerce variable products answer code to display the variation stock status on single product attribute dropdown for variable ...

4

I'm trying to get in a plugin I'm writing the variation ID of products. Here's what I wrote: class mass { public function __construct() { add_action('woocommerce_product_after_variable_attribut...
Took asked 2/10, 2015 at 22:12

4

Solved

I have a relation +-----+----+ | seq | id | +-----+----+ | 1 | A1 | | 2 | B1 | | 3 | C1 | | 4 | D1 | +-----+----+ and want to join it in PostgreSQL with +----+-------+ | id | alter | +----+-------...

3

On WooCommerce, I would like to change the Variable single product page layout. Because when you have an variable product you get this wired price rage (below product title) in the Variable Product...
Protoxide asked 4/7, 2017 at 18:34

2

Solved

On our woocommerce website I am trying to update the displayed price based on the variations the customer selects from dropdown menus as shown here: I used a php function that had been submitted i...
Stealing asked 5/6, 2018 at 16:18

3

I am using plugins called Advanced Custom Fields (ACF) and WooCommerce. I want to create a text and image field for WooCommerce product variation. I created fields in ACF and assigned them to "Post...
Antechamber asked 16/5, 2016 at 23:33

4

How to display woocommerce variable price for current active variation on single product page? I use the code: <?php global $product; if ($product->is_type( 'simple' )) { ?> <p class=...
Olszewski asked 21/6, 2017 at 11:46

1

Solved

I would like to show the stock status of variable products in the dropdown menu, including 'on backorder' as most products on my site are available on backorder rather than being 'out of stock'. I ...
Shaina asked 10/4, 2019 at 2:13

6

I'm facing a big problem with product variations and their attributes in woocommerce. I'm trying to display a table with each attribute for each availabe product variation. But Woocommerce saves th...
Partitive asked 23/11, 2014 at 14:19

1

Solved

Based on "https://mcmap.net/q/1175726/-show-stock-status-next-to-each-attribute-value-in-woocommerce-variable-products/45041602#45041602", I have the following code that shows stock quant...
Hillell asked 23/2, 2019 at 20:47

2

Solved

Is it possible to make a user-generated temporary product to be added to cart in WooCommerce? I'm trying to transfer a non-wordpress website to WordPress, but the site already has a sophisticated e...
Towrey asked 18/9, 2017 at 14:3

© 2022 - 2025 — McMap. All rights reserved.