Hope you had a good new year and christmas period.
Need a quick but urgent bug fix to the gravy vendcronjob.
/public_html/backend/protected/template/general/[url removed, login to view]
[url removed, login to view]
At the moment it looks like the vend cronjob is getting the total price of each individual item and then allocating points to members based on the individual sale price of each item.
The cronjob should in fact allocate points based upon the sale total, so the query should be based on the total sale value not the value of the individual items.
To give you an example.
I tested a member, memberID 80 with businessID 26.
In vend (under a test account) I made two purchases one @ [url removed, login to view] and one @ 4.84.
The total sales value is $[url removed, login to view]
WIth the Price Tiers for businessID 26, this would mean @ [url removed, login to view], 50 points should be allocated with this transaction.
Instead 60 points was allocated to the transaction which meant, that 10 points was allocated for the first purchase @ [url removed, login to view] and 50 points allocated for the [url removed, login to view] purchase.
When instead the whole transaction should have been 50 points.
I think it's just the wrong vend value is being used in the cron job.
As well at this, it also adds an extra spend event in the member history, which it should not do, as it's only one sale.
If you could have a look at this ASAP, it'd be appreciated.
If you need any further information let me know.