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

#   Product listing display

##

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

Less More

- Posts: 301
- Thank you received: 1
-
-

14 years 4 months ago [\#56794](#56794) by [Huski](/forum/user/3364-huski "View Huski's Profile")  *[Product listing display](/forum/2-general-talk-about-hikashop/56794-product-listing-display#56794 "I am wanting to put the word &quot;from&quot; in front of the price on the product listing page - when I click on a category and it brings up the list of products under that category.  This is the code I have put (I am not a coder)   params-&gt;get('show&#95;price')){ $this-&gt;setLayout('listing&#95;price'); echo &quot;from&quot;.$this-&gt;loadTemplate(); } ?&gt;  But on the front end it puts the word &quot;from&quot; then puts the price 2 lines below  How can I put the word directly in front of the price? Thanks")* was created by *[Huski](/forum/user/3364-huski "View Huski's Profile")*

I am wanting to put the word "from" in front of the price on the product listing page - when I click on a category and it brings up the list of products under that category.

This is the code I have put (I am not a coder)

&lt;!-- PRODUCT PRICE --&gt;
&lt;?php
}
if($this-&gt;params-&gt;get('show_price')){
$this-&gt;setLayout('listing_price');
echo "&lt;strong&gt;from&lt;/strong&gt;".$this-&gt;loadTemplate();
}
?&gt;

But on the front end it puts the word "from" then puts the price 2 lines below

How can I put the word directly in front of the price?
Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU2Nzk0LXByb2R1Y3QtbGlzdGluZy1kaXNwbGF5P3RtcGw9bWFya2Rvd24=) 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: 86555
- Thank you received: 14304
-
-

