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

#   Show "from" before price

##

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

Less More

- Posts: 12
- Thank you received: 0
-
-

13 years 5 months ago [\#106589](#106589) by [raggie](/forum/user/20668-raggie "View raggie's Profile")  *[Show "from" before price](/forum/4-how-to/83015-show-from-before-price#106589 "Hi,  I have different characteristics of my products and I would like to add &quot;from&quot; before the price on the product listing pages.  I solved it by adding this code to the listing&#95;price file: row-&gt;has&#95;options)) echo 'from '; ?&gt;  The problem is that my site is running three different languages, and by solving it like the example above it will say &quot;from&quot; in all three languages.  Thank you for your help!  Raggie")* was created by *[raggie](/forum/user/20668-raggie "View raggie's Profile")*

Hi,

I have different characteristics of my products and I would like to add "from" before the price on the product listing pages.

I solved it by adding this code to the listing_price file:
&lt;?php if(!empty($this-&gt;row-&gt;has_options)) echo 'from '; ?&gt;

The problem is that my site is running three different languages, and by solving it like the example above it will say "from" in all three languages.

Thank you for your help!

Raggie

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 5 months ago -  13 years 5 months ago [\#106593](#106593) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Show "from" before price](/forum/4-how-to/83015-show-from-before-price#106593 "Hi,  I have different characteristics of my products and I would like to add &quot;from&quot; before the price on the product listing pages.  I solved it by adding this code to the listing&#95;price file: row-&gt;has&#95;options)) echo 'from '; ?&gt;  The problem is that my site is running three different languages, and by solving it like the example above it will say &quot;from&quot; in all three languages.  Thank you for your help!  Raggie")*

Hi,

Then you should change this custom code : Code:

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

by : Code:

&lt;?php if(!empty($this-&gt;row-&gt;has_options)) echo JText::_( 'FROM_LISTING' ); ?&gt;

And then add this and translate the "FROM_LISTING" word trough your translation files ("*Hikashop-&gt;System-&gt;Configuration-&gt;Languages-&gt;'Your translation file'*").

Hope this will help you a little.

Last edit: 13 years 5 months ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

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

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

Less More

- Posts: 12
- Thank you received: 0
-
-

13 years 5 months ago [\#106612](#106612) by [raggie](/forum/user/20668-raggie "View raggie's Profile")  Replied by *[raggie](/forum/user/20668-raggie "View raggie's Profile")* on topic *[Show "from" before price](/forum/4-how-to/83015-show-from-before-price#106612 "Hi,  I have different characteristics of my products and I would like to add &quot;from&quot; before the price on the product listing pages.  I solved it by adding this code to the listing&#95;price file: row-&gt;has&#95;options)) echo 'from '; ?&gt;  The problem is that my site is running three different languages, and by solving it like the example above it will say &quot;from&quot; in all three languages.  Thank you for your help!  Raggie")*

Thanks a million Mohamed!

Any idea how i will get the "from" on the same row as the price? Right now it's on the row above the price.

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 5 months ago -  13 years 5 months ago [\#106618](#106618) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Show "from" before price](/forum/4-how-to/83015-show-from-before-price#106618 "Hi,  I have different characteristics of my products and I would like to add &quot;from&quot; before the price on the product listing pages.  I solved it by adding this code to the listing&#95;price file: row-&gt;has&#95;options)) echo 'from '; ?&gt;  The problem is that my site is running three different languages, and by solving it like the example above it will say &quot;from&quot; in all three languages.  Thank you for your help!  Raggie")*

Maybe by putting your code : Code:

if(!empty($this-&gt;row-&gt;has_options)) echo JText::_( 'FROM_LISTING' );

into the **listing\_price** file of your **product** view of your **front-end template**, just before the code : Code:

echo JText::_('PRICE_BEGINNING');

Last edit: 13 years 5 months ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

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

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

Less More

- Posts: 12
- Thank you received: 0
-
-

13 years 5 months ago [\#106619](#106619) by [raggie](/forum/user/20668-raggie "View raggie's Profile")  Replied by *[raggie](/forum/user/20668-raggie "View raggie's Profile")* on topic *[Show "from" before price](/forum/4-how-to/83015-show-from-before-price#106619 "Hi,  I have different characteristics of my products and I would like to add &quot;from&quot; before the price on the product listing pages.  I solved it by adding this code to the listing&#95;price file: row-&gt;has&#95;options)) echo 'from '; ?&gt;  The problem is that my site is running three different languages, and by solving it like the example above it will say &quot;from&quot; in all three languages.  Thank you for your help!  Raggie")*

Thank you, you're my saviour! ![:)](/media/kunena/emoticons/3.png ":)")

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

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

[](#top)
