• Resolved hansderuiter

    (@hansderuiter)


    I’ve installed this plugin, and it’s almost working the way I want. The one hiccup is that the “now available” email quotes the price in the wrong currency.

    The “you have subscribed” email quotes the price in NZD as expected. NZD is my store’s base currency, and the currency I was viewing when the email was sent. However, when the item is back in stock the “available now” email quotes the price in USD, and excluding GST. This is naturally going to cause confusion with customers.

    It would be great if the plugin saved the currency along with the user’s email address (use whatever currency the user was viewing). That way both the “subscribed” and “available now” emails would be consistent and use the same currency. Failing that, it should default to the store’s base currency.

    Hans

    P.S., for reference, I’m using the Aelia Currency Switcher, although I assume that there is some sort of common API for setting the current currency.

Viewing 6 replies - 1 through 6 (of 6 total)
  • @hansderuiter Our plugin sends the currency that is set from WooCommerce, hence you should not face this issue.

    You might be facing this issue due to the currency switcher plugin, will you please disable the plugin and check again.

    Let us know what you get so that we can assist you accordingly.

    Thread Starter hansderuiter

    (@hansderuiter)

    Just tried disabling the plugin. As expected, the price is presented in NZD. I’ve figured out why it’s different with the plugin enabled: the server is in Australia and it’s currently set up to use USD for most of the rest of the world (should really add AUD). The “you have subscribed” email is sent in response to a user action, so the currency is based on the user’s IP address or preference. However, the user’s IP address and preference doesn’t exist when the “available now” email is sent, and it looks like the currency is then set based on the server’s location.

    It would be best if each user received emails using whatever currency they were using when they submitted the stock alert request. That would mean recording the currency along with the email address, and using that currency when the “available now” email is sent.

    Hans

    Thread Starter hansderuiter

    (@hansderuiter)

    @dualcube

    Could you update the plugin to use the same currency & locale settings for all emails? I say locale too, so that any taxes are correct as well. Let me know if you need a formal enhancement request (and where I should submit it).

    Hans

    @hansderuiter

    Hans, thanks for sharing your idead with us.

    I have informed the development team regarding this feature request, they will take a further decision upon this.

    Alternatively, you may customize the email to include the same currency & locale settings by overriding stock_alert_email.php” email template file by coping woocommerce-product-stock-alert/templates/emails/stock_alert_email.php to your active theme folder/woocommerce/emails/stock_alert_email.php.

    Let us know if you have any further query.

    Regards,
    Moumita

    Thread Starter hansderuiter

    (@hansderuiter)

    @dualcube

    I took a quick look at the templates, but see no way to set the currency & locale in stock_alert_email.php to match the currency & locale that was used in the subscription email (as in, the user’s currency & locale). So I hope you’ll add this feature.

    Thanks for taking it into consideration.

    Hans

    @hansderuiter The team has already been notified regarding this feature request.

    However, for the time being, you can also implement the functionality.

    Please use the function that is detecting the local currency, use that in our email template to get the same.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Wrong currency in “now available” email’ is closed to new replies.