fbpx
Want To Add Extra Images Per Product Variation For Free? Download Now

Price no shown on product page when single variation

Hi !

I looked at the other threads on this subject but could not get a resolve…

https://thesdunord.ca/produit/boite-decouverte-nos-classiques/
(single variation, no price)
https://thesdunord.ca/produit/the-d-epilobe-original/
(Multiple variations, price)

I have tried : removing plugins, removing all custom CSS, JS and PHP, clear WooCommerce and elementor caches

 

Thanks !

André

Hakik Zaman

Hi André,

Displaying price is not a feature of our plugin, is a feature of WooCommerce itself.

Could you disable our Swatches plugin and check if is it working without our plugin or not?

Thank you

Hi ! I am using a an Elementor product template to display the price.

If I’m undertanding you correctly, I have to program a scrip that would show the woocommerce price when there are no variation ?

I have seen on your support blog many people had the same problem and some of you tech have offered help on this, I have tried to implement these solutions but it did not work.

 

André

Hakik Zaman

Hi André,

I am sorry. Displaying price is not a feature of our plugin.

Unfortunately, it is beyond our support scope when it is not related to our plugin.

Thank You

Bla bla bla not my problem… how is it that I have heard this from support before.. Classic “the other party is responsible”

Not impressed…

However I have troubleshooted the issue with CHatGPT and have fixed the problem.

I will leave the code here if ever you would be nice enougt to provide it to users with thes ame issue :

add_filter( ‘woocommerce_available_variation’, function( $variation_data, $product, $variation ) {
if ( empty( $variation_data[‘price_html’] ) ) {
$variation_data[‘price_html’] = $variation->get_price_html();
}
return $variation_data;
}, 10, 3 );