WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[resolved] Woocommerce pricing not working? (17 posts)

  1. twissandweber
    Member
    Posted 2 years ago #

    Hello. I'm trying to set up an online shop with WooCommerce but I'm running into some problems when trying to put prices to my items.

    I've tried fiddling around with both simple and variable products and I can't seem to get the price to say what I want. Even when I put in a certain price, what it ends up being is free. The only time that I can get the real price to show up, instead of it just saying free, is when I have the item for sale. But I don't want to have to do that.

    Am I inputting the information wrong? I'm just simply typing in a value like $85 for simple products, and the same for variable products too. I've tried different formats like just 85 or $85.00 but nothing seems to work.

    Is it an upgrade malfunction? I don't know... but would be extremely grateful for any solutions.

    http://wordpress.org/extend/plugins/woocommerce/

  2. mikejolley
    Member
    Plugin Author

    Posted 2 years ago #

    Prices need to be NUMERIC and include no currency symbols.

    85
    85.00

    If you use variations, you must set the price of each variation you add.

  3. lewisr90
    Member
    Posted 1 year ago #

    Hi i please need your help.

    Can you explain to me why my variation prices are not showing. they are really inconsistent.

    http://electrophix.co.uk/?product=ipad-2-repairs

    thanks

    lewis

  4. teknikalguru
    Member
    Posted 1 year ago #

    Hi Lewis,
    i am having a ridiculous time on this website. but its killing my time when I cant figure out one freaking thing. if you goto trendnsave.com. you will see all the products say Free. But when you click on the product. It will show its price. I am tired of this thing,. I cant remove the Free label. Did you figure it out?

  5. Roy Ho
    Member
    Posted 1 year ago #

    @teknikalguru - did this just started happening after 2.0+ update?

  6. teknikalguru
    Member
    Posted 1 year ago #

    Probably did. I have always been a Fan of not updating software. If it ain't broken, why fix it. I did like the new features that it added. So I updated Woocommerce. Is there a way to revert back without any loss? I did not backup my settings. I will as soon as I fix this glitch.

    I have been adding test products up with minimal options. And it still pops up as free. I found this is. http://www.foxrunsoftware.net/articles/wordpress/hide-woocommerce-free-price-label/.

    However, I using Filezilla and Crimson Editor. Trying to find Functions.php. Havent yet find the file.

  7. teknikalguru
    Member
    Posted 1 year ago #

  8. Roy Ho
    Member
    Posted 1 year ago #

    Well you need to be clear as to if this happened after the 2.0 update as I asked it for a reason. If it did happen after, then it means your theme is probably making an instance of the products instead of using the function get_product. In 2.0, the products class has been abstracted which means you need to use the function that in turns creates the instance instead of access it directly.

    But this is just a speculation to your issue if indeed it is what happened to me. I had to replace all instantiations with the provided function.

  9. teknikalguru
    Member
    Posted 1 year ago #

    How do I do that?

  10. Roy Ho
    Member
    Posted 1 year ago #

    Well you need to read the documentation for it...Go to Google and search for woocommerce 1.6.6 to 2.0 and it will give you a link...

  11. teknikalguru
    Member
    Posted 1 year ago #

    It has not been resolved. I dont know what exactly tool for or even change.

  12. Roy Ho
    Member
    Posted 1 year ago #

    Again you have to check if you're using any instantiations of the product class...Because if your theme isn't using this, then this isn't even your issue...

  13. hotplugin
    Member
    Posted 1 year ago #

    here's a quick solution:

    add_filter( 'woocommerce_variable_free_price_html', 'hide_free_price_notice', 10, 2 );
    add_filter( 'woocommerce_free_price_html',          'hide_free_price_notice', 10, 2 );
    
    /**
     * Hides the 'Free!' price notice
     */
    function hide_free_price_notice( $price, $product ) {
      return '';
    }

    TRY IT !

  14. Punka Tess
    Member
    Posted 1 year ago #

    I'm having this problem as well. What page do you add that code to? Thanks!

  15. hotplugin
    Member
    Posted 1 year ago #

    inside functions.php

  16. charlestupman
    Member
    Posted 1 year ago #

    Has anyone managed to fix the variable not showing problem, I have tried everything and its a real time drain. http://www.camelotoakfurniture.com/shop/solid-oak-bed/

  17. SamDouthwaite
    Member
    Posted 1 year ago #

    I am having a similar problem, @charlestupman I think I can help you.

    Use Google Chrome on your website and use right click > Inspect element where your pricing SHOULD be.

    You have the following line of code which is hiding the price & add to cart. I have the same problem. I have managed to locate and remove the code from my site which gets the add to cart back, but I haven't located the price one yet.

    The code in question is

    <div class="single_variation_wrap" style="display: none;">

    Delete: style="display: none;"

    This will get the box to show up again. You can use the Inspect Element on Chrome to see how it will look.

    The problem is then locating the relevant line of code - I was looking for hours last night and think I ended up finding it in one of the php files associated with "single-product". You will have this associated with both the price and add to cart separately, so will need to locate and amend 2 lines of code. Most likely within your template files.

    Hope this helps you. Good luck! Back to code exploring!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic