How to show specific variation data from selected product variation on single product page?

Hi,

When I have a product with some variations I would like to see specific data from the selected variation.

For example: the price changes when I select a specific variation. But how can I show other variation data (a specific product attribute) after switching?

When I place the product attribute now I just see all options from all variations together. Not the specific data for the selected variation.

Hopefully someone knows the answer.

Best regards,

Bart

Did you mean something like this?

My link:

@jornes

Thanks for your quick reply!

I have a product attribute with a custom delivery time. This one is different for each variation. So I would like to see a switch of the delivery time when I select another variation.

I managed it with SKU with the standard SKU widget (just like on your website) but I am not sure how to fix this for other attributes. It’s changed with javascript.

1 Like

If so, you need to wait for Woo expert to answer your question. I’m not too good with Woo stuff. So, I can’t help much with this. Sorry! :smile:

Well, I am already happy that you tried to help! Thanks again :+1:

1 Like

@jornes

I fixed it myself and for the one who would like to know:

First I only implemented part 1 from this guide: WooCommerce: Add Custom Field to Product Variations

Secondly I was able to get the selected variation info via this guide: WooCommerce: Display Selected Variation Info (price, weight, etc.) @ Single Product Page

And now the delivery time changes instantly when you select a product variation!

If you dont like to code there’s also a paid plugin which should do the trick: WooCommerce Custom Fields for Variations - Plugin for WooComerce

If there is a Bricks way for this I would certainly like to know!

2 Likes

@barthusz
I’m glad you managed to do it yourself, and thank you for sharing the solution!

I will check it out when I am available later. :blush:

1 Like