News:

Support the VirtueMart project and become a member

Main Menu

Disable/Remove Discount form cart

Started by slycrespo, September 30, 2016, 16:35:58 PM

Previous topic - Next topic

slycrespo

Hello!
How can I remove or disable the Discount from shopping cart? I'm using VirtueMart 3.0.12 and can't find this in the settings.. Please help!


jenkinhill

Looks like you are using template overrides already so should probably edit templates/[yourJoomlaTemplate]/html/com_virtuemart/cart/default_pricelist.php

Or maybe hide using css - use Firebug to check this.  http://forum.virtuemart.net/index.php?topic=116620.0

VM3.0.12 is old, you should probably be using at least VM3.0.16 by now. http://dev.virtuemart.net/projects/virtuemart/files
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

slycrespo

I don't know which part of the code should I edit in: templates/[yourJoomlaTemplate]/html/com_virtuemart/cart/default_pricelist.php
And if I update virtuemart to the newer version, does  it have the settings for that (disabling discount)?

jenkinhill

I have no idea what you should remove in your override because I do not know how it is coded. But this is the code in the VM default default_pricelist.php template.

<?php echo "<span  class='priceColor2'>" . $this->currencyDisplay->createPriceDiv ('billDiscountAmount', '', $this->cart->cartPrices['billDiscountAmount'], FALSE) . "</span>" ?>

Do you actually offer discount in your store to be charged on the bill total? If not then unpublish the relevant tax/calculation rule. Then the line will not appear.

Version updates are made for a reason. For example to fix security issues or bugs. Importantly current Joomla version is 3.6.2 and emails will not be sent on checkout with  J! versions after 3.6.1 and your old VM version.  See http://forum.virtuemart.net/index.php?topic=118683.0
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

slycrespo

"If not then unpublish the relevant tax/calculation rule. Then the line will not appear."  ---> this was the reason. Thank you werry much!

GJC Web Design

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

jenkinhill

I am guessing a quick install package.....
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

prob .. but hard to think of the reasoning behind configuring discounts in a quickbreak install  :(
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