[Skip to main content](#vessel-content)

#   Change promotion display

##

- **[YakNarak](/forum/user/476-yaknarak "View YakNarak's Profile")**
- [![YakNarak's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/476-yaknarak "View YakNarak's Profile") Topic Author
- [ Offline](/forum/user/476-yaknarak)

Less More

- Posts: 86
- Thank you received: 0
-
-

14 years 11 months ago [\#31614](#31614) by [YakNarak](/forum/user/476-yaknarak "View YakNarak's Profile")  *[Change promotion display](/forum/4-how-to/31614-change-promotion-display#31614 "I've been struggling to display a promotion the way my customer wants.  It should like the attached picture, with the following changes:  1. Only the old price should be striped out 2. Now B 350 should be in a different color.  Can anyone tell me how to do this. I know I have to change it in the code below, but I have no idea how:    row-&gt;prices)){ echo JText::&#95;('FREE&#95;PRICE'); }else{ $first=true; echo JText::&#95;('PRICE&#95;PRODUCT'); foreach($this-&gt;row-&gt;prices as $price){ if($first)$first=false; else echo JText::&#95;('PRICE&#95;SEPARATOR'); if(!empty($this-&gt;row-&gt;discount)){ if($this-&gt;params-&gt;get('show&#95;discount')==1){ echo ''.JText::&#95;('PRICE&#95;DISCOUNT&#95;START'); if(bccomp($this-&gt;row-&gt;discount-&gt;discount&#95;flat&#95;amount,0,5)!==0){ echo $this-&gt;currencyHelper-&gt;format(-1&#42;$this-&gt;row-&gt;discount-&gt;discount&#95;flat&#95;amount,$price-&gt;price&#95;currency&#95;id); }else{ echo -1&#42;$this-&gt;row-&gt;discount-&gt;discount&#95;percent&#95;amount.'%'; } echo JText::&#95;('PRICE&#95;DISCOUNT&#95;END').''; }elseif($this-&gt;params-&gt;get('show&#95;discount')==2){ echo ''.JText::&#95;('PRICE&#95;DISCOUNT&#95;START'); echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;value&#95;without&#95;discount&#95;with&#95;tax,$price-&gt;price&#95;currency&#95;id); if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;BEFORE&#95;TAX'); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2||!$this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;value&#95;without&#95;discount,$price-&gt;price&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;AFTER&#95;TAX'); } if($this-&gt;params-&gt;get('show&#95;original&#95;price') &amp;&amp; !empty($price-&gt;price&#95;orig&#95;value&#95;without&#95;discount&#95;with&#95;tax)){ echo JText::&#95;('PRICE&#95;BEFORE&#95;ORIG'); if($this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;orig&#95;value&#95;without&#95;discount&#95;with&#95;tax,$price-&gt;price&#95;orig&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;BEFORE&#95;TAX'); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2||!$this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;orig&#95;value&#95;without&#95;discount,$price-&gt;price&#95;orig&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;AFTER&#95;TAX'); } echo JText::&#95;('PRICE&#95;AFTER&#95;ORIG'); } echo JText::&#95;('PRICE&#95;DISCOUNT&#95;END').''; } } echo ''; if($this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;value&#95;with&#95;tax,$price-&gt;price&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;BEFORE&#95;TAX'); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2||!$this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;value,$price-&gt;price&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;AFTER&#95;TAX'); } if($this-&gt;params-&gt;get('show&#95;original&#95;price') &amp;&amp; !empty($price-&gt;price&#95;orig&#95;value)){ echo JText::&#95;('PRICE&#95;BEFORE&#95;ORIG'); if($this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;orig&#95;value&#95;with&#95;tax,$price-&gt;price&#95;orig&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;BEFORE&#95;TAX'); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2||!$this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;orig&#95;value,$price-&gt;price&#95;orig&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;AFTER&#95;TAX'); } echo JText::&#95;('PRICE&#95;AFTER&#95;ORIG'); } echo ' '; if($this-&gt;params-&gt;get('show&#95;price&#95;weight')){ if(!empty($this-&gt;element-&gt;product&#95;id) &amp;&amp; isset($this-&gt;row-&gt;product&#95;weight) &amp;&amp; bccomp($this-&gt;row-&gt;product&#95;weight,0,3)){ $weight&#95;price = $price-&gt;price&#95;value&#95;with&#95;tax / $this-&gt;row-&gt;product&#95;weight; echo JText::&#95;('PRICE&#95;SEPARATOR').$this-&gt;currencyHelper-&gt;format($weight&#95;price,$price-&gt;price&#95;currency&#95;id).' / '.JText::&#95;($this-&gt;row-&gt;product&#95;weight&#95;unit); } } } echo JText::&#95;('PRICE&#95;END'); } ?&gt;  Thanks in advance!  Gert.")* was created by *[YakNarak](/forum/user/476-yaknarak "View YakNarak's Profile")*

I've been struggling to display a promotion the way my customer wants.

It should like the attached picture, with the following changes:

1. Only the old price should be striped out
2. Now B 350 should be in a different color.

Can anyone tell me how to do this. I know I have to change it in the code below, but I have no idea how:

&lt;?php
/**
* @package HikaShop for Joomla!
* @version 1.5.2
* @author hikashop.com
* @copyright (C) 2010-2011 HIKARI SOFTWARE. All rights reserved.
* @license [ www.hikashop.com/commercial\_license.php](http://www.hikashop.com/commercial_license.php)
*/
defined('_JEXEC') or die('Restricted access');
?&gt;
&lt;span class="hikashop_product_price_full"&gt;
&lt;?php
if(empty($this-&gt;row-&gt;prices)){
echo JText::_('FREE_PRICE');
}else{
$first=true;
echo JText::_('PRICE_PRODUCT');
foreach($this-&gt;row-&gt;prices as $price){
if($first)$first=false;
else echo JText::_('PRICE_SEPARATOR');
if(!empty($this-&gt;row-&gt;discount)){
if($this-&gt;params-&gt;get('show_discount')==1){
echo '&lt;span class="hikashop_product_discount"&gt;'.JText::_('PRICE_DISCOUNT_START');
if(bccomp($this-&gt;row-&gt;discount-&gt;discount_flat_amount,0,5)!==0){
echo $this-&gt;currencyHelper-&gt;format(-1*$this-&gt;row-&gt;discount-&gt;discount_flat_amount,$price-&gt;price_currency_id);
}else{
echo -1*$this-&gt;row-&gt;discount-&gt;discount_percent_amount.'%';
}
echo JText::_('PRICE_DISCOUNT_END').'&lt;/span&gt;';
}elseif($this-&gt;params-&gt;get('show_discount')==2){
echo '&lt;span class="hikashop_product_price_before_discount"&gt;'.JText::_('PRICE_DISCOUNT_START');
echo $this-&gt;currencyHelper-&gt;format($price-&gt;price_value_without_discount_with_tax,$price-&gt;price_currency_id);
if($this-&gt;params-&gt;get('price_with_tax')==2){
echo JText::_('PRICE_BEFORE_TAX');
}
if($this-&gt;params-&gt;get('price_with_tax')==2&#124;&#124;!$this-&gt;params-&gt;get('price_with_tax')){
echo $this-&gt;currencyHelper-&gt;format($price-&gt;price_value_without_discount,$price-&gt;price_currency_id);
}
if($this-&gt;params-&gt;get('price_with_tax')==2){
echo JText::_('PRICE_AFTER_TAX');
}
if($this-&gt;params-&gt;get('show_original_price') &amp;&amp; !empty($price-&gt;price_orig_value_without_discount_with_tax)){
echo JText::_('PRICE_BEFORE_ORIG');
if($this-&gt;params-&gt;get('price_with_tax')){
echo $this-&gt;currencyHelper-&gt;format($price-&gt;price_orig_value_without_discount_with_tax,$price-&gt;price_orig_currency_id);
}
if($this-&gt;params-&gt;get('price_with_tax')==2){
echo JText::_('PRICE_BEFORE_TAX');
}
if($this-&gt;params-&gt;get('price_with_tax')==2&#124;&#124;!$this-&gt;params-&gt;get('price_with_tax')){
echo $this-&gt;currencyHelper-&gt;format($price-&gt;price_orig_value_without_discount,$price-&gt;price_orig_currency_id);
}
if($this-&gt;params-&gt;get('price_with_tax')==2){
echo JText::_('PRICE_AFTER_TAX');
}
echo JText::_('PRICE_AFTER_ORIG');
}
echo JText::_('PRICE_DISCOUNT_END').'&lt;/span&gt;';
}
}
echo '&lt;span class="hikashop_product_price"&gt;';
if($this-&gt;params-&gt;get('price_with_tax')){
echo $this-&gt;currencyHelper-&gt;format($price-&gt;price_value_with_tax,$price-&gt;price_currency_id);
}
if($this-&gt;params-&gt;get('price_with_tax')==2){
echo JText::_('PRICE_BEFORE_TAX');
}
if($this-&gt;params-&gt;get('price_with_tax')==2&#124;&#124;!$this-&gt;params-&gt;get('price_with_tax')){
echo $this-&gt;currencyHelper-&gt;format($price-&gt;price_value,$price-&gt;price_currency_id);
}
if($this-&gt;params-&gt;get('price_with_tax')==2){
echo JText::_('PRICE_AFTER_TAX');
}
if($this-&gt;params-&gt;get('show_original_price') &amp;&amp; !empty($price-&gt;price_orig_value)){
echo JText::_('PRICE_BEFORE_ORIG');
if($this-&gt;params-&gt;get('price_with_tax')){
echo $this-&gt;currencyHelper-&gt;format($price-&gt;price_orig_value_with_tax,$price-&gt;price_orig_currency_id);
}
if($this-&gt;params-&gt;get('price_with_tax')==2){
echo JText::_('PRICE_BEFORE_TAX');
}
if($this-&gt;params-&gt;get('price_with_tax')==2&#124;&#124;!$this-&gt;params-&gt;get('price_with_tax')){
echo $this-&gt;currencyHelper-&gt;format($price-&gt;price_orig_value,$price-&gt;price_orig_currency_id);
}
if($this-&gt;params-&gt;get('price_with_tax')==2){
echo JText::_('PRICE_AFTER_TAX');
}
echo JText::_('PRICE_AFTER_ORIG');
}
echo '&lt;/span&gt; ';
if($this-&gt;params-&gt;get('show_price_weight')){
if(!empty($this-&gt;element-&gt;product_id) &amp;&amp; isset($this-&gt;row-&gt;product_weight) &amp;&amp; bccomp($this-&gt;row-&gt;product_weight,0,3)){
$weight_price = $price-&gt;price_value_with_tax / $this-&gt;row-&gt;product_weight;
echo JText::_('PRICE_SEPARATOR').$this-&gt;currencyHelper-&gt;format($weight_price,$price-&gt;price_currency_id).' / '.JText::_($this-&gt;row-&gt;product_weight_unit);
}
}
}
echo JText::_('PRICE_END');
}
?&gt;&lt;/span&gt;

Thanks in advance!

Gert.  [ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/Laquerware.png) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/Laquerware.png "&#91;img")

- [ ![Laquerware.png](/forum/attachment/2173) ](/forum/attachment/2173 "Laquerware.png") [ ](/forum/attachment/2173?download=1 "Laquerware.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMxNjE0LWNoYW5nZS1wcm9tb3Rpb24tZGlzcGxheT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

14 years 11 months ago [\#31641](#31641) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Change promotion display](/forum/4-how-to/31614-change-promotion-display#31641 "I've been struggling to display a promotion the way my customer wants.  It should like the attached picture, with the following changes:  1. Only the old price should be striped out 2. Now B 350 should be in a different color.  Can anyone tell me how to do this. I know I have to change it in the code below, but I have no idea how:    row-&gt;prices)){ echo JText::&#95;('FREE&#95;PRICE'); }else{ $first=true; echo JText::&#95;('PRICE&#95;PRODUCT'); foreach($this-&gt;row-&gt;prices as $price){ if($first)$first=false; else echo JText::&#95;('PRICE&#95;SEPARATOR'); if(!empty($this-&gt;row-&gt;discount)){ if($this-&gt;params-&gt;get('show&#95;discount')==1){ echo ''.JText::&#95;('PRICE&#95;DISCOUNT&#95;START'); if(bccomp($this-&gt;row-&gt;discount-&gt;discount&#95;flat&#95;amount,0,5)!==0){ echo $this-&gt;currencyHelper-&gt;format(-1&#42;$this-&gt;row-&gt;discount-&gt;discount&#95;flat&#95;amount,$price-&gt;price&#95;currency&#95;id); }else{ echo -1&#42;$this-&gt;row-&gt;discount-&gt;discount&#95;percent&#95;amount.'%'; } echo JText::&#95;('PRICE&#95;DISCOUNT&#95;END').''; }elseif($this-&gt;params-&gt;get('show&#95;discount')==2){ echo ''.JText::&#95;('PRICE&#95;DISCOUNT&#95;START'); echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;value&#95;without&#95;discount&#95;with&#95;tax,$price-&gt;price&#95;currency&#95;id); if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;BEFORE&#95;TAX'); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2||!$this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;value&#95;without&#95;discount,$price-&gt;price&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;AFTER&#95;TAX'); } if($this-&gt;params-&gt;get('show&#95;original&#95;price') &amp;&amp; !empty($price-&gt;price&#95;orig&#95;value&#95;without&#95;discount&#95;with&#95;tax)){ echo JText::&#95;('PRICE&#95;BEFORE&#95;ORIG'); if($this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;orig&#95;value&#95;without&#95;discount&#95;with&#95;tax,$price-&gt;price&#95;orig&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;BEFORE&#95;TAX'); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2||!$this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;orig&#95;value&#95;without&#95;discount,$price-&gt;price&#95;orig&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;AFTER&#95;TAX'); } echo JText::&#95;('PRICE&#95;AFTER&#95;ORIG'); } echo JText::&#95;('PRICE&#95;DISCOUNT&#95;END').''; } } echo ''; if($this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;value&#95;with&#95;tax,$price-&gt;price&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;BEFORE&#95;TAX'); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2||!$this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;value,$price-&gt;price&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;AFTER&#95;TAX'); } if($this-&gt;params-&gt;get('show&#95;original&#95;price') &amp;&amp; !empty($price-&gt;price&#95;orig&#95;value)){ echo JText::&#95;('PRICE&#95;BEFORE&#95;ORIG'); if($this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;orig&#95;value&#95;with&#95;tax,$price-&gt;price&#95;orig&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;BEFORE&#95;TAX'); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2||!$this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;orig&#95;value,$price-&gt;price&#95;orig&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;AFTER&#95;TAX'); } echo JText::&#95;('PRICE&#95;AFTER&#95;ORIG'); } echo ' '; if($this-&gt;params-&gt;get('show&#95;price&#95;weight')){ if(!empty($this-&gt;element-&gt;product&#95;id) &amp;&amp; isset($this-&gt;row-&gt;product&#95;weight) &amp;&amp; bccomp($this-&gt;row-&gt;product&#95;weight,0,3)){ $weight&#95;price = $price-&gt;price&#95;value&#95;with&#95;tax / $this-&gt;row-&gt;product&#95;weight; echo JText::&#95;('PRICE&#95;SEPARATOR').$this-&gt;currencyHelper-&gt;format($weight&#95;price,$price-&gt;price&#95;currency&#95;id).' / '.JText::&#95;($this-&gt;row-&gt;product&#95;weight&#95;unit); } } } echo JText::&#95;('PRICE&#95;END'); } ?&gt;  Thanks in advance!  Gert.")*

Hi,

You should not have to edit any PHP code to do that.
The old price is already stripped by default by HikaShop, so there is nothing to do.
For the color of the new price, you should be able to change it by adding some CSS like that:

.hikashop_product_price{ color: red !important; }

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMxNjE0LWNoYW5nZS1wcm9tb3Rpb24tZGlzcGxheT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[YakNarak](/forum/user/476-yaknarak "View YakNarak's Profile")**
- [![YakNarak's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/476-yaknarak "View YakNarak's Profile") Topic Author
- [ Offline](/forum/user/476-yaknarak)

Less More

- Posts: 86
- Thank you received: 0
-
-

14 years 11 months ago [\#31870](#31870) by [YakNarak](/forum/user/476-yaknarak "View YakNarak's Profile")  Replied by *[YakNarak](/forum/user/476-yaknarak "View YakNarak's Profile")* on topic *[Re: Change promotion display](/forum/4-how-to/31614-change-promotion-display#31870 "I've been struggling to display a promotion the way my customer wants.  It should like the attached picture, with the following changes:  1. Only the old price should be striped out 2. Now B 350 should be in a different color.  Can anyone tell me how to do this. I know I have to change it in the code below, but I have no idea how:    row-&gt;prices)){ echo JText::&#95;('FREE&#95;PRICE'); }else{ $first=true; echo JText::&#95;('PRICE&#95;PRODUCT'); foreach($this-&gt;row-&gt;prices as $price){ if($first)$first=false; else echo JText::&#95;('PRICE&#95;SEPARATOR'); if(!empty($this-&gt;row-&gt;discount)){ if($this-&gt;params-&gt;get('show&#95;discount')==1){ echo ''.JText::&#95;('PRICE&#95;DISCOUNT&#95;START'); if(bccomp($this-&gt;row-&gt;discount-&gt;discount&#95;flat&#95;amount,0,5)!==0){ echo $this-&gt;currencyHelper-&gt;format(-1&#42;$this-&gt;row-&gt;discount-&gt;discount&#95;flat&#95;amount,$price-&gt;price&#95;currency&#95;id); }else{ echo -1&#42;$this-&gt;row-&gt;discount-&gt;discount&#95;percent&#95;amount.'%'; } echo JText::&#95;('PRICE&#95;DISCOUNT&#95;END').''; }elseif($this-&gt;params-&gt;get('show&#95;discount')==2){ echo ''.JText::&#95;('PRICE&#95;DISCOUNT&#95;START'); echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;value&#95;without&#95;discount&#95;with&#95;tax,$price-&gt;price&#95;currency&#95;id); if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;BEFORE&#95;TAX'); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2||!$this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;value&#95;without&#95;discount,$price-&gt;price&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;AFTER&#95;TAX'); } if($this-&gt;params-&gt;get('show&#95;original&#95;price') &amp;&amp; !empty($price-&gt;price&#95;orig&#95;value&#95;without&#95;discount&#95;with&#95;tax)){ echo JText::&#95;('PRICE&#95;BEFORE&#95;ORIG'); if($this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;orig&#95;value&#95;without&#95;discount&#95;with&#95;tax,$price-&gt;price&#95;orig&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;BEFORE&#95;TAX'); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2||!$this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;orig&#95;value&#95;without&#95;discount,$price-&gt;price&#95;orig&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;AFTER&#95;TAX'); } echo JText::&#95;('PRICE&#95;AFTER&#95;ORIG'); } echo JText::&#95;('PRICE&#95;DISCOUNT&#95;END').''; } } echo ''; if($this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;value&#95;with&#95;tax,$price-&gt;price&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;BEFORE&#95;TAX'); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2||!$this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;value,$price-&gt;price&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;AFTER&#95;TAX'); } if($this-&gt;params-&gt;get('show&#95;original&#95;price') &amp;&amp; !empty($price-&gt;price&#95;orig&#95;value)){ echo JText::&#95;('PRICE&#95;BEFORE&#95;ORIG'); if($this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;orig&#95;value&#95;with&#95;tax,$price-&gt;price&#95;orig&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;BEFORE&#95;TAX'); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2||!$this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;orig&#95;value,$price-&gt;price&#95;orig&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;AFTER&#95;TAX'); } echo JText::&#95;('PRICE&#95;AFTER&#95;ORIG'); } echo ' '; if($this-&gt;params-&gt;get('show&#95;price&#95;weight')){ if(!empty($this-&gt;element-&gt;product&#95;id) &amp;&amp; isset($this-&gt;row-&gt;product&#95;weight) &amp;&amp; bccomp($this-&gt;row-&gt;product&#95;weight,0,3)){ $weight&#95;price = $price-&gt;price&#95;value&#95;with&#95;tax / $this-&gt;row-&gt;product&#95;weight; echo JText::&#95;('PRICE&#95;SEPARATOR').$this-&gt;currencyHelper-&gt;format($weight&#95;price,$price-&gt;price&#95;currency&#95;id).' / '.JText::&#95;($this-&gt;row-&gt;product&#95;weight&#95;unit); } } } echo JText::&#95;('PRICE&#95;END'); } ?&gt;  Thanks in advance!  Gert.")*

Hi Nicholas,

I got a bit further with this, but still not as I want it.

If you look at the image you see that the line-through also strikes out the new price.

I have set the css for span.hikashop_product_price_before_discount to text-decoration=line-through
The css for span.hikashop_product_price is set to text-decoration=none

Still the new price shows a line-through.

I also added a new css class span.hikashop_product_price_after_discount

I need this because i want to show the new price in red, but if I do that in span.hikashop_product_price it changes the price for all products to red.

As you see in the picture I have managed to get this to work for the text before the new price, but I cannot get it to work for the new price. I think this requires changes in the code, but I cannot figure out how.

Could you please help me with this?  [ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/Laquerware-20111205.png) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/Laquerware-20111205.png "&#91;img")

- [ ![Laquerware-20111205.png](/forum/attachment/2188) ](/forum/attachment/2188 "...e-20111205.png") [ ](/forum/attachment/2188?download=1 "...e-20111205.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMxNjE0LWNoYW5nZS1wcm9tb3Rpb24tZGlzcGxheT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

14 years 11 months ago [\#31899](#31899) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Change promotion display](/forum/4-how-to/31614-change-promotion-display#31899 "I've been struggling to display a promotion the way my customer wants.  It should like the attached picture, with the following changes:  1. Only the old price should be striped out 2. Now B 350 should be in a different color.  Can anyone tell me how to do this. I know I have to change it in the code below, but I have no idea how:    row-&gt;prices)){ echo JText::&#95;('FREE&#95;PRICE'); }else{ $first=true; echo JText::&#95;('PRICE&#95;PRODUCT'); foreach($this-&gt;row-&gt;prices as $price){ if($first)$first=false; else echo JText::&#95;('PRICE&#95;SEPARATOR'); if(!empty($this-&gt;row-&gt;discount)){ if($this-&gt;params-&gt;get('show&#95;discount')==1){ echo ''.JText::&#95;('PRICE&#95;DISCOUNT&#95;START'); if(bccomp($this-&gt;row-&gt;discount-&gt;discount&#95;flat&#95;amount,0,5)!==0){ echo $this-&gt;currencyHelper-&gt;format(-1&#42;$this-&gt;row-&gt;discount-&gt;discount&#95;flat&#95;amount,$price-&gt;price&#95;currency&#95;id); }else{ echo -1&#42;$this-&gt;row-&gt;discount-&gt;discount&#95;percent&#95;amount.'%'; } echo JText::&#95;('PRICE&#95;DISCOUNT&#95;END').''; }elseif($this-&gt;params-&gt;get('show&#95;discount')==2){ echo ''.JText::&#95;('PRICE&#95;DISCOUNT&#95;START'); echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;value&#95;without&#95;discount&#95;with&#95;tax,$price-&gt;price&#95;currency&#95;id); if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;BEFORE&#95;TAX'); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2||!$this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;value&#95;without&#95;discount,$price-&gt;price&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;AFTER&#95;TAX'); } if($this-&gt;params-&gt;get('show&#95;original&#95;price') &amp;&amp; !empty($price-&gt;price&#95;orig&#95;value&#95;without&#95;discount&#95;with&#95;tax)){ echo JText::&#95;('PRICE&#95;BEFORE&#95;ORIG'); if($this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;orig&#95;value&#95;without&#95;discount&#95;with&#95;tax,$price-&gt;price&#95;orig&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;BEFORE&#95;TAX'); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2||!$this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;orig&#95;value&#95;without&#95;discount,$price-&gt;price&#95;orig&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;AFTER&#95;TAX'); } echo JText::&#95;('PRICE&#95;AFTER&#95;ORIG'); } echo JText::&#95;('PRICE&#95;DISCOUNT&#95;END').''; } } echo ''; if($this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;value&#95;with&#95;tax,$price-&gt;price&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;BEFORE&#95;TAX'); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2||!$this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;value,$price-&gt;price&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;AFTER&#95;TAX'); } if($this-&gt;params-&gt;get('show&#95;original&#95;price') &amp;&amp; !empty($price-&gt;price&#95;orig&#95;value)){ echo JText::&#95;('PRICE&#95;BEFORE&#95;ORIG'); if($this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;orig&#95;value&#95;with&#95;tax,$price-&gt;price&#95;orig&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;BEFORE&#95;TAX'); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2||!$this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;orig&#95;value,$price-&gt;price&#95;orig&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;AFTER&#95;TAX'); } echo JText::&#95;('PRICE&#95;AFTER&#95;ORIG'); } echo ' '; if($this-&gt;params-&gt;get('show&#95;price&#95;weight')){ if(!empty($this-&gt;element-&gt;product&#95;id) &amp;&amp; isset($this-&gt;row-&gt;product&#95;weight) &amp;&amp; bccomp($this-&gt;row-&gt;product&#95;weight,0,3)){ $weight&#95;price = $price-&gt;price&#95;value&#95;with&#95;tax / $this-&gt;row-&gt;product&#95;weight; echo JText::&#95;('PRICE&#95;SEPARATOR').$this-&gt;currencyHelper-&gt;format($weight&#95;price,$price-&gt;price&#95;currency&#95;id).' / '.JText::&#95;($this-&gt;row-&gt;product&#95;weight&#95;unit); } } } echo JText::&#95;('PRICE&#95;END'); } ?&gt;  Thanks in advance!  Gert.")*

The default system correctly strikes the discounted price. You can see that here:
[ www.demo.hikashop.com/index.php?option=c...e=&amp;Itemid=78&amp;lang=en](http://www.demo.hikashop.com/index.php?option=com_hikashop&ctrl=product&task=show&cid=192&name=&Itemid=78&lang=en)
If it doesn't work properly for you, it means that you modified the code of the listing_price view file (which you apparently did to swap the discounted price and the normal price) but that you didn't do it correctly. Apparently there is a problem with the spans but hard to say without knowing what you modified and the resulting HTML code...

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMxNjE0LWNoYW5nZS1wcm9tb3Rpb24tZGlzcGxheT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[YakNarak](/forum/user/476-yaknarak "View YakNarak's Profile")**
- [![YakNarak's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/476-yaknarak "View YakNarak's Profile") Topic Author
- [ Offline](/forum/user/476-yaknarak)

Less More

- Posts: 86
- Thank you received: 0
-
-

14 years 11 months ago [\#32018](#32018) by [YakNarak](/forum/user/476-yaknarak "View YakNarak's Profile")  Replied by *[YakNarak](/forum/user/476-yaknarak "View YakNarak's Profile")* on topic *[Re: Change promotion display](/forum/4-how-to/31614-change-promotion-display#32018 "I've been struggling to display a promotion the way my customer wants.  It should like the attached picture, with the following changes:  1. Only the old price should be striped out 2. Now B 350 should be in a different color.  Can anyone tell me how to do this. I know I have to change it in the code below, but I have no idea how:    row-&gt;prices)){ echo JText::&#95;('FREE&#95;PRICE'); }else{ $first=true; echo JText::&#95;('PRICE&#95;PRODUCT'); foreach($this-&gt;row-&gt;prices as $price){ if($first)$first=false; else echo JText::&#95;('PRICE&#95;SEPARATOR'); if(!empty($this-&gt;row-&gt;discount)){ if($this-&gt;params-&gt;get('show&#95;discount')==1){ echo ''.JText::&#95;('PRICE&#95;DISCOUNT&#95;START'); if(bccomp($this-&gt;row-&gt;discount-&gt;discount&#95;flat&#95;amount,0,5)!==0){ echo $this-&gt;currencyHelper-&gt;format(-1&#42;$this-&gt;row-&gt;discount-&gt;discount&#95;flat&#95;amount,$price-&gt;price&#95;currency&#95;id); }else{ echo -1&#42;$this-&gt;row-&gt;discount-&gt;discount&#95;percent&#95;amount.'%'; } echo JText::&#95;('PRICE&#95;DISCOUNT&#95;END').''; }elseif($this-&gt;params-&gt;get('show&#95;discount')==2){ echo ''.JText::&#95;('PRICE&#95;DISCOUNT&#95;START'); echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;value&#95;without&#95;discount&#95;with&#95;tax,$price-&gt;price&#95;currency&#95;id); if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;BEFORE&#95;TAX'); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2||!$this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;value&#95;without&#95;discount,$price-&gt;price&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;AFTER&#95;TAX'); } if($this-&gt;params-&gt;get('show&#95;original&#95;price') &amp;&amp; !empty($price-&gt;price&#95;orig&#95;value&#95;without&#95;discount&#95;with&#95;tax)){ echo JText::&#95;('PRICE&#95;BEFORE&#95;ORIG'); if($this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;orig&#95;value&#95;without&#95;discount&#95;with&#95;tax,$price-&gt;price&#95;orig&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;BEFORE&#95;TAX'); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2||!$this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;orig&#95;value&#95;without&#95;discount,$price-&gt;price&#95;orig&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;AFTER&#95;TAX'); } echo JText::&#95;('PRICE&#95;AFTER&#95;ORIG'); } echo JText::&#95;('PRICE&#95;DISCOUNT&#95;END').''; } } echo ''; if($this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;value&#95;with&#95;tax,$price-&gt;price&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;BEFORE&#95;TAX'); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2||!$this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;value,$price-&gt;price&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;AFTER&#95;TAX'); } if($this-&gt;params-&gt;get('show&#95;original&#95;price') &amp;&amp; !empty($price-&gt;price&#95;orig&#95;value)){ echo JText::&#95;('PRICE&#95;BEFORE&#95;ORIG'); if($this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;orig&#95;value&#95;with&#95;tax,$price-&gt;price&#95;orig&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;BEFORE&#95;TAX'); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2||!$this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;orig&#95;value,$price-&gt;price&#95;orig&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;AFTER&#95;TAX'); } echo JText::&#95;('PRICE&#95;AFTER&#95;ORIG'); } echo ' '; if($this-&gt;params-&gt;get('show&#95;price&#95;weight')){ if(!empty($this-&gt;element-&gt;product&#95;id) &amp;&amp; isset($this-&gt;row-&gt;product&#95;weight) &amp;&amp; bccomp($this-&gt;row-&gt;product&#95;weight,0,3)){ $weight&#95;price = $price-&gt;price&#95;value&#95;with&#95;tax / $this-&gt;row-&gt;product&#95;weight; echo JText::&#95;('PRICE&#95;SEPARATOR').$this-&gt;currencyHelper-&gt;format($weight&#95;price,$price-&gt;price&#95;currency&#95;id).' / '.JText::&#95;($this-&gt;row-&gt;product&#95;weight&#95;unit); } } } echo JText::&#95;('PRICE&#95;END'); } ?&gt;  Thanks in advance!  Gert.")*

Hi Nicholas,

I've tried to do this with the default system. It has the same problem on my site:

Gert.  [ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/Laquerware1.png) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/Laquerware1.png "&#91;img")

- [ ![Laquerware1.png](/forum/attachment/2200) ](/forum/attachment/2200 "Laquerware1.png") [ ](/forum/attachment/2200?download=1 "Laquerware1.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMxNjE0LWNoYW5nZS1wcm9tb3Rpb24tZGlzcGxheT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

14 years 11 months ago [\#32045](#32045) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Change promotion display](/forum/4-how-to/31614-change-promotion-display#32045 "I've been struggling to display a promotion the way my customer wants.  It should like the attached picture, with the following changes:  1. Only the old price should be striped out 2. Now B 350 should be in a different color.  Can anyone tell me how to do this. I know I have to change it in the code below, but I have no idea how:    row-&gt;prices)){ echo JText::&#95;('FREE&#95;PRICE'); }else{ $first=true; echo JText::&#95;('PRICE&#95;PRODUCT'); foreach($this-&gt;row-&gt;prices as $price){ if($first)$first=false; else echo JText::&#95;('PRICE&#95;SEPARATOR'); if(!empty($this-&gt;row-&gt;discount)){ if($this-&gt;params-&gt;get('show&#95;discount')==1){ echo ''.JText::&#95;('PRICE&#95;DISCOUNT&#95;START'); if(bccomp($this-&gt;row-&gt;discount-&gt;discount&#95;flat&#95;amount,0,5)!==0){ echo $this-&gt;currencyHelper-&gt;format(-1&#42;$this-&gt;row-&gt;discount-&gt;discount&#95;flat&#95;amount,$price-&gt;price&#95;currency&#95;id); }else{ echo -1&#42;$this-&gt;row-&gt;discount-&gt;discount&#95;percent&#95;amount.'%'; } echo JText::&#95;('PRICE&#95;DISCOUNT&#95;END').''; }elseif($this-&gt;params-&gt;get('show&#95;discount')==2){ echo ''.JText::&#95;('PRICE&#95;DISCOUNT&#95;START'); echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;value&#95;without&#95;discount&#95;with&#95;tax,$price-&gt;price&#95;currency&#95;id); if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;BEFORE&#95;TAX'); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2||!$this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;value&#95;without&#95;discount,$price-&gt;price&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;AFTER&#95;TAX'); } if($this-&gt;params-&gt;get('show&#95;original&#95;price') &amp;&amp; !empty($price-&gt;price&#95;orig&#95;value&#95;without&#95;discount&#95;with&#95;tax)){ echo JText::&#95;('PRICE&#95;BEFORE&#95;ORIG'); if($this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;orig&#95;value&#95;without&#95;discount&#95;with&#95;tax,$price-&gt;price&#95;orig&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;BEFORE&#95;TAX'); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2||!$this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;orig&#95;value&#95;without&#95;discount,$price-&gt;price&#95;orig&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;AFTER&#95;TAX'); } echo JText::&#95;('PRICE&#95;AFTER&#95;ORIG'); } echo JText::&#95;('PRICE&#95;DISCOUNT&#95;END').''; } } echo ''; if($this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;value&#95;with&#95;tax,$price-&gt;price&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;BEFORE&#95;TAX'); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2||!$this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;value,$price-&gt;price&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;AFTER&#95;TAX'); } if($this-&gt;params-&gt;get('show&#95;original&#95;price') &amp;&amp; !empty($price-&gt;price&#95;orig&#95;value)){ echo JText::&#95;('PRICE&#95;BEFORE&#95;ORIG'); if($this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;orig&#95;value&#95;with&#95;tax,$price-&gt;price&#95;orig&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;BEFORE&#95;TAX'); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2||!$this-&gt;params-&gt;get('price&#95;with&#95;tax')){ echo $this-&gt;currencyHelper-&gt;format($price-&gt;price&#95;orig&#95;value,$price-&gt;price&#95;orig&#95;currency&#95;id); } if($this-&gt;params-&gt;get('price&#95;with&#95;tax')==2){ echo JText::&#95;('PRICE&#95;AFTER&#95;TAX'); } echo JText::&#95;('PRICE&#95;AFTER&#95;ORIG'); } echo ' '; if($this-&gt;params-&gt;get('show&#95;price&#95;weight')){ if(!empty($this-&gt;element-&gt;product&#95;id) &amp;&amp; isset($this-&gt;row-&gt;product&#95;weight) &amp;&amp; bccomp($this-&gt;row-&gt;product&#95;weight,0,3)){ $weight&#95;price = $price-&gt;price&#95;value&#95;with&#95;tax / $this-&gt;row-&gt;product&#95;weight; echo JText::&#95;('PRICE&#95;SEPARATOR').$this-&gt;currencyHelper-&gt;format($weight&#95;price,$price-&gt;price&#95;currency&#95;id).' / '.JText::&#95;($this-&gt;row-&gt;product&#95;weight&#95;unit); } } } echo JText::&#95;('PRICE&#95;END'); } ?&gt;  Thanks in advance!  Gert.")*

Only one price is stroke now where you had the two prices stroke before. So it's working properly. It's just a matter of adapting the text strings that you overrode.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzMxNjE0LWNoYW5nZS1wcm9tb3Rpb24tZGlzcGxheT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.085 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
