Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #18387

    Hello!

    My prices on my variable products wont show up if they cost the same.

    Look here (Im currently working on this so dont mind if it looks weird:)

    Product with different prices on variables (price shows):

    http://dorotheas.adstream.se/?product=richard

    Product with variable but with same price (price wont show):

    http://dorotheas.adstream.se/?product=lanken-till-korset

    How come? How can I make the prices appear?

    Kind regards,

    Richard

    #99235

    Hi Richard,

    Try updating your WooCommerce plugin in case this has been fixed in an update since 1.6.3.

    Regards,

    Devin

    #99236

    Now its updated! But the problem still remains… Please advise on a fix.

    #99237

    Can you try re-adjusting the prices on the item now that everything has been updated.

    I know there have been some changes in the past few versions of WooCommerce with variable products so also check through the variable product settings and just double check the options are all set to properly have each price assigned to each variation.

    Regards,

    Devin

    #99238

    Hello,

    Now I have updated the prices but it does not solve the problem. However I have been in contact with the WooCommerce support about this and this is the answer I got from them:

    “Hey Richard,

    Appreciate you sending that over.

    Unfortunately I’m not sure why this is happening with your 3rd party theme.

    I’ve seen users with this issue in the past w/ 3rd party themes:

    https://github.com/woothemes/woocommerce/issues/1074

    Do you have a woocommerce directory in your theme’s folder?

    http://wcdocs.woothemes.com/codex/template-structure/

    Can you please test this with Twenty Ten/Eleven so we can confirm it’s a 3rd party theme conflict.

    Unfortunately we don’t support 3rd party themes.

    Kind Regards,

    Support Ninja | WooThemes”

    So Ive activated the Twenty Eleven theme, and that worked fine and the prices displayed as it should, so I guess its a problem with Flashlight theme, rather then WooCommerce. Im only guessing it has something to do with the config.php file, but I dont know… So how can we move formward with this?

    #99240

    Hey!

    Can you set up the demo page again please – I just checked http://dorotheas.adstream.se/?product=lanken-till-korset and got a 404 error.

    Regards,

    Peter

    #99241

    Ok here goes:

    Prices wont show:

    Variable product with the same price: http://dorotheas.adstream.se/?product=lanken-till-korset-2#!prettyPhoto

    Simple product: http://dorotheas.adstream.se/?product=tre-i-rad

    Prices will show:

    Variable product with different pricing: http://dorotheas.adstream.se/?product=bonearmband

    #99242

    Hi!

    I think following custom css code in css/custom.css causes the issue – delete or change it:

    .single_variation_wrap {
    bottom: 0;
    float: left;
    left: 0;
    position: absolute;
    }

    Best regards,

    Peter

    #99243

    Sorry but no. It dosent change anything. The problem is that their is no price inputed in the code at all for the simple products and on the variable products with the same price the theme dosent input anything in the <div class=”single_variation”></div>. I dont think css got anything to do with it.

    #99244

    Please try to add following code to functions.php (at the very bottom) – it should add the price to the product single page:

    add_action( 'woocommerce_before_add_to_cart_button', 'inoplugs_price_container', 50 );

    function inoplugs_price_container()
    {
    echo "<div class='price_container'>";
    woocommerce_template_single_price($post, $product);
    echo "</div>";
    }

    #99245

    Hi Dude,

    It sure does, it displays the prices on both “simple products” and product with “variables that cost the same”. The problem is that now it display two prices on the “Variable product with different pricing”.

    If you can somehow get rid of the “fran: ‘price’” on those pages Im more then happy!

    #99246

    You can try following code instead (I didn’t test it though):

    add_action( 'woocommerce_before_add_to_cart_button', 'inoplugs_price_container', 50 );

    function inoplugs_price_container()
    {
    global $woocommerce, $product, $post;
    if ( (!empty($product->min_variation_price) && $product->min_variation_price == $product->max_variation_price) || empty($product->min_variation_price) )
    {
    echo "<div class='price_container'>";
    woocommerce_template_single_price($post, $product);
    echo "</div>";
    }
    }

    #99247

    Hi Dude! Great Idea! But it dosent do anything different from the last code you posted… In theory yes, but it does output the “from:price” anyway…

    #99248

    Hi!

    I forgot to include the global variables – I updated the code above.

    Best regards,

    Peter

    #99249

    Sorry, but it didnt do anything :-(

    #99250

    Hi!

    Changed it again – now it should work fine :)

    Best regards,

    Peter

    #99251

    It works like a dream! Thanks alot Dude, really appriciate it! Clever solution!

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

The topic ‘Product prices wont show if variables cost the same’ is closed to new replies.