diff --git a/digitalproducts/elementtypes/DigitalProducts_ProductElementType.php b/digitalproducts/elementtypes/DigitalProducts_ProductElementType.php index 908b271..b93193a 100644 --- a/digitalproducts/elementtypes/DigitalProducts_ProductElementType.php +++ b/digitalproducts/elementtypes/DigitalProducts_ProductElementType.php @@ -220,7 +220,7 @@ public function getTableAttributeHtml(BaseElementModel $element, $attribute) return ($taxCategory ? Craft::t($taxCategory->name) : ''); } case 'defaultPrice': { - $code = craft()->commerce_settings->getOption('defaultCurrency'); + $code = craft()->commerce_paymentCurrencies->getPrimaryPaymentCurrencyIso(); return craft()->numberFormatter->formatCurrency($element->$attribute, strtoupper($code)); } diff --git a/digitalproducts/templates/products/_fields.html b/digitalproducts/templates/products/_fields.html index 6e5903f..6cc78c2 100644 --- a/digitalproducts/templates/products/_fields.html +++ b/digitalproducts/templates/products/_fields.html @@ -93,7 +93,7 @@ name: 'price', value: (product.price == '0' ? '0'|number : (product.price ? product.price|number ?: '')), placeholder: 'Enter price'|t, - unit: craft.commerce.settings.defaultCurrency, + unit: craft.commerce.primaryPaymentCurrency.iso, required: true, errors: product.getErrors('price') }) }}