Skip to content

Commit 41a6303

Browse files
committed
Rename old price to original price
1 parent f6bee9e commit 41a6303

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

code/Helper/Entity/Producthelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ private function handlePrice(&$product, $sub_products, &$customData, $groups = a
293293
$customData['price']['special_from_date'] = strtotime($product->getSpecialFromDate());
294294
$customData['price']['special_to_date'] = strtotime($product->getSpecialToDate());
295295

296-
$customData['price']['default_old_formated'] = $customData['price']['default'.'_formated'];
296+
$customData['price']['default_original_formated'] = $customData['price']['default'.'_formated'];
297297

298298
$special_price = (double) Mage::helper('tax')->getPrice($product, $special_price, null, null, null, null, $product->getStore(), null);
299299
$customData['price']['default'] = $special_price;
@@ -341,7 +341,7 @@ private function handlePrice(&$product, $sub_products, &$customData, $groups = a
341341
//// Do not keep special price that is already taken into account in min max
342342
unset($customData['price']['special_from_date']);
343343
unset($customData['price']['special_to_date']);
344-
unset($customData['price']['default_old_formated']);
344+
unset($customData['price']['default_original_formated']);
345345

346346
$customData['price']['default'] = 0; // will be reset just after
347347
}

design/frontend/template/topsearch.phtml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,11 @@ $class = $isSearchPage ? 'search-page' : '';
175175
{{price<?php echo $price_key; ?>_formated}}
176176
</span>
177177

178-
{{#price<?php echo $price_key; ?>_old_formated}}
178+
{{#price<?php echo $price_key; ?>_original_formated}}
179179
<span class="before_special">
180-
{{price<?php echo $price_key; ?>_old_formated}}
180+
{{price<?php echo $price_key; ?>_original_formated}}
181181
</span>
182-
{{/price<?php echo $price_key; ?>_old_formated}}
182+
{{/price<?php echo $price_key; ?>_original_formated}}
183183
</div>
184184

185185
<div class="info">
@@ -377,11 +377,11 @@ $class = $isSearchPage ? 'search-page' : '';
377377
{{price<?php echo $price_key; ?>_formated}}
378378
</span>
379379

380-
{{#price<?php echo $price_key; ?>_old_formated}}
380+
{{#price<?php echo $price_key; ?>_original_formated}}
381381
<span class="before_special">
382-
{{price<?php echo $price_key; ?>_old_formated}}
382+
{{price<?php echo $price_key; ?>_original_formated}}
383383
</span>
384-
{{/price<?php echo $price_key; ?>_old_formated}}
384+
{{/price<?php echo $price_key; ?>_original_formated}}
385385
</div>
386386
</div>
387387
</div>

0 commit comments

Comments
 (0)