14 years 4 months ago [\#56827](#56827) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Product listing display](/forum/2-general-talk-about-hikashop/56794-product-listing-display#56827 "I am wanting to put the word &quot;from&quot; in front of the price on the product listing page - when I click on a category and it brings up the list of products under that category.  This is the code I have put (I am not a coder)   params-&gt;get('show&#95;price')){ $this-&gt;setLayout('listing&#95;price'); echo &quot;from&quot;.$this-&gt;loadTemplate(); } ?&gt;  But on the front end it puts the word &quot;from&quot; then puts the price 2 lines below  How can I put the word directly in front of the price? Thanks")*

You should do your modification in the file "listing_price" and not the "listing_img_title" view file.
There you can directly put it next to the product:

if(empty($this-&gt;element-&gt;prices)) echo 'from ';
echo $this-&gt;currencyHelper-&gt;format($price-&gt;price_value_with_tax,$price-&gt;price_currency_id);

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

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

Less More

- Posts: 301
- Thank you received: 1
-
-

14 years 4 months ago [\#56839](#56839) by [Huski](/forum/user/3364-huski "View Huski's Profile")  Replied by *[Huski](/forum/user/3364-huski "View Huski's Profile")* on topic *[Re: Product listing display](/forum/2-general-talk-about-hikashop/56794-product-listing-display#56839 "I am wanting to put the word &quot;from&quot; in front of the price on the product listing page - when I click on a category and it brings up the list of products under that category.  This is the code I have put (I am not a coder)   params-&gt;get('show&#95;price')){ $this-&gt;setLayout('listing&#95;price'); echo &quot;from&quot;.$this-&gt;loadTemplate(); } ?&gt;  But on the front end it puts the word &quot;from&quot; then puts the price 2 lines below  How can I put the word directly in front of the price? Thanks")*

Thanks - I can get the word from in front of the price but its doing the same thing as if it I am putting the word from in the PRICE BEGINNING in the language file.

I am only wanting the word from to show on the product listing as I have products with options. But the word from is also showing in the mini cart and in the checkout cart as well.

Can I just force it to show on the product_listing results on its own?
Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU2Nzk0LXByb2R1Y3QtbGlzdGluZy1kaXNwbGF5P3RtcGw9bWFya2Rvd24=) 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: 86555
- Thank you received: 14304
-
-

14 years 4 months ago [\#56865](#56865) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Product listing display](/forum/2-general-talk-about-hikashop/56794-product-listing-display#56865 "I am wanting to put the word &quot;from&quot; in front of the price on the product listing page - when I click on a category and it brings up the list of products under that category.  This is the code I have put (I am not a coder)   params-&gt;get('show&#95;price')){ $this-&gt;setLayout('listing&#95;price'); echo &quot;from&quot;.$this-&gt;loadTemplate(); } ?&gt;  But on the front end it puts the word &quot;from&quot; then puts the price 2 lines below  How can I put the word directly in front of the price? Thanks")*

Ah yes, I didn't think of the cart display.
Try like that instead:

if(empty($this-&gt;element-&gt;prices)&amp;&amp;($_GET=='listing'&#124;&#124;@$this-&gt;module)) echo 'from ';
echo $this-&gt;currencyHelper-&gt;format($price-&gt;price_value_with_tax,$price-&gt;price_currency_id);

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

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

Less More

- Posts: 301
- Thank you received: 1
-
-

14 years 4 months ago [\#56876](#56876) by [Huski](/forum/user/3364-huski "View Huski's Profile")  Replied by *[Huski](/forum/user/3364-huski "View Huski's Profile")* on topic *[Re: Product listing display](/forum/2-general-talk-about-hikashop/56794-product-listing-display#56876 "I am wanting to put the word &quot;from&quot; in front of the price on the product listing page - when I click on a category and it brings up the list of products under that category.  This is the code I have put (I am not a coder)   params-&gt;get('show&#95;price')){ $this-&gt;setLayout('listing&#95;price'); echo &quot;from&quot;.$this-&gt;loadTemplate(); } ?&gt;  But on the front end it puts the word &quot;from&quot; then puts the price 2 lines below  How can I put the word directly in front of the price? Thanks")*

Thanks
I sort of got it working after a few errors but its still placing 'from' everywhere.

I'm not sure which lines I am supposed to replace with your code exactly. I was sort of taking a guess. Does it just go in as new lines or replace existing code? I add as new code but I get the word from and the main price showing $0.00 then the option price which is what I am using.

So still confused ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU2Nzk0LXByb2R1Y3QtbGlzdGluZy1kaXNwbGF5P3RtcGw9bWFya2Rvd24=) 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: 86555
- Thank you received: 14304
-
-

14 years 4 months ago [\#56915](#56915) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Product listing display](/forum/2-general-talk-about-hikashop/56794-product-listing-display#56915 "I am wanting to put the word &quot;from&quot; in front of the price on the product listing page - when I click on a category and it brings up the list of products under that category.  This is the code I have put (I am not a coder)   params-&gt;get('show&#95;price')){ $this-&gt;setLayout('listing&#95;price'); echo &quot;from&quot;.$this-&gt;loadTemplate(); } ?&gt;  But on the front end it puts the word &quot;from&quot; then puts the price 2 lines below  How can I put the word directly in front of the price? Thanks")*

Hi,

The line :
if(empty($this-&gt;element-&gt;prices)&amp;&amp;($_GET=='listing'&#124;&#124;@$this-&gt;module)) echo 'from ';

should be placed before the line:
echo $this-&gt;currencyHelper-&gt;format($price-&gt;price_value_with_tax,$price-&gt;price_currency_id);

I don't see how that code would still display everywhere though.
Maybe without the &#124;&#124;@$this-&gt;module it would help ?

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

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

Less More

- Posts: 301
- Thank you received: 1
-
-

14 years 4 months ago [\#56967](#56967) by [Huski](/forum/user/3364-huski "View Huski's Profile")  Replied by *[Huski](/forum/user/3364-huski "View Huski's Profile")* on topic *[Re: Product listing display](/forum/2-general-talk-about-hikashop/56794-product-listing-display#56967 "I am wanting to put the word &quot;from&quot; in front of the price on the product listing page - when I click on a category and it brings up the list of products under that category.  This is the code I have put (I am not a coder)   params-&gt;get('show&#95;price')){ $this-&gt;setLayout('listing&#95;price'); echo &quot;from&quot;.$this-&gt;loadTemplate(); } ?&gt;  But on the front end it puts the word &quot;from&quot; then puts the price 2 lines below  How can I put the word directly in front of the price? Thanks")*

Great - thanks.
I am still getting the 'from' in the mini cart module but not in the checkout process.
Removed &#124;&#124;@$this-&gt;module and 'from' doesn't appear at all anymore so have put it back for now.
It's just the mini-cart where there is now an issue.

It might be worth adding the ability to put the word from in a product listing in the language file. No need for it in the mini cart or checkout. I have a lot of products which have basic price and have options - the
'from' tells the customer that is the cheapest price even if it isn't as options are required.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU2Nzk0LXByb2R1Y3QtbGlzdGluZy1kaXNwbGF5P3RtcGw9bWFya2Rvd24=) 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: 86555
- Thank you received: 14304
-
-

14 years 4 months ago [\#57009](#57009) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Product listing display](/forum/2-general-talk-about-hikashop/56794-product-listing-display#57009 "I am wanting to put the word &quot;from&quot; in front of the price on the product listing page - when I click on a category and it brings up the list of products under that category.  This is the code I have put (I am not a coder)   params-&gt;get('show&#95;price')){ $this-&gt;setLayout('listing&#95;price'); echo &quot;from&quot;.$this-&gt;loadTemplate(); } ?&gt;  But on the front end it puts the word &quot;from&quot; then puts the price 2 lines below  How can I put the word directly in front of the price? Thanks")*

Then edit the file "cart" of the view "product" via the menu Display-&gt;Views and add the line:
$this-&gt;module = false;

after the first &lt;?php tag.

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

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

Less More

- Posts: 301
- Thank you received: 1
-
-

14 years 4 months ago [\#57358](#57358) by [Huski](/forum/user/3364-huski "View Huski's Profile")  Replied by *[Huski](/forum/user/3364-huski "View Huski's Profile")* on topic *[Re: Product listing display](/forum/2-general-talk-about-hikashop/56794-product-listing-display#57358 "I am wanting to put the word &quot;from&quot; in front of the price on the product listing page - when I click on a category and it brings up the list of products under that category.  This is the code I have put (I am not a coder)   params-&gt;get('show&#95;price')){ $this-&gt;setLayout('listing&#95;price'); echo &quot;from&quot;.$this-&gt;loadTemplate(); } ?&gt;  But on the front end it puts the word &quot;from&quot; then puts the price 2 lines below  How can I put the word directly in front of the price? Thanks")*

Thanks - this worked for the mini-cart. But I notice the word "from" is also showing in the featured products module I have.

I haven't add a related products sections as well yet but assume this would also show the word "from" if I add that module.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU2Nzk0LXByb2R1Y3QtbGlzdGluZy1kaXNwbGF5P3RtcGw9bWFya2Rvd24=) 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: 86555
- Thank you received: 14304
-
-

14 years 4 months ago [\#57414](#57414) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Product listing display](/forum/2-general-talk-about-hikashop/56794-product-listing-display#57414 "I am wanting to put the word &quot;from&quot; in front of the price on the product listing page - when I click on a category and it brings up the list of products under that category.  This is the code I have put (I am not a coder)   params-&gt;get('show&#95;price')){ $this-&gt;setLayout('listing&#95;price'); echo &quot;from&quot;.$this-&gt;loadTemplate(); } ?&gt;  But on the front end it puts the word &quot;from&quot; then puts the price 2 lines below  How can I put the word directly in front of the price? Thanks")*

Yes.
Is that a problem ?

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

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

Less More

- Posts: 301
- Thank you received: 1
-
-

14 years 4 months ago [\#57446](#57446) by [Huski](/forum/user/3364-huski "View Huski's Profile")  Replied by *[Huski](/forum/user/3364-huski "View Huski's Profile")* on topic *[Re: Product listing display](/forum/2-general-talk-about-hikashop/56794-product-listing-display#57446 "I am wanting to put the word &quot;from&quot; in front of the price on the product listing page - when I click on a category and it brings up the list of products under that category.  This is the code I have put (I am not a coder)   params-&gt;get('show&#95;price')){ $this-&gt;setLayout('listing&#95;price'); echo &quot;from&quot;.$this-&gt;loadTemplate(); } ?&gt;  But on the front end it puts the word &quot;from&quot; then puts the price 2 lines below  How can I put the word directly in front of the price? Thanks")*

Now that I think about it - its not a problem ![:)](/media/kunena/emoticons/3.png ":)")
Thanks

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

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