WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Problems with prices (32 posts)

  1. assistantgroup
    Member
    Posted 1 year ago #

    I have problem with my prices. The price os my article is 13.55€ and looks like 13.00. In the catalog settings, the option remove zeros is disabled. Could you help me.

    Thanks,

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

  2. travellers
    Member
    Posted 1 year ago #

    Don't type the currency symbol in the price field

  3. assistantgroup
    Member
    Posted 1 year ago #

    I haven't written the symbol in the price field. Any idea?

    Thanks,

  4. travellers
    Member
    Posted 1 year ago #

    Sorry, I thought that was bound to be it.

  5. helgatheviking
    Member
    Posted 1 year ago #

    are you using a custom woocommerce theme? can you switch themes for a minute? it sounds like something is rounding the price.... and it could be the theme.

    also try saving the product again. never hurts.

  6. assistantgroup
    Member
    Posted 1 year ago #

    Yes. I'm going to look the theme.
    Regards

  7. assistantgroup
    Member
    Posted 1 year ago #

    The price is 136.55 and look like 136.00 136.55 but if I put a product on sale, for example, from 136 to 135.50 both look well. I checked that all prices that are on sale look well.

    My theme hasn`t option for rounding price.

    Could you help me please?

  8. helgatheviking
    Member
    Posted 1 year ago #

    are the prices still being rounded if you switch themes to the default theme?

  9. assistantgroup
    Member
    Posted 1 year ago #

    Hi, I have created a new bbdd, I have installed my theme again and the woocommerce plugin again and I have imported my products buta I still have the same problem: The price is 136.55 and look like 136.00 136.55 but if I put a product on offer, for example, from 136 to 135.50 both look well. I checked that all prices that are on sale look well.

    I have to sent the web to my client!!! Could you help me please?

    Regards

  10. travellers
    Member
    Posted 1 year ago #

    You didn't tell us if the problem still occurred with the default theme or not? In fact download and install wootique or the other free woocommerce theme and switch to that, just to check.

  11. assistantgroup
    Member
    Posted 1 year ago #

    Sorry, yes the problem still occurred with the fault theme.

  12. travellers
    Member
    Posted 1 year ago #

    I'm a bit confused - what do you mean when you say the price "looks like" 136? Do you mean it IS 136, or something else?

  13. travellers
    Member
    Posted 1 year ago #

    What I'm trying to say is - your description of the problem is a bit misleading. Just for example, if you've been editing the css and narrowed the field where the price displays, the 136.55 might actually BE there, just not visible because there isn't space to display it. The field for an 'offer' price has a different name, so its perfectly possible that that one would display correctly while the other one didn't!

    In fact, post the URL - its got to be easier than this!!!

  14. assistantgroup
    Member
    Posted 1 year ago #

  15. travellers
    Member
    Posted 1 year ago #

    So the only item you have in your shop that has a fraction price is the one that's on sale, right? Or do they ALL have prices like 135.63, but its just that they show on the page as 135? I'm clutching at straws, but have you tried changing the currency?

  16. helgatheviking
    Member
    Posted 1 year ago #

    source code says prices like €111.00 for http://serfesiluminacion.com/?product=13600143027. i presume this should have some cents? so i'm pretty sure it isn't a css issue.

  17. assistantgroup
    Member
    Posted 1 year ago #

    Hi, I have installed again wordpress, I have created a new bbdd and I have installed again the theme and woocommerce plugin but I still have the same problem. The price is 15,55€ and its look like 15,00€. I have created another product with offer price and looks well.
    Please, it's very important for me if you can help me.

  18. travellers
    Member
    Posted 1 year ago #

    I've not ignored this, I just can't think of whatever the hell is happening! Did you try changing the currency for another, to see if the problem persists with dollars or GBP as well as euro?
    It might be time to buy into a theme, or an addon for woocommerce, and so gain access to their support forums, so that you can submit a ticket for help. I'm about to do the same thing myself, for a problem removing a sidebar that I simply can't track down. It's got to be a price -v- time thing really - how much time are you prepared to invest trying to find solutions here in wordpress.org, time which you could use earning money from your client, rather than go straight to the horses mouth and ask woocommerce themselves? For me, that point was passed long ago, and I've only pressed on WITHOUT buying an addon (that I don't really need or want, but just to get at support) out of sheer bloodymindedness.
    I know that's not helping you and I'm sorry about that. I only hope that when we DO go to woocommerce for help, they actually give it!

  19. assistantgroup
    Member
    Posted 1 year ago #

    Hi travellers.I think that I have found where is the problem. I have delete woocommerce and I have installed jigoshop and now the prices is correct.

    Now, I have to configure everything again but my prices look well. If all is ok I'll tell you.

    Thank you very much

    Irene

  20. helgatheviking
    Member
    Posted 1 year ago #

    have to agree with travellers. nothing jumps out at me either since i can't replicate your problem and i can't really dig in further w/ getting into your site, and/or downloading your theme files.

    if this is a client project ( i presume you are getting paid ) it makes sense to hire a developer or even more sensible to pay for Woo support. I've always found the woo team to be very helpful. i know WP and WooCommerce are "free" but you are paying for knowledge here in order to save time.

    you also might've found a bug, so do report it at http://github.com/woocommerce/issues.

  21. CyberBengt
    Member
    Posted 1 year ago #

    I have a similar problem. As I work in Swedish kronor, I don´t use decimals. But I lose the trailing zeros at the confirm phase in my shop.

    Let´s say I price a product to 100 kr. Everything looks good in the shop page, in the product page, if I put a product in my cart and when I show the cart. But after my order, in the order confirmation on screen and in the confirmation e-mail the amuont lost its zeros an says the price is 1 kr!!! The total sum is correct, the tax is correct but NOT the price.

    What can I do? Is it a bug?

    /Bengt

  22. CyberBengt
    Member
    Posted 1 year ago #

    I found the problem!!!

    In Settings>Product Catalog>Price alternative>Number of decimals, you can´t put "0" or leave the box empty.

    When I tried with 2 decimals and checked the "Remove zeros", it all works as it should.

    Happy Face
    Bengt

  23. helgatheviking
    Member
    Posted 1 year ago #

    i'd say there is a bug of some sort. i'd report it at github. the woo team is back from their trip/vacation and is responding to issues again.

  24. travellers
    Member
    Posted 1 year ago #

    @helga
    I had a look at that github thing after you mentioned it in a different post. I have tried, honestly, but I'm afraid I still haven't the faintest idea what it actually IS! I'm sure it isn't intentionally complicated, but it might as well be in Hindu for all the sense it makes to me :(

  25. helgatheviking
    Member
    Posted 1 year ago #

    @travellers - it might help if i put the right link:
    https://github.com/woothemes/woocommerce/issues/new

    you need to be a user, but otherwise for reporting bugs it shouldn't be any different from posting a forum post here.

    and btw- something i think git IS intentionally complicated! :) i have struggled to get my head around it for development.

  26. mantaalex
    Member
    Posted 1 year ago #

    i'm having the same problem here when the price is 13,40 it says in cart 13 what can i do?

  27. helgatheviking
    Member
    Posted 1 year ago #

    Did you try @CyberBengt's solution from a few posts up

  28. trobenta
    Member
    Posted 1 year ago #

    I just found the solution somewhere else on the net.

    Even if you select a comma as a decimal separator, you still have to use the dot when entering price or tax or whatever in Woocommerce.

    Now it works as it should.
    Me happy. :D

  29. helgatheviking
    Member
    Posted 1 year ago #

    Thanks for posting back. That's a really good point. All back-end prices use the decimal separator ( because PHP int or intval functions will just strip the comma and what comes after ) and the comma separator is only for front-facing display.

  30. Leandro Martins Guimarães
    Member
    Posted 11 months ago #

    To use comma (or anything else) as decimal separator without problems, just put this in your functions.php:

    function site_woocommerce_get_price($price, $product) {
    $decimal_sep = wp_specialchars_decode(stripslashes(get_option('woocommerce_price_decimal_sep')), ENT_QUOTES);
    if ($decimal_sep != '.')
    $price = str_replace($decimal_sep, '.', $price);

    return $price;
    }
    add_filter('woocommerce_get_price', 'site_woocommerce_get_price', 10, 2);

    I reported this issue for WooCommerce dev team here: https://github.com/woothemes/woocommerce/issues/3587

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags