{"id":29020269,"url":"https://github.com/webdna/commerce-currency-prices","last_synced_at":"2025-06-26T01:05:04.258Z","repository":{"id":48556961,"uuid":"161183590","full_name":"webdna/commerce-currency-prices","owner":"webdna","description":"Add a product price for each currency","archived":false,"fork":false,"pushed_at":"2025-03-26T15:32:17.000Z","size":959,"stargazers_count":3,"open_issues_count":5,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-30T01:48:42.061Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webdna.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-10T14:00:55.000Z","updated_at":"2025-03-26T15:32:00.000Z","dependencies_parsed_at":"2022-08-28T09:10:27.685Z","dependency_job_id":null,"html_url":"https://github.com/webdna/commerce-currency-prices","commit_stats":null,"previous_names":[],"tags_count":49,"template":false,"template_full_name":null,"purl":"pkg:github/webdna/commerce-currency-prices","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdna%2Fcommerce-currency-prices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdna%2Fcommerce-currency-prices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdna%2Fcommerce-currency-prices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdna%2Fcommerce-currency-prices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webdna","download_url":"https://codeload.github.com/webdna/commerce-currency-prices/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdna%2Fcommerce-currency-prices/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261978912,"owners_count":23239417,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-26T01:04:58.591Z","updated_at":"2025-06-26T01:05:04.242Z","avatar_url":"https://github.com/webdna.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Currency Prices plugin for Craft CMS 3.x\n\nAdds the option to set product prices in different currencies\n\n## Requirements\n\nThis plugin requires Craft CMS 3.0.0-beta.23 or later.\n\n## Installation\n\nTo install the plugin, follow these instructions.\n\n1. Open your terminal and go to your Craft project:\n\n        cd /path/to/project\n\n2. Then tell Composer to load the plugin:\n\n        composer require webdna/commerce-currency-prices\n\n3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Currency Prices.\n\n## Currency Prices Overview\n\nConfigure your payment currencies in Craft Commerce settings - foreach currency set the conversion rate to 1.\n\n![Screenshot](resources/screenshots/payment-currencies.png)\n\nAdditional currency price fields will be added to Products, Discounts and Shipping Rules.\n\n**Products**\n\nProducts will now display a price field for each currency setup.\n\nThe product price used in the cart will change depending on which payment currency is selected.\n\n![Screenshot](resources/screenshots/currency-prices.png)\n\nTo display a product currency price use one of the the following Twig filter:\n\n```twig\n{{ product.defaultVariant|currencyPrice('GBP') }}\n\n{{ product.defaultVariant|currencySalePrice('GBP') }}\n```\n\nThe current cart payment currency could be used to set the currency in the Twig filter:\n\n```twig\n{{ product.defaultVariant|currencyPrice(cart.paymentCurrency) }}\n\n{{ product.defaultVariant|currencySalePrice(cart.paymentCurrency) }}\n```\n\n**Discounts**\n\nAdd product discounts for each of your currencies\n\n![Screenshot](resources/screenshots/currency-discounts.png)\n\n**Shipping**\n\nSetup shipping conditions and costs for each of your payment currencies.\n\n_Shipping Conditions_\n\n![Screenshot](resources/screenshots/currency-shipping-conditions.png)\n\n_Shipping Costs_\n\n![Screenshot](resources/screenshots/currency-shipping-costs.png)\n\n\n**Currency Fieldtype**\n\nAdds a 'Currencies' fieldtype giving a dropdown list of payment currencies\n\nBrought to you by [webdna](https://webdna.co.uk/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdna%2Fcommerce-currency-prices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebdna%2Fcommerce-currency-prices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdna%2Fcommerce-currency-prices/lists"}