VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: hlt77 on July 08, 2013, 09:04:44 AM

Title: Shopping Cart Discounts
Post by: hlt77 on July 08, 2013, 09:04:44 AM
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
Title: Re: Shopping Cart Discounts
Post by: jenkinhill on July 08, 2013, 10:34:30 AM
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
Title: Re: Shopping Cart Discounts
Post by: hlt77 on July 10, 2013, 10:47:17 AM
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!