Skip to content

Commit

Permalink
Make attribute price label configurable through language files (#2097)
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Mar 18, 2020
1 parent a703e9b commit 7bbd8ef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions system/modules/isotope/docs/CHANGELOG-2.7.md
Expand Up @@ -8,3 +8,4 @@ Version 2.7.0 (2020-??-??)
- Added option to exclude payment method for certain product types (#2072)
- Added attribute to pick a page from the page tree
- Added option to limit back end users to only see orders of certain member groups
- Make attribute price label configurable through language files (#2097)
3 changes: 3 additions & 0 deletions system/modules/isotope/languages/en/default.xlf
Expand Up @@ -143,6 +143,9 @@
<trans-unit id="MSC.priceRangeLabel">
<source>&lt;span class="from"&gt;From&lt;/span&gt; %s</source>
</trans-unit>
<trans-unit id="MSC.attributePriceLabel">
<source>%s (%s)</source>
</trans-unit>
<trans-unit id="MSC.detailLabel">
<source>View Details</source>
</trans-unit>
Expand Down
Expand Up @@ -206,7 +206,7 @@ public function getAmount($fltPrice, $intTaxClass)
public function getLabel(IsotopeProduct $objProduct = null)
{
$strLabel = $this->label;
$priceFormat = '%s (%s)';
$priceFormat = $GLOBALS['TL_LANG']['MSC']['attributePriceLabel'];

/** @var Attribute $objAttribute */
$objAttribute = null;
Expand Down

0 comments on commit 7bbd8ef

Please sign in to comment.