- Posts: 12
- Thank you received: 0
Show "from" before price
13 years 4 months ago #106589
by raggie
Show "from" before price was created by raggie
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:
<?php if(!empty($this->row->has_options)) echo 'from '; ?>
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
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:
<?php if(!empty($this->row->has_options)) echo 'from '; ?>
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 or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
13 years 4 months ago - 13 years 4 months ago #106593
by Mohamed Thelji
Replied by Mohamed Thelji on topic Show "from" before price
Hi,
Then you should change this custom code :
by :
And then add this and translate the "FROM_LISTING" word trough your translation files ("Hikashop->System->Configuration->Languages->'Your translation file'").
Hope this will help you a little.
Then you should change this custom code :
Code:
<?php if(!empty($this->row->has_options)) echo 'from '; ?>
Code:
<?php if(!empty($this->row->has_options)) echo JText::_( 'FROM_LISTING' ); ?>
Hope this will help you a little.
Last edit: 13 years 4 months ago by Mohamed Thelji.
Please Log in or Create an account to join the conversation.
13 years 4 months ago #106612
by raggie
Replied by raggie on topic Show "from" before price
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.
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 or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
13 years 4 months ago - 13 years 4 months ago #106618
by Mohamed Thelji
Replied by Mohamed Thelji on topic Show "from" before price
Maybe by putting your code :
into the listing_price file of your product view of your front-end template, just before the code :
Code:
if(!empty($this->row->has_options)) echo JText::_( 'FROM_LISTING' );
Code:
echo JText::_('PRICE_BEGINNING');
Last edit: 13 years 4 months ago by Mohamed Thelji.
Please Log in or Create an account to join the conversation.
13 years 4 months ago #106619
by raggie
Replied by raggie on topic Show "from" before price
Thank you, you're my saviour!
Please Log in or Create an account to join the conversation.
Time to create page: 0.226 seconds