Product Price label

  • Posts: 10
  • Thank you received: 0
6 years 5 months ago #282594

-- url of the page with the problem -- : www.2000motors.it


Ciao!
I can modify the style of the proce (color etc) by modifying CSS.... but how to add a label for this field? The price appear at the top of the product but have no label! I need something like : "Price of item : 3.500,00 €"

Is also possible to move this price in another position? where I must operate for this? Thanks!

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

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
6 years 5 months ago #282599

Hi,

You'll want to edit the file "show_default" via the menu Display>Views.
There, you can see that the price is displayed by that code:

$this->row =& $this->element;
		$this->setLayout('listing_price');
		echo $this->loadTemplate();
So you can move it around in the view file to move the price on the product page. And you can add a line like:
echo 'Price of item:';
before it if you want to add such label.

www.hikashop.com/support/documentation/1...-display.html#layout

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

  • Posts: 10
  • Thank you received: 0
6 years 5 months ago #282663

super!! thank you!
Just a word about how to localize it..... 2 language.... wich is the best way?

Last edit: 6 years 5 months ago by roby1kenoby.

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

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
6 years 5 months ago #282665

Hi,

Instead of :
echo 'Price of item:';
you can write:
echo JText::_('MY_TEXT');

And add a line:
MY_TEXT="Price of item:"
in your Joomla translation override.

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

Time to create page: 0.066 seconds
Powered by Kunena Forum