Gift Certificate Mod Question

This is a long shot, but maybe someone is familiar with the Gift Certificate addon and has some insight.



I have a project which requires that each pre-registered user is assigned a gift certificate. I need to alter the login process to automatically add their gift certificate to the cart - as if they had entered their GC code into the gift certificate field on View Cart page.



My plan is to manually create gift certificates in the database table and use each user's ID as the gift_cert_code.



I've looked at the code in /app/addons/gift_certificates/func.php but I can't identify which function adds the GC to the cart.



(this is 4.0.3)



thanks,

Glen

Why do you want to add the GC to the cart at login (before they've added anything)? Wouldn't it make more sense to do it as a 'post controller' so that when they add an item to the cart that you then add the gift_certificate?



I would also think it would be much easier to manage to use a coupon code with a 'use once per customer" attribute. Coupons are part of the promotion sub-system and not an addon.

Fair questions - First, this is not a consumer storefront. Instead, this is a employee uniform ordering system. I am investigating the use of the existing gift certificate functionality as a “spending allowance” system. Every employee get an annual allowance. Adding the employee's gift certificate upon add-item-to-cart is acceptable, but I also need to display the gift certificate balance persistently as the employee browses.



As far as I understand, coupons don't carry a balance - so those won't work for my project. Reward Points does carry a balance, but includes a bunch of other interface elements (“price in points”, etc.) that just gets too messy when trying to mold into the functionality I need.



thanks,

Glen

Reward points any good to you?

Hi John,



No, Reward Points add the “price in points” all over the place. I'm hoping to create a simpler user experience. Basically, this would be a “Store Credit” system.



I had a custom addon written way back in 2.1.4 to this for a similar project. I dug up that code and am dusting it off. Converting 2.x plugins to 4.x doesn't look like it will be fun…



thanks,

Glen

[quote name='2020' timestamp='1390983754' post='176263']

Hi John,



No, Reward Points add the “price in points” all over the place. I'm hoping to create a simpler user experience. Basically, this would be a “Store Credit” system.



I had a custom addon written way back in 2.1.4 to this for a similar project. I dug up that code and am dusting it off. Converting 2.x plugins to 4.x doesn't look like it will be fun…



thanks,

Glen

[/quote]



Am interested in any finding solutions to this. We currently use a custom built site .asp for some of our contract customers that use the uniform ordering system as you describe but would like to be able to change them all over to our CS sites.

Can jump in with you on this if it helps for a new version.



john

Assuming you issue gift certificates to employees and that those employees have some identity within the system, you could always create a small addon that will check wither a GC is valid (I.e. has a balance) and would apply it to an employee's purchase when they enter checkout as a registered user.



If they are not registered users, then you would have to manage email address → GC relationships or other relation.



Clarifying the usage definitely helps clarify the problem.