VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: tebah89 on February 28, 2019, 04:27:59 AM

Title: Showing the total price with tax only in the shopping cart
Post by: tebah89 on February 28, 2019, 04:27:59 AM
Hi,

Is it possible to show the price without tax for an item in the catalog and showing the total price with tax only in the shopping cart.
If I check "Final sale price" in the configuration, the price is showing at both place.

Thanks for your help
Title: Re: Showing the total price with tax only in the shopping cart
Post by: GJC Web Design on February 28, 2019, 09:41:53 AM
adjust (and over ride) the sublayouts prices.php to show what ever u want on the products
Title: Re: Showing the total price with tax only in the shopping cart
Post by: tebah89 on March 06, 2019, 03:47:16 AM
Hi,
Are you sure the prices.php file only impacts the catalog (product list and product page) and does not change anything in the shopping cart?

For example, I need this following setting :

catalog price showed (product list and product page)
2 695,00$ (without TVA)

In the shopping cart
2 695,00$ (subtotal)
403.71 $ (TVA)
3 098.71 $ (TTC)

I upgrade a website from Joomla 2.x to 3.x and this setting works on VirtueMart v.1.1.3 and I can't do the same thing in VirtueMart v.3.4.2
Title: Re: Showing the total price with tax only in the shopping cart
Post by: GJC Web Design on March 06, 2019, 10:22:40 AM
100% certain .. u can of course copy/rename - use different prices.php in details, cats, mosules  -- has nothing to do with cart -- purely display
Title: Re: Showing the total price with tax only in the shopping cart
Post by: tebah89 on March 06, 2019, 13:02:05 PM
Thanks for your help
Title: Re: Showing the total price with tax only in the shopping cart
Post by: tebah89 on March 07, 2019, 03:11:11 AM
Nothing happens, even if I rename the file at prices2.php
Is this the file at component/com_virtuemart/sublayout/prices.php ?
Title: Re: Showing the total price with tax only in the shopping cart
Post by: stensbo on March 07, 2019, 08:44:35 AM
Hello,

http://docs.virtuemart.net/tutorials/templating-layouts/199-sublayouts.html

The sublayouts are stored in the FE folder /component/com_virtuemart/sublayouts. You can add your own sublayouts into the core folder, or add/override them via template using /templates/yourtemplate/html/com_virtuemart/sublayouts

It is possible that your prices.php  is overridden in your template .. /templates/yourtemplate/html/com_virtuemart/sublayouts
Title: Re: Showing the total price with tax only in the shopping cart
Post by: tebah89 on March 07, 2019, 12:34:04 PM
Ok, I check it

Thanks
Title: Re: Showing the total price with tax only in the shopping cart (solved)
Post by: tebah89 on March 08, 2019, 22:13:16 PM
It's exactly that.
I found an another prices.php in my jdboston template.

Thank you very much.

Case closed
Title: Re: Showing the total price with tax only in the shopping cart
Post by: framos41 on July 08, 2019, 19:18:30 PM
Hello! did you work that out? need the same thing if dou did can you please share how did you accomplished it? looking forward to your comments regards!