Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Responsive Joomla Virtuemart Template - SportMart (SKU# FLEX-00019)

TOPIC: show "tax included"

show "tax included" 9 years 3 months ago #11679

Hi,

I was tryng to show the file price "tax included" but after searching in the configuration i was not able to find it... Is there this possibility?

Thanks
The topic has been locked.

show "tax included" 9 years 3 months ago #11701

Hi,

Create a TAX rule (TAX per Product) through VM Configuration and don't select any "country" for this TAX rule.
Then, this new TAX rule will be applied to all prices regardless of country. So, all prices will be TAX-included on the website.

If you choose specific "Country" for that tax rule, then the TAX rule will be applied only for the users from that country. For non-logged in users (anonymous) , the location is unknown, thus the TAX rule won't be applied until the user is logged in to joomla.

Got it?

Regards.
The topic has been locked.

show "tax included" 9 years 3 months ago #11713

I am sorry, but I was not clear.. I would like to show the notice "tax included" like the attachment.

Thanks
Attachments:
The topic has been locked.

show "tax included" 9 years 3 months ago #11731

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
Last Edit: 9 years 3 months ago by Support.
The topic has been locked.

show "tax included" 9 years 2 months ago #11769

Thanks problem solved!
The topic has been locked.

show "tax included" 9 years 2 months ago #11789

Good to see the problem is resolved.

Case solved, topic is closed.

If you like SportMart and satisfied with the support you have received, please "write a review" on:
www.flexiblewebdesign.com/Joomla-Virtuemart-Templates/SportMart

Write couple of sentences to share your experience with the support team.
Just 2-3 sentences would be enough ;) It might sound simple to you, but it is extremely important. Potential customers care about product reviews very much.

Thanks in advance!

Regards,
Support
The topic has been locked.
Time to create page: 0.443 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo