• Resolved napisal

    (@napisal)


    Thank you for this amazing plugin.

    I was wondering if it’s possible to add an option of choosing currency in Field Mapping. Thanks to Aelia Currency Switcher I have four of them at my store. I’ve also asked Aelia support to comment here about what value should be used in plugin’s code.

Viewing 5 replies - 1 through 5 (of 5 total)
  • @napisal Thanks for using our plugin, the compliment and reaching out to us.

    We would love to build in additional features in our plugin for people to use. That being said, it is almost impossible to follow-up on all individual wishes we receive so we do prioritize and implement the features that are beneficial to a lot of users first. So, that being said I am curious to hear from Aelia what there hints are and how big their user-base is so we can determine how high we put your request on the to-do list.

    Have a great weekend,
    Joris

    @napisal did you hear from Aelia already?

    Thx
    Joris

    Thread Starter napisal

    (@napisal)

    @jorisverwater, yep, here’s their answer:

    The Currency Switcher saves the product prices as a JSON structure in custom product meta fields. Each product has one field for all its regular prices, and one for its sale prices. Each field contains multiple prices.
    This design was chosen long ago, when we assumed that only our plugins would need to access the data. Besides, prices are not necessarily stored in the database, as they might be calculated automatically using exchange rates. Dye to that, you can’t just map custom export fields to product meta.

    As of today, we are not aware of any feed plugin that supports the creation of feeds in multiple currencies (they don’t even support the selection of a currency when generating the feed). However, most of then can be customised.

    To export the product prices in a specific currency, the easiest way would be to set the active currency using a filter (see https://aelia.freshdesk.com/support/solutions/articles/3000010676-how-to-change-the-selected-currency-via-code, example #3). You can check the documentation of your feed plugin of choice to see what would be the best way to pass the currency as a parameter (e.g via the URL).

    After setting the currency, you can simply fetch the product prices as usual:
    $product->get_regular_price()
    $product->get_sale_price()
    $product->get_price()

    The Currency Switcher will return the prices in the active currency.

    Goodmorning @napisal,

    Thanks for your reply.

    I have jus released a new version of the plugin (version 1.3.3) that allows you to add the default WooCommerce currency to the product feed. A currency field will than be added to the feed.

    The plugin does not support your multiple currencies yet (working on it ;-)).

    Hope this helps for now.

    Best regards,
    Joris

    @napisal I assume using the default currency field is sufficient for now and will close this issue. Please let me know in-case your issue has not been solved.

    Best,
    Joris

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Different Currencies’ is closed to new replies.