Support » Plugin: Import Products from any XML or CSV to WooCommerce » Problem with product prices

  • Resolved Be Dark

    (@b_dark)


    Good Evening
    We have 2 different warehouses that we want to go to our eshop but one has the price with rounded prices without VAT in euros (example: 13.48) while in the other warehouse the amounts without VAT are not rounded (example: 22,988)

    How can I fix this problem so that the second one goes rounded values?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor WP All Import

    (@wpallimport)

    Hi @b_dark,

    How can I fix this problem so that the second one goes rounded values?

    You can use the round() PHP function on the price to do that, e.g.:

    [round({price[1]},2)]

    Learn more about PHP functions in imports here: https://www.wpallimport.com/documentation/developers/custom-code/inline-php/.

    Thread Starter Be Dark

    (@b_dark)

    hello @wpallimport,
    i add [round({price[1]},2)] in regular price, its shows right on preview but when i start to import on website doesn’t add the round price, just left empty the price. why?

    Plugin Contributor WP All Import

    (@wpallimport)

    Hi @b_dark,

    i add [round({price[1]},2)] in regular price, its shows right on preview but when i start to import on website doesn’t add the round price, just left empty the price. why?

    That’s strange, and we’ll really need to check the data and import settings to understand why it’s happening. Please replicate the issue on a sandbox site at http://www.wpallimport.com/debug/, then open a support request at http://www.wpallimport.com/support/ with the debug site URL and a brief description of the issue.

    Thread Starter Be Dark

    (@b_dark)

    Hello @wpallimport,

    On Import Settings>Custom Fields>Update only these Custom Fields, leave the rest alone> i have set tag “price” and not the tag “regular price” now everything is prefect!!! Thnx!!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.