News:

Support the VirtueMart project and become a member

Main Menu

Shopping Cart Discounts

Started by hlt77, July 08, 2013, 09:04:44 AM

Previous topic - Next topic

hlt77

Hi,

I have certain discount rules that i would like to put in place.  All these rules are dependent on the total price of the order, and i want to create these discounts before the order is written into the database.  Can anyone help with where I should be editing the codes?  I do not wish to use any modules or plugins.

I am using VM2/J2.5

jenkinhill

Discounts are applied before writing to the database, as the cart content is held in the session, not the db, until the order is placed.

We do not support hacking the core files. That is why plugins are recommended to change core functions.

http://forum.virtuemart.net/index.php?topic=79799.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

hlt77

Thank you for your reply jenkinhill - I am using J 2.5.7, VM 2.0.20b, PHP 5.3.5.

Are there any recommended plugins for VM2 payments?  I have 2 requirements

1. point distribution to shoppers who spend a minimum of $x
2. automatic % discount when a shopper hits a specified order total/number of points

Thanks!