Can Anyone Help Me Make a Simple "Credit Account" Mod?
I have looked about any haven’t found anything basic that seems to do this. There is a mod that has the functionality but it changes way more stuff than I need.
Basically I want to develop a simple mod to the customers info page within the admin, whereby I can have an input field with a go button which when you enter a value in and hit go it adds that value to the customers GV balance and (not essential) but prefereably emails the customer to alert them that credit has been added to their account.
The reason for this is that I would like to apply credit rather than emailing a GV code for the customer to fill in and additionally be able select the customer based on their order id.
So a customer places an order. I then want to add credit to the account which placed order #1234. So I go to order #1234, select the customer details, which brings up the customers.php with the customer highlighted, then on the right there is the box that has the following:
[EDIT] [DELETE]
[ORDERS] [EMAIL]
Account Created: 11/26/2012
Last Modified: 12/30/2012
Last Logon: 01/07/2013
Number of Logons: 10
GV Balance £833.64
Number of Orders: 6
Last Order: 01/07/2013
Total: £0.00
Country: United Kingdom
Number of Reviews: 0
Customer Referral
1st Discount Coupon
What I would like to do is add above the GV Balance £833.64 something like this:
Add Credit [INTPUT FIELD] [GO BUTTON]
Then, once it’s clicked the GV Balance will now be updated with the new balance.
I find having to find the email address of a customer from their order, then going to gv_mail.php then trying to find that email on the drop down list is a bit of a pig.
If there is a mod that does exactly this can someone point me in the right direction?
If not, then does anyone know a simple way this can be achieved? is it a simple case of adding switch cases to the customers page code to run the db query?
Ta,
Phil Rogers
A problem shared is a problem solved.
Bookmarks