• Resolved rebroken

    (@rebroken)


    While exporting products from a Jigoshop 1.5.1, the prices were being rounded to the nearest dollar without warning.

    This was caused by the calls to get_option(‘jigoshop_price_num_decimals’) at the top of formatting.php returning false, then being cast (int) to zero, then being passed to number_format().

    It might be wise to detect the return value of get_option then applying a sensible default if it isn’t found for whatever reason. Ultimately two decimal places is probably a safer default because it won’t matter for those currencies dealing in whole numbers, but may result in pricing mistakes in others (such as in my case).

    Cheers for a great plugin!

    https://www.ads-software.com/plugins/jigoshop-exporter/

Viewing 3 replies - 1 through 3 (of 3 total)
  • I set a new site and new jigoshop installment and seem to have the same issue. When something costs 3,87 shop shows 3,00. When the price is 0,82, shop shows… 0,00…

    Do I have to mention that because of that the plugin is totally useless?

    There are also tax issues, plus problem with widgets below the content on the main site, which turns out to be “normal” for themes not created to work with jigoshop…

    Plugin Author Michael Visser

    (@visser)

    Hi michaldybczak, I’m looking at this export issue and will patch it in the next Plugin update.

    Can you check if this issue wasn’t caused by different decimal sign for prices between US and European countries? We use , instead of . and so we give price 3,87 not 3.87. The setting was set to , but maybe input should have been still with point.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Surprise price rounding’ is closed to new replies.