News:

Looking for documentation? Take a look on our wiki

Main Menu

Exempt a category from the cart minimum purchase amount.

Started by WebStuff, August 31, 2016, 19:59:06 PM

Previous topic - Next topic

WebStuff

Does anyone know of a plugin or a way to exempt a category or individual products from the minimum cart purchase amount?

Or if someone could point me in the direction of where the code us that triggers the alert box in the cart so I could attempt to circumvent it myself, thanks.

GJC Web Design

function checkPurchaseValue() in the helpers/cart.php

guess you need to hack it there
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

WebStuff

Quote from: GJC Web Design on September 01, 2016, 00:27:24 AM
function checkPurchaseValue() in the helpers/cart.php

guess you need to hack it there
Thanks once again GJC for your help, it's much appreciated.
I managed to add a check to that function for a customfield value which I can add to any product to exempt it from the minimum purchase value restriction and it works as planned.

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