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

#   price display

##

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

Less More

- Posts: 20
- Thank you received: 0
-
-

13 years 11 months ago [\#78512](#78512) by [yjiang92131](/forum/user/4767-yjiang92131 "View yjiang92131's Profile")  *[price display](/forum/2-general-talk-about-hikashop/76106-price-display#78512 "Hi,  I am using business version of hikashop. login customers have their own price (group price), which are usually lower than the general price. how can I display both the prices after the customer logs in with a red slash on the genearal price ? Thanks.  Yong")* was created by *[yjiang92131](/forum/user/4767-yjiang92131 "View yjiang92131's Profile")*

Hi,

I am using business version of hikashop. login customers have their own price (group price), which are usually lower than the general price. how can I display both the prices after the customer logs in with a red slash on the genearal price ? Thanks.

Yong

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTA2LXByaWNlLWRpc3BsYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 11 months ago -  13 years 11 months ago [\#78541](#78541) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[price display](/forum/2-general-talk-about-hikashop/76106-price-display#78541 "Hi,  I am using business version of hikashop. login customers have their own price (group price), which are usually lower than the general price. how can I display both the prices after the customer logs in with a red slash on the genearal price ? Thanks.  Yong")*

Hi,

When HikaShop loads prices for a product, it would just load prices which are compatible with the current user.
The price with access "all" would be always load so, if the customer have an access to a specific price, the product page would display 2 prices (his special price and the price for "all").

You can edit the view "product &#124; listing_prices" in order to change some design.
You can replace Code:

foreach($this-&gt;row-&gt;prices as $price) { if($first)$first=false;

By Code:

$specialPrice = false; foreach($this-&gt;row-&gt;prices as $price) { if($price-&gt;price_access != 'all') { $specialPrice = true; break; } } foreach($this-&gt;row-&gt;prices as $price) { if($first)$first=false; if($specialPrice &amp;&amp; $price-&gt;price_access == 'all') { echo '&lt;span class="hikashop_strike_price"&gt;'; }

With same kind of code near the end of the view: Code:

if($specialPrice &amp;&amp; $price-&gt;price_access == 'all') { echo '&lt;/span&gt;'; } $i++; } echo JText::_('PRICE_END');

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Last edit: 13 years 11 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTA2LXByaWNlLWRpc3BsYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 20
- Thank you received: 0
-
-

13 years 11 months ago [\#78599](#78599) by [yjiang92131](/forum/user/4767-yjiang92131 "View yjiang92131's Profile")  Replied by *[yjiang92131](/forum/user/4767-yjiang92131 "View yjiang92131's Profile")* on topic *[price display](/forum/2-general-talk-about-hikashop/76106-price-display#78599 "Hi,  I am using business version of hikashop. login customers have their own price (group price), which are usually lower than the general price. how can I display both the prices after the customer logs in with a red slash on the genearal price ? Thanks.  Yong")*

Thank you, I did change the code at list_price.php as you showed, it didn't work. Maybe I messed up with the end of the code, my site won't show anything, there must be a code error. can you give me more details ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTA2LXByaWNlLWRpc3BsYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 11 months ago [\#78604](#78604) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[price display](/forum/2-general-talk-about-hikashop/76106-price-display#78604 "Hi,  I am using business version of hikashop. login customers have their own price (group price), which are usually lower than the general price. how can I display both the prices after the customer logs in with a red slash on the genearal price ? Thanks.  Yong")*

Hi,

You are sure it didn't work ?
The code just add a span, after that you have to add a CSS rule in order to "strike" the text for " span.hikashop_strike_price ".

If there is no span "hikashop_strike_price" in your page, you have to check if you're editing the right view, for the right template (In HikaShop you can edit views per template).

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTA2LXByaWNlLWRpc3BsYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 20
- Thank you received: 0
-
-

13 years 11 months ago [\#78609](#78609) by [yjiang92131](/forum/user/4767-yjiang92131 "View yjiang92131's Profile")  Replied by *[yjiang92131](/forum/user/4767-yjiang92131 "View yjiang92131's Profile")* on topic *[price display](/forum/2-general-talk-about-hikashop/76106-price-display#78609 "Hi,  I am using business version of hikashop. login customers have their own price (group price), which are usually lower than the general price. how can I display both the prices after the customer logs in with a red slash on the genearal price ? Thanks.  Yong")*

I am confused, i did edit listing_price.php, is that the right file to edit ? Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTA2LXByaWNlLWRpc3BsYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 11 months ago [\#78623](#78623) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[price display](/forum/2-general-talk-about-hikashop/76106-price-display#78623 "Hi,  I am using business version of hikashop. login customers have their own price (group price), which are usually lower than the general price. how can I display both the prices after the customer logs in with a red slash on the genearal price ? Thanks.  Yong")*

Hi,

Can you give us a link to your store ?

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTA2LXByaWNlLWRpc3BsYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 20
- Thank you received: 0
-
-

13 years 11 months ago [\#78625](#78625) by [yjiang92131](/forum/user/4767-yjiang92131 "View yjiang92131's Profile")  Replied by *[yjiang92131](/forum/user/4767-yjiang92131 "View yjiang92131's Profile")* on topic *[price display](/forum/2-general-talk-about-hikashop/76106-price-display#78625 "Hi,  I am using business version of hikashop. login customers have their own price (group price), which are usually lower than the general price. how can I display both the prices after the customer logs in with a red slash on the genearal price ? Thanks.  Yong")*

[ www.aprexbio.com](http://www.aprexbio.com)

thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTA2LXByaWNlLWRpc3BsYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 11 months ago -  13 years 11 months ago [\#78635](#78635) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[price display](/forum/2-general-talk-about-hikashop/76106-price-display#78635 "Hi,  I am using business version of hikashop. login customers have their own price (group price), which are usually lower than the general price. how can I display both the prices after the customer logs in with a red slash on the genearal price ? Thanks.  Yong")*

Hi,

In the backend, on "Display &gt; View", there are several drop down list at right.
One is for the template filtering. You have to select your current front-end template "mystique-fjt" in this list.
After that, you can select just "front end" views and make a search on "listing_price" using the textbox at the left.

After that, you should see just one "listing_price" view and this is the view you have to edit.

The modification are displayed only if you are logged with a special account.
With a guest user or with a user who is not in your special group, just one price would be proposed.

And in your CSS file add the rule: Code:

span.hikashop_strike_price { text-decoration: line-through; }

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Last edit: 13 years 11 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTA2LXByaWNlLWRpc3BsYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 20
- Thank you received: 0
-
-

13 years 11 months ago -  13 years 11 months ago [\#78640](#78640) by [yjiang92131](/forum/user/4767-yjiang92131 "View yjiang92131's Profile")  Replied by *[yjiang92131](/forum/user/4767-yjiang92131 "View yjiang92131's Profile")* on topic *[price display](/forum/2-general-talk-about-hikashop/76106-price-display#78640 "Hi,  I am using business version of hikashop. login customers have their own price (group price), which are usually lower than the general price. how can I display both the prices after the customer logs in with a red slash on the genearal price ? Thanks.  Yong")*

Thank you. I did edit the right file. after I changed as you indicated before, and the site won't show anything, I assume that there is something wrong with the code. I have no clue what I did wrong. I paste all the code after modification here. Please take a look and give me some hints. Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 2.0.0 * @author hikashop.com * @copyright (C) 2010-2012 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?&gt;&lt;?php $class =''; if(!empty($this-&gt;row-&gt;prices)&amp;&amp; count($this-&gt;row-&gt;prices)&gt;1){ $class = ' hikashop_product_several_prices'; } ?&gt; &lt;span class="hikashop_product_price_full&lt;?php echo $class; ?&gt;"&gt; &lt;?php if(empty($this-&gt;row-&gt;prices)){ echo JText::_('FREE_PRICE'); }else{ $first=true; echo JText::_('PRICE_BEGINNING'); $i=0; if($this-&gt;params-&gt;get('price_with_tax',3)==3){ $config =&amp; hikashop_config(); $this-&gt;params-&gt;set('price_with_tax',$config-&gt;get('price_with_tax')); } $specialPrice = false; foreach($this-&gt;row-&gt;prices as $price) { if($price-&gt;price_access != 'all') { $specialPrice = true; break; } } foreach($this-&gt;row-&gt;prices as $price) { if($first)$first=false; if($specialPrice &amp;&amp; $price-&gt;price_access == 'all') { echo '&lt;span class="hikashop_strike_price"&gt;; } else echo JText::_('PRICE_SEPARATOR'); $start = JText::_('PRICE_BEGINNING_'.$i); if($start!='PRICE_BEGINNING_'.$i){ echo $start; } if(isset($price-&gt;price_min_quantity) &amp;&amp; empty($this-&gt;cart_product_price) &amp;&amp; $price-&gt;price_min_quantity&gt;1){ echo '&lt;span class="hikashop_product_price_with_min_qty hikashop_product_price_for_at_least_'.$price-&gt;price_min_quantity.'"&gt;'; } $classes = array('hikashop_product_price hikashop_product_price_'.$i); if(!empty($this-&gt;row-&gt;discount)){ $classes[]='hikashop_product_price_with_discount'; } if(!empty($this-&gt;row-&gt;discount)){ if($this-&gt;params-&gt;get('show_discount',3)==3){ $config =&amp; hikashop_config(); $this-&gt;params-&gt;set('show_discount',$config-&gt;get('show_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); }elseif(bccomp($this-&gt;row-&gt;discount-&gt;discount_percent_amount,0,5)!==0){ 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'); if($this-&gt;params-&gt;get('price_with_tax')){ 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','-1')=='-1'){ $config =&amp; hikashop_config(); $this-&gt;params-&gt;set('show_original_price',$config-&gt;get('show_original_price')); } 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') &amp;&amp; !empty($price-&gt;price_orig_value_without_discount)){ 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;'; }elseif($this-&gt;params-&gt;get('show_discount')==3){ } } echo '&lt;span class="'.implode(' ',$classes).'"&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','-1')=='-1'){ $config =&amp; hikashop_config(); $this-&gt;params-&gt;set('show_original_price',$config-&gt;get('show_original_price')); } 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(isset($price-&gt;price_min_quantity) &amp;&amp; empty($this-&gt;cart_product_price) &amp;&amp; $this-&gt;params-&gt;get('per_unit',1)){ if($price-&gt;price_min_quantity&gt;1){ echo JText::sprintf('PER_UNIT_AT_LEAST_X_BOUGHT',$price-&gt;price_min_quantity); }else{ echo JText::_('PER_UNIT'); } } 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)){ echo JText::_('PRICE_SEPARATOR').'&lt;span class="hikashop_product_price_per_weight_unit"&gt;'; if($this-&gt;params-&gt;get('price_with_tax')){ $weight_price = $price-&gt;price_value_with_tax / $this-&gt;row-&gt;product_weight; echo $this-&gt;currencyHelper-&gt;format($weight_price,$price-&gt;price_currency_id).' / '.JText::_($this-&gt;row-&gt;product_weight_unit); } 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')){ $weight_price = $price-&gt;price_value / $this-&gt;row-&gt;product_weight; echo $this-&gt;currencyHelper-&gt;format($weight_price,$price-&gt;price_currency_id).' / '.JText::_($this-&gt;row-&gt;product_weight_unit); } if($this-&gt;params-&gt;get('price_with_tax')==2){ echo JText::_('PRICE_AFTER_TAX'); } echo '&lt;/span&gt;'; } } if(isset($price-&gt;price_min_quantity) &amp;&amp; empty($this-&gt;cart_product_price) &amp;&amp; $price-&gt;price_min_quantity&gt;1){ echo '&lt;/span&gt;'; } $end = JText::_('PRICE_ENDING_'.$i); if($end!='PRICE_ENDING_'.$i){ echo $end; } if($specialPrice &amp;&amp; $price-&gt;price_access == 'all') { echo '&lt;/span&gt;'; } $i++; } echo JText::_('PRICE_END'); } ?&gt;&lt;/span&gt;

Last edit: 13 years 11 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTA2LXByaWNlLWRpc3BsYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 11 months ago [\#78657](#78657) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[price display](/forum/2-general-talk-about-hikashop/76106-price-display#78657 "Hi,  I am using business version of hikashop. login customers have their own price (group price), which are usually lower than the general price. how can I display both the prices after the customer logs in with a red slash on the genearal price ? Thanks.  Yong")*

Hi,

Did you test with a special account like I said in my previous post ?
Can you provide a screenshot while you are logged with an account which have access to several prices ?

I can't test anything in your website because I don't have any useful access but I don't see any problem for guest users.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTA2LXByaWNlLWRpc3BsYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 20
- Thank you received: 0
-
-

13 years 11 months ago [\#78668](#78668) by [yjiang92131](/forum/user/4767-yjiang92131 "View yjiang92131's Profile")  Replied by *[yjiang92131](/forum/user/4767-yjiang92131 "View yjiang92131's Profile")* on topic *[price display](/forum/2-general-talk-about-hikashop/76106-price-display#78668 "Hi,  I am using business version of hikashop. login customers have their own price (group price), which are usually lower than the general price. how can I display both the prices after the customer logs in with a red slash on the genearal price ? Thanks.  Yong")*

I can not test anything, because if I changed the code as shown above. the website stopped working due to internal error. so I changed back to the original state. if you can check the code i posted, and give me some suggestions, it would be very grateful. Thanks.

Yong

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTA2LXByaWNlLWRpc3BsYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 11 months ago [\#78670](#78670) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[price display](/forum/2-general-talk-about-hikashop/76106-price-display#78670 "Hi,  I am using business version of hikashop. login customers have their own price (group price), which are usually lower than the general price. how can I display both the prices after the customer logs in with a red slash on the genearal price ? Thanks.  Yong")*

Hi,

There was a missing colon in the code.
So please fix it by replacing: Code:

echo '&lt;span class="hikashop_strike_price"&gt;;

By Code:

echo '&lt;span class="hikashop_strike_price"&gt;';

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTA2LXByaWNlLWRpc3BsYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 20
- Thank you received: 0
-
-

13 years 11 months ago [\#78676](#78676) by [yjiang92131](/forum/user/4767-yjiang92131 "View yjiang92131's Profile")  Replied by *[yjiang92131](/forum/user/4767-yjiang92131 "View yjiang92131's Profile")* on topic *[price display](/forum/2-general-talk-about-hikashop/76106-price-display#78676 "Hi,  I am using business version of hikashop. login customers have their own price (group price), which are usually lower than the general price. how can I display both the prices after the customer logs in with a red slash on the genearal price ? Thanks.  Yong")*

This fixes the code, great, now I changed the code in listing_price, also modified the css. however when I logged in, i can see the price update, and only the discount prices are shown, no price for non-login users with a slash. is that right ?
Thank you for your quick reply.

I send you the mail with test account. in case you need it.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTA2LXByaWNlLWRpc3BsYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 11 months ago [\#78703](#78703) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[price display](/forum/2-general-talk-about-hikashop/76106-price-display#78703 "Hi,  I am using business version of hikashop. login customers have their own price (group price), which are usually lower than the general price. how can I display both the prices after the customer logs in with a red slash on the genearal price ? Thanks.  Yong")*

Hi,

Did you set an ACL for the "generic" price ?
You should let "all" access for this price if you want that everybody could see it.

If special users can't have access to the "generic" price, it is not possible for HikaShop to load it so, it is not possible to display it.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTA2LXByaWNlLWRpc3BsYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 20
- Thank you received: 0
-
-

13 years 11 months ago [\#78743](#78743) by [yjiang92131](/forum/user/4767-yjiang92131 "View yjiang92131's Profile")  Replied by *[yjiang92131](/forum/user/4767-yjiang92131 "View yjiang92131's Profile")* on topic *[price display](/forum/2-general-talk-about-hikashop/76106-price-display#78743 "Hi,  I am using business version of hikashop. login customers have their own price (group price), which are usually lower than the general price. how can I display both the prices after the customer logs in with a red slash on the genearal price ? Thanks.  Yong")*

Yes, for each of the product, I set two special prices for two groups of users respectively, and one price for all.

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTA2LXByaWNlLWRpc3BsYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 11 months ago [\#78764](#78764) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[price display](/forum/2-general-talk-about-hikashop/76106-price-display#78764 "Hi,  I am using business version of hikashop. login customers have their own price (group price), which are usually lower than the general price. how can I display both the prices after the customer logs in with a red slash on the genearal price ? Thanks.  Yong")*

Hi,

So, it can't work, as I said in my previous post.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTA2LXByaWNlLWRpc3BsYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 20
- Thank you received: 0
-
-

13 years 11 months ago [\#78792](#78792) by [yjiang92131](/forum/user/4767-yjiang92131 "View yjiang92131's Profile")  Replied by *[yjiang92131](/forum/user/4767-yjiang92131 "View yjiang92131's Profile")* on topic *[price display](/forum/2-general-talk-about-hikashop/76106-price-display#78792 "Hi,  I am using business version of hikashop. login customers have their own price (group price), which are usually lower than the general price. how can I display both the prices after the customer logs in with a red slash on the genearal price ? Thanks.  Yong")*

Sorry, can you explain more about this. I setup three prices, two for special groups of customers, and one for all.(maybe I didn't make it clear in the previous message).

Also I did what you mentioned in your first reply in this thread, is that enough ? Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTA2LXByaWNlLWRpc3BsYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 11 months ago [\#78800](#78800) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[price display](/forum/2-general-talk-about-hikashop/76106-price-display#78800 "Hi,  I am using business version of hikashop. login customers have their own price (group price), which are usually lower than the general price. how can I display both the prices after the customer logs in with a red slash on the genearal price ? Thanks.  Yong")*

Hi,

I don't understand because it works fine in our local websites.
Could you send me a backend access by private message ?

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTA2LXByaWNlLWRpc3BsYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 20
- Thank you received: 0
-
-

13 years 11 months ago [\#78841](#78841) by [yjiang92131](/forum/user/4767-yjiang92131 "View yjiang92131's Profile")  Replied by *[yjiang92131](/forum/user/4767-yjiang92131 "View yjiang92131's Profile")* on topic *[price display](/forum/2-general-talk-about-hikashop/76106-price-display#78841 "Hi,  I am using business version of hikashop. login customers have their own price (group price), which are usually lower than the general price. how can I display both the prices after the customer logs in with a red slash on the genearal price ? Thanks.  Yong")*

I send the info to your email at HikaShop &lt;forum@hikashop.com&gt;.

thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTA2LXByaWNlLWRpc3BsYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 11 months ago [\#78881](#78881) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[price display](/forum/2-general-talk-about-hikashop/76106-price-display#78881 "Hi,  I am using business version of hikashop. login customers have their own price (group price), which are usually lower than the general price. how can I display both the prices after the customer logs in with a red slash on the genearal price ? Thanks.  Yong")*

Hi,

Thanks for the access.
I do not touch anything in your store.
But as you can see :
[ ![product&#95;show.jpg](/forum/attachment/7206) ](/forum/attachment/7206 "product&#95;show.jpg")

The display is correct in the product page.

In the product listing, it requires a patch which as been submit for a new version of HikaShop and which would require some tests and validation before his integration.
We want to be sure that the patch would not create side effects.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

- [ ![product&#95;show.jpg](/forum/attachment/7206) ](/forum/attachment/7206 "product&#95;show.jpg") [ ](/forum/attachment/7206?download=1 "product&#95;show.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc2MTA2LXByaWNlLWRpc3BsYXk/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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.326 seconds

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

[](#top)
