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

#   Edit displayed price in category view

##

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

Less More

- Posts: 22
- Thank you received: 0
-
-

11 years 1 week ago -  11 years 1 week ago [\#220838](#220838) by [Kingwell](/forum/user/38001-kingwell "View Kingwell's Profile")  *[Edit displayed price in category view](/forum/26-product-category-display/880507-edit-displayed-price-in-category-view#220838 "-- HikaShop version -- : 2.6.0  I would like to change the price display of products in the category view, there are 2 things i would like to achieve:  The first thing is to remove the whitespace between the currency symbol and the value, for instance it displays &quot;£ 10.00&quot; where i would like to display &quot;£10.00&quot;.  The second thing, is to add the word &quot;from&quot; in front of the price where there are multiple variants with different prices, my category display shows the lowest available price, currently like &quot;£39.60&quot; with the &quot;choose options&quot; button,i would like it to display &quot;From £39.60&quot; instead, so that customers are not mislead about pricing. Ideally i would only like to show the &quot;From...&quot; where there are multiple variants of the same product. and single variant products just show the price. I think this would be done as an overside IF statement in product / listing&#95;img&#95;title but am unsure of what syntax to use.  Thanks in advance.  Oli")* was created by *[Kingwell](/forum/user/38001-kingwell "View Kingwell's Profile")*

-- HikaShop version -- : 2.6.0

I would like to change the price display of products in the category view, there are 2 things i would like to achieve:

The first thing is to remove the whitespace between the currency symbol and the value, for instance it displays "£ 10.00" where i would like to display "£10.00".

The second thing, is to add the word "from" in front of the price where there are multiple variants with different prices, my category display shows the lowest available price, currently like "£39.60" with the "choose options" button,i would like it to display "From £39.60" instead, so that customers are not mislead about pricing.
Ideally i would only like to show the "From..." where there are multiple variants of the same product. and single variant products just show the price.
I think this would be done as an overside IF statement in product / listing_img_title but am unsure of what syntax to use.

Thanks in advance.

Oli

Last edit: 11 years 1 week ago by [Kingwell](/forum/user/38001-kingwell "View Kingwell's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODA1MDctZWRpdC1kaXNwbGF5ZWQtcHJpY2UtaW4tY2F0ZWdvcnktdmlldz90bXBsPW1hcmtkb3du) 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
-
-

11 years 1 week ago [\#220998](#220998) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Edit displayed price in category view](/forum/26-product-category-display/880507-edit-displayed-price-in-category-view#220998 "-- HikaShop version -- : 2.6.0  I would like to change the price display of products in the category view, there are 2 things i would like to achieve:  The first thing is to remove the whitespace between the currency symbol and the value, for instance it displays &quot;£ 10.00&quot; where i would like to display &quot;£10.00&quot;.  The second thing, is to add the word &quot;from&quot; in front of the price where there are multiple variants with different prices, my category display shows the lowest available price, currently like &quot;£39.60&quot; with the &quot;choose options&quot; button,i would like it to display &quot;From £39.60&quot; instead, so that customers are not mislead about pricing. Ideally i would only like to show the &quot;From...&quot; where there are multiple variants of the same product. and single variant products just show the price. I think this would be done as an overside IF statement in product / listing&#95;img&#95;title but am unsure of what syntax to use.  Thanks in advance.  Oli")*

Hi,

1. Go in the menu System&gt;Currencies, edit your currency and you'll find options on the right side of the screen to configure the way the prices should display in that currency, including one option for the space between the symbol and the price.

2.
It's quite easy actually: Code:

&lt;?php if(!empty($this-&gt;row-&gt;has_options)) echo "From"; ?&gt;

The following user(s) said Thank You: [Kingwell](/forum/user/38001-kingwell "View Kingwell's Profile")

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

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

Less More

- Posts: 222
- Thank you received: 1
-
-

10 years 7 months ago [\#238269](#238269) by [Vero](/forum/user/5108-vero "View Vero's Profile")  Replied by *[Vero](/forum/user/5108-vero "View Vero's Profile")* on topic *[Edit displayed price in category view](/forum/26-product-category-display/880507-edit-displayed-price-in-category-view#238269 "-- HikaShop version -- : 2.6.0  I would like to change the price display of products in the category view, there are 2 things i would like to achieve:  The first thing is to remove the whitespace between the currency symbol and the value, for instance it displays &quot;£ 10.00&quot; where i would like to display &quot;£10.00&quot;.  The second thing, is to add the word &quot;from&quot; in front of the price where there are multiple variants with different prices, my category display shows the lowest available price, currently like &quot;£39.60&quot; with the &quot;choose options&quot; button,i would like it to display &quot;From £39.60&quot; instead, so that customers are not mislead about pricing. Ideally i would only like to show the &quot;From...&quot; where there are multiple variants of the same product. and single variant products just show the price. I think this would be done as an overside IF statement in product / listing&#95;img&#95;title but am unsure of what syntax to use.  Thanks in advance.  Oli")*

> nicolas wrote: It's quite easy actually:
>
> Code:
>
> &lt;?php if(!empty($this-&gt;row-&gt;has_options)) echo "From"; ?&gt;

Where to add this code?
I have added this code to product/listing.... in different views en in different places, where I found price code, but it not works.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODA1MDctZWRpdC1kaXNwbGF5ZWQtcHJpY2UtaW4tY2F0ZWdvcnktdmlldz90bXBsPW1hcmtkb3du) 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
-
-

10 years 6 months ago [\#238319](#238319) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Edit displayed price in category view](/forum/26-product-category-display/880507-edit-displayed-price-in-category-view#238319 "-- HikaShop version -- : 2.6.0  I would like to change the price display of products in the category view, there are 2 things i would like to achieve:  The first thing is to remove the whitespace between the currency symbol and the value, for instance it displays &quot;£ 10.00&quot; where i would like to display &quot;£10.00&quot;.  The second thing, is to add the word &quot;from&quot; in front of the price where there are multiple variants with different prices, my category display shows the lowest available price, currently like &quot;£39.60&quot; with the &quot;choose options&quot; button,i would like it to display &quot;From £39.60&quot; instead, so that customers are not mislead about pricing. Ideally i would only like to show the &quot;From...&quot; where there are multiple variants of the same product. and single variant products just show the price. I think this would be done as an overside IF statement in product / listing&#95;img&#95;title but am unsure of what syntax to use.  Thanks in advance.  Oli")*

Hi,

In product / listing_img_title, as you were saying in your first message.

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

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

Less More

- Posts: 222
- Thank you received: 1
-
-

10 years 6 months ago -  10 years 6 months ago [\#238343](#238343) by [Vero](/forum/user/5108-vero "View Vero's Profile")  Replied by *[Vero](/forum/user/5108-vero "View Vero's Profile")* on topic *[Edit displayed price in category view](/forum/26-product-category-display/880507-edit-displayed-price-in-category-view#238343 "-- HikaShop version -- : 2.6.0  I would like to change the price display of products in the category view, there are 2 things i would like to achieve:  The first thing is to remove the whitespace between the currency symbol and the value, for instance it displays &quot;£ 10.00&quot; where i would like to display &quot;£10.00&quot;.  The second thing, is to add the word &quot;from&quot; in front of the price where there are multiple variants with different prices, my category display shows the lowest available price, currently like &quot;£39.60&quot; with the &quot;choose options&quot; button,i would like it to display &quot;From £39.60&quot; instead, so that customers are not mislead about pricing. Ideally i would only like to show the &quot;From...&quot; where there are multiple variants of the same product. and single variant products just show the price. I think this would be done as an overside IF statement in product / listing&#95;img&#95;title but am unsure of what syntax to use.  Thanks in advance.  Oli")*

Nicolas, I am sorry, but I was saying in my message, that I tried, but it not works. Please, tell me in what place have I to add that code? Code:

&lt;!-- PRODUCT PRICE --&gt; &lt;?php if($this-&gt;params-&gt;get('show_price','-1')=='-1'){ $config =&amp; hikashop_config(); $this-&gt;params-&gt;set('show_price',$config-&gt;get('show_price')); } if($this-&gt;params-&gt;get('show_price')){ $this-&gt;setLayout('listing_price'); echo $this-&gt;loadTemplate(); } ?&gt; &lt;!-- EO PRODUCT PRICE --&gt;

Last edit: 10 years 6 months ago by [Vero](/forum/user/5108-vero "View Vero's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODA1MDctZWRpdC1kaXNwbGF5ZWQtcHJpY2UtaW4tY2F0ZWdvcnktdmlldz90bXBsPW1hcmtkb3du) 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
-
-

10 years 6 months ago [\#238352](#238352) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Edit displayed price in category view](/forum/26-product-category-display/880507-edit-displayed-price-in-category-view#238352 "-- HikaShop version -- : 2.6.0  I would like to change the price display of products in the category view, there are 2 things i would like to achieve:  The first thing is to remove the whitespace between the currency symbol and the value, for instance it displays &quot;£ 10.00&quot; where i would like to display &quot;£10.00&quot;.  The second thing, is to add the word &quot;from&quot; in front of the price where there are multiple variants with different prices, my category display shows the lowest available price, currently like &quot;£39.60&quot; with the &quot;choose options&quot; button,i would like it to display &quot;From £39.60&quot; instead, so that customers are not mislead about pricing. Ideally i would only like to show the &quot;From...&quot; where there are multiple variants of the same product. and single variant products just show the price. I think this would be done as an overside IF statement in product / listing&#95;img&#95;title but am unsure of what syntax to use.  Thanks in advance.  Oli")*

Hi,

Well, it should definitely add the From on the listing if you edit that view file, unless:
- you're editing the view file for another template than the one you're using on your frontend
- you've configured the layout setting of your menu item to use another layout than the default "image an title" and in that case, it's another view file that you need to edit, accordingly to the layout you selected:
[ www.hikashop.com/support/documentation/1...-display.html#layout](https://www.hikashop.com/support/documentation/153-customize-the-display.html#layout)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODA1MDctZWRpdC1kaXNwbGF5ZWQtcHJpY2UtaW4tY2F0ZWdvcnktdmlldz90bXBsPW1hcmtkb3du) 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.098 seconds

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