News:

Support the VirtueMart project and become a member

Main Menu

Prices in Cart.

Started by MyDesigner, September 24, 2016, 21:36:34 PM

Previous topic - Next topic

MyDesigner

Hello, I have a problem ... I want to display price without VAT Tax and VAT Tax only in cart page and not in category product page and product detail page.
In html/sublayout template folder there is not a detail price PHP file.
How can I to resolve a problem ?
I have Joomla 3.6.2 and VirtueMart 3.0.18.
Thanks.

GJC Web Design

in VM admin prices -> show tax in cart = yes
display
sales price and Tax

in the sublayout prices.php  over ride and comment out the

// echo $currency->createPriceDiv ('taxAmount', 'COM_VIRTUEMART_PRODUCT_TAX_AMOUNT', $product->prices);
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

aerdna

Maybe my solution is not the best but what I ended up doing to show tax only in the cart and no where else was to hide the tax div via css. It works for my template at least. 

div.PricetaxAmount.vm-display.vm-price-value {
   display: none;
}




MyDesigner

Quote from: GJC Web Design on September 24, 2016, 23:11:37 PM
in VM admin prices -> show tax in cart = yes
display
sales price and Tax

in the sublayout prices.php  over ride and comment out the

// echo $currency->createPriceDiv ('taxAmount', 'COM_VIRTUEMART_PRODUCT_TAX_AMOUNT', $product->prices);

Hello, prices.php there is not in sublayout folder of template ...  :(

MyDesigner

Quote from: aerdna on September 24, 2016, 23:22:24 PM
Maybe my solution is not the best but what I ended up doing to show tax only in the cart and no where else was to hide the tax div via css. It works for my template at least. 

div.PricetaxAmount.vm-display.vm-price-value {
   display: none;
}

Hello, with this code VAT Tax is not visible in cart too because in cart is same div.

jenkinhill

Quote from: MyDesigner on September 25, 2016, 11:16:32 AM
Hello, prices.php there is not in sublayout folder of template ...  :(
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

GJC Web Design

QuoteHello, prices.php there is not in sublayout folder of template ...  :(

crappy old style 3rd party template?

without info you can't expect help
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

MyDesigner

Quote from: GJC Web Design on September 25, 2016, 13:17:49 PM
QuoteHello, prices.php there is not in sublayout folder of template ...  :(

crappy old style 3rd party template?

without info you can't expect help

What info do you need ? In sublayout folder of template there is only two files but no prices.
It's possible to use above CSS code only for category product page and product detail page ?

GJC Web Design

QuoteIn sublayout folder of template there is only two files but no prices.

then simply copy it to your over rides and make the change required
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

MyDesigner

#9
Quote from: GJC Web Design on September 25, 2016, 17:13:49 PM
QuoteIn sublayout folder of template there is only two files but no prices.

then simply copy it to your over rides and make the change required

If I copy prices.php to sublayout folder of template does not work ... but if I rename sublayout folder of template and make the change in prices.php of VirtueMart folder (not template) the change works.
What do you suggest me ?

GJC Web Design

No idea... probably my first impression..

Quotecrappy old style 3rd party template?
;)
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

MyDesigner

#11
Quote from: MyDesigner on September 25, 2016, 18:02:52 PM
Quote from: GJC Web Design on September 25, 2016, 17:13:49 PM
QuoteIn sublayout folder of template there is only two files but no prices.

then simply copy it to your over rides and make the change required

If I copy prices.php to sublayout folder of template does not work ... but if I rename sublayout folder of template and make the change in prices.php of VirtueMart folder (not template) the change works.
What do you suggest me ?

I correct ... it does not work.  :'(

It's possible to use this code:

div.PricetaxAmount.vm-display.vm-price-value {
   display: none;
}

Only for category product page and product detail page and not for cart page ?

GJC Web Design

better target it with a higher up class or change the class in the cart display
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

MyDesigner

Quote from: GJC Web Design on September 25, 2016, 20:01:06 PM
better target it with a higher up class or change the class in the cart display

If I change the class in the cart display ... how change it ? What file ?
Thanks.

GJC Web Design

\templates\xxxxxx\html\com_virtuemart\cart\default_pricelist.php
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation