1. PROMO Subscribe our All Access Pass @ 75% OFF & access all our 16+ premium Divi extensions: Divi Block Pro, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Solved Price on Products with Single Variations

Discussion in 'Free Divi Community Forum' started by Lucas Oliveira, Sep 6, 2021.

  1. Lucas Oliveira

    Lucas Oliveira New Member

    Hello everyone.

    I'm having some issues with a category that only have products with a single variation in which it does not display the price when I set the variation.

    I have looked at this post ( https://divi.help/threads/divi-woocommerce-price-issue.2441/ ) but the following code posted there did not help.

    Code:
    Log In or Sign Up to view this code.
    This is an example of a product with this issue: https://quatroladosquadros.com.br/produto/abstrato-azul-15/

    And a example from a page with mutiple variations working fine: https://quatroladosquadros.com.br/produto/galho-com-passaros/

    Any ideas of how to solve this?

    Best regards

    Lucas Oliveira
     
    1. PRO MEMBER PERKS Custom Color Scheme + Premade Layouts - A perfect combination to boost productivity:Try Now
  2. Lucas Oliveira

    Lucas Oliveira New Member

    Ok... I think I have solved the problem by adding the following code on the functions.php archive:

    PHP:
    add filter'woocommerce_show_variation_price''__return_true' );
    I was hoping that there was a simpler CSS solution, but anyway.
    The important thing is that it worked
     
    Tiph_37 likes this.