PHP Job by smithymobsoft

Hi Hammad,

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 @ 2.97 and one @ 4.84.

The total sales value is $7.81

WIth the Price Tiers for businessID 26, this would mean @ 7.81, 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 @ 2.97 and 50 points allocated for the 4.84 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.

Kemahiran: PHP

Lihat lagi: year 2013, vend, hammad, project sales purchases, job cron api, event based api, 2013 query, urgent sale, urgent christmas, html bug fix project, purchase sale project, project purchase sale, sale value items, christmas look, bug sale, value items sale, project sale purchase, custom history, urgent bug, history sales purchase, query year php, register custom template, quick fix api, template christmas, christmas sales template

Tentang Majikan:
( 134 ulasan ) Ballina, Australia

ID Projek: #4090040

Dianugerahkan kepada:


Hired by the Employer

$80 USD dalam 2 hari
(349 Ulasan)