Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #16153

    Hello,

    Love the theme, its great! I have started adding all of my products and have a question.

    All of my products is supposed to have variables. The price shows up on all of the products that has two or more variables. But sometimes I only have one variable (more variables will come over time), and then the price wont show up. How come? How can I fix this?

    The site is not live yet, but you can enter it here:

    http://www.icelandicherbs.se/wp-admin

    and login with:

    Login: kiresi

    Pass: kiresi123

    (The shop is on swedish and is under “Butik”).

    Thanks in advance!

    #90372

    Hi Rajkurt,

    I believe this is because when there is only the single base price, the price is supposed to be output at the top of the page already. Since that is hidden, no price is displayed.

    I’m really not sure how to change the logic or how to re-assign the price in the title to show up further down so I’ll need to tag Kriesi on this to see if he can point us in the right direction.

    Otherwise, you could either make those single variation products simple for now or show the title area again.

    Regards,

    Devin

    #90373

    The guys at woocommerce helped me with this (Btw, they have the best support ever!) by adding this in the footer.php:

    <script>

    jQuery(document).ready(function($) {

    if ( $(‘div.single_variation’).html() == ” ) {

    var $priceoutput;

    $priceoutput = $(‘div.price_container p.price’).html();

    $(‘div.summary p.price’).replaceWith( $(‘div.single_variation’).html() );

    $(‘div.single_variation’).replaceWith( $priceoutput );

    }

    });

    </script>

    Thanks anyway for the help!

    #90374

    Hi Rajkurt,

    Thanks for the tip. It will surely help anyone who had this problem. :)

    Regards,

    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Show price for product with only one variable?’ is closed to new replies.