Skip to main content

Show "from" before price

More
13 years 4 months ago #106589 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

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago - 13 years 4 months ago #106593 by Mohamed Thelji
Hi,

Then you should change this custom code :
Code:
<?php if(!empty($this->row->has_options)) echo 'from '; ?>
by :
Code:
<?php if(!empty($this->row->has_options)) echo JText::_( 'FROM_LISTING' ); ?>
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.
Last edit: 13 years 4 months ago by Mohamed Thelji.

Please Log in or Create an account to join the conversation.

More
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.

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago - 13 years 4 months ago #106618 by Mohamed Thelji
Maybe by putting your code :
Code:
if(!empty($this->row->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 4 months ago by Mohamed Thelji.

Please Log in or Create an account to join the conversation.

More
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
Powered by Kunena Forum