Hi,
VirtueMart doesn't have an option to put "text"
after the price. There is price labeling but it appears
before the price. In the front-end it will look like this:
Sales Price: 54.90 €
You can make it look like this though:
Price (Tax included): 54.90 €
Labeling has been disabled by default in SportMart for better layout. To re-enable it, follow these steps;
1- Navigate to VM Configuration > Price
2- Check the "Show Label" option for the "Final Sales Price"
3- Open the Category PHP file:
/templates/flexible_sportmart/html/com_virtuemart/category/default.php (default, flexv2 or flexv3 depends on what version you are currently using for category layout)
4- find this line:
echo preg_replace('/style="display : block;"/',' ',$this->currency->createPriceDiv('salesPrice', '', $product->prices));
5- replace it with this:
echo preg_replace('/style="display : block;"/',' ',$this->currency->createPriceDiv('salesPrice', 'COM_VIRTUEMART_PRODUCT_SALESPRICE', $product->prices));
FYI: There are total of 3 different lines that you need to make this replacement (within the same PHP file), use CTRL+F to find them all
6- Open the product details PHP file:
/templates/flexible_sportmart/html/com_virtuemart/productdetails/default.php (default or flexv2 depends on what version you are currently using for product details layout)
7- find this line:
echo preg_replace('/style="display : block;"/',' ',$this->currency->createPriceDiv('salesPrice', '', $this->product->prices));
8- replace it with this:
echo preg_replace('/style="display : block;"/',' ',$this->currency->createPriceDiv('salesPrice', 'COM_VIRTUEMART_PRODUCT_SALESPRICE', $this->product->prices));
9- Open this Language INI file:
/components/com_virtuemart/language/en-GB/en-GB.com_virtuemart.ini en-GB is for English
10- find this line:
COM_VIRTUEMART_PRODUCT_SALESPRICE="Sales price: "
11- replace it with this:
COM_VIRTUEMART_PRODUCT_SALESPRICE="Price (Tax included): "
You are all set!
But if you are looking for this kind of layout:
Sales Price: 54.90 € (Tax included)
- or -
54.90 € (Tax included)
Then you will need custom coding changes on PHP files. Unfortunately we don't provide free support or step-by-step instructions for custom coding modifications.
You may purchase premium support:
www.flexiblewebdesign.com/premium-support
and let us take care this modification for you directly on your website though.
Regards.
Support