optiweb/double-currency

Display a secondary informative currency next to all of prices

Installs: 225

Dependents: 0

Suggesters: 0

Security: 0

Type:magento2-module

1.1.2 2022-09-06 06:38 UTC

This package is auto-updated.

Last update: 2024-04-06 10:06:10 UTC


README

Magento 2 module

This module is used to display prices in a secondary currency in various places including and not limited to:

  • product page - main info
  • search autocomplete
  • minicart
  • cart items
  • cart sidebar subtotal
  • upsell / related products
  • ...

Product page Category page / search Cart summary Checkout summary

Features

  • Enable/disable functionality per store view
  • Use any ISO 4217 secondary currency. It is rendered according to your default locale using PHP NumberFormatter::formatCurrency
  • Configure conversion rate in system configuration
  • Display said conversion rate on product page and/or cart and checkout summary

Instructions

Navigate to Stores → Configuration → Catalog → Catalog → Double (informative) currency.

  1. Enable - enable or disable this feature
  2. Secondary currency - any ISO 4217 currency code
  3. Conversion rate - 1 unit of your primary currency amounts to this amount of secondary currency. Warning: this value is fixed and does not auto update! Defaults to 1 - no conversion.
  4. Display conversion rate on product page - Display conversion rate information on product page, for example: "Conversion rate: 0.13272. 1 HRK = 0.13 EUR"
  5. Display conversion rate on cart summary - Display conversion rate information on cart and checkout summary"

Compatibility

  • Developed on a Magento 2.4.3 site with PHP 7.4
  • Compatible with Magento >= 2.3.7 running on PHP 7.4 or higher

Changelog

  • 1.0.0
    • Initial release
  • 1.1.0
    • Update secondary currency on configurable product page in when product options have different prices
  • 1.1.1
    • Fix JS error if feature is disabled
  • 1.1.2
    • Fix issue with different price types

License

MIT - See LICENSE.txt