kuriousagency / commerce-currency-prices
Adds payment currency prices to products
Installs: 10 234
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 5
Open Issues: 5
Type:craft-plugin
Requires
- craftcms/cms: ^4.0
- craftcms/commerce: ^4.0
- dev-master
- 3.0.0-beta.4
- 3.0.0-beta.3
- 3.0.0-beta.2
- 3.0.0-beta.1
- 2.7.4
- 2.7.3
- 2.7.2
- 2.7.1
- 2.7.0
- 2.6.7
- 2.6.6
- 2.6.5
- 2.6.4
- 2.6.3
- 2.6.2
- 2.6.1
- 2.6.0
- 2.5.6
- 2.5.5
- 2.5.4
- 2.5.3
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4.2
- 2.4.1
- 2.4.0
- 2.3.9
- 2.3.8
- 2.3.7
- 2.3.6
- 2.3.5
- 2.3.4
- 2.3.3
- 2.3.2
- 2.3.1
- 2.3.0
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.2
- 1.0.0
- dev-craft3
- dev-feature/bundles
This package is auto-updated.
Last update: 2023-05-26 14:09:39 UTC
README
Adds the option to set product prices in different currencies
Requirements
This plugin requires Craft CMS 3.0.0-beta.23 or later.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require webdna/commerce-currency-prices
-
In the Control Panel, go to Settings → Plugins and click the “Install” button for Currency Prices.
Currency Prices Overview
Configure your payment currencies in Craft Commerce settings - foreach currency set the conversion rate to 1.
Additional currency price fields will be added to Products, Discounts and Shipping Rules.
Products
Products will now display a price field for each currency setup.
The product price used in the cart will change depending on which payment currency is selected.
To display a product currency price use one of the the following Twig filter:
{{ product.defaultVariant|currencyPrice('GBP') }} {{ product.defaultVariant|currencySalePrice('GBP') }}
The current cart payment currency could be used to set the currency in the Twig filter:
{{ product.defaultVariant|currencyPrice(cart.paymentCurrency) }} {{ product.defaultVariant|currencySalePrice(cart.paymentCurrency) }}
Discounts
Add product discounts for each of your currencies
Shipping
Setup shipping conditions and costs for each of your payment currencies.
Shipping Conditions
Shipping Costs
Currency Fieldtype
Adds a 'Currencies' fieldtype giving a dropdown list of payment currencies
Brought to you by webdna