Author Topic: 'text' before price in productpage  (Read 1050 times)

sabine

  • Beginner
  • *
  • Posts: 8
'text' before price in productpage
« on: July 14, 2010, 17:23:15 pm »
Hi all,

I have searched the forum for hours now cause I think someone else must have had this question to. But I didn't find it.

I would like to have the (typical) Dutch text 'vanaf' before the price in productpage and on the frontpage of the shop.

Since the websie is not online jet I have some images to make it more clearly I hope.

Can someone tell me which file I have to change and what I do have to change?

Thank you so much in advance


PS Working with the latest versions of both joomla! and VM

[attachment cleanup by admin]

rb

  • Advanced
  • Full Member
  • *****
  • Posts: 1503
Re: 'text' before price in productpage
« Reply #1 on: July 15, 2010, 02:04:27 am »
On the flypage (product details page), usually the price is preceded by the text specified as "PHPSHOP_CART_PRICE" in the languages/common/ file.  If you're not seeing that, then your language file may not have it.  But since you want the text to appear in front of the price on several different pages, you can modify this file:

     components/com_virtuemart/themes/default/templates/common/price.tpl.php

Find this:
Code: [Select]
<span class="productPrice">
<?php echo $CURRENCY_DISPLAY->getFullValue($base_price?>

and change it to this:
Code: [Select]
<span class="productPrice">
vanaf
<?php echo $CURRENCY_DISPLAY->getFullValue($base_price?>

sabine

  • Beginner
  • *
  • Posts: 8
Re: 'text' before price in productpage
« Reply #2 on: July 19, 2010, 19:10:09 pm »
Hi rb,

Thank you so much for your answer! It did the trick!!

Hopefully some others will be helped with your answer to in the future.

Thanks Sabine