Forums / Addon Payment Modules / Need Gift Card module

Need Gift Card module

Locked

Views: 16,161

Results 1 to 20 of 44
This thread is locked. New replies are disabled.
7 Jun 2006, 4:18 PM
#1
madk avatar

madk

Zen Follower

Join Date:
Jun 2006
Location:
Michigan
Posts:
162
Plugin Contributions:
0

Need Gift Card module

I'm pretty new to Zen Cart as I just took over a site using it. I have a to-do list about a mile long and will be learning as I go. One of the 1st things I need to do is to find or make a module that'll accept our retail stores gift cards. The card #s are 16 digits and always start with the prefix 6019. There is no experation date or anything like that.

I would like it to be handled just how our CCs are. Where the beginning and ending digits are stored with the order and the middle digits are sent to us through email. That way we can just do the verification here.

Are there any premade modules out there that'll handle this for me? I'm going to poke around with the default CC module and see if it is possible to edit that but I would much rather find a premade one.

If anyone can help I would appreciate it. Thanks.

MDK

8 Jun 2006, 12:02 AM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,684
Plugin Contributions:
0

Re: Need Gift Card module

I do not think anyone has created a Gift Card Module yet. My best suggestion would be the stock CC Module - You will either need to remove the CC number verification (mod10) or add the correct algorythm to validate your Gift Cards.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

9 Jun 2006, 5:05 AM
#3
madk avatar

madk

Zen Follower

Join Date:
Jun 2006
Location:
Michigan
Posts:
162
Plugin Contributions:
0

Re: Need Gift Card module

I'm going to dive into this when I get back to the office on monday. I can't find much data on these payment modules though. If someone could point me towards some good resources that'd be great. Thanks.

9 Jun 2006, 5:09 AM
#4
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Need Gift Card module

the only resources are the modes them selves,
I would suggest using the stock CC module...

Your best bet for a custom job

Zen cart PCI compliant Hosting

15 Jun 2006, 4:36 PM
#5
madk avatar

madk

Zen Follower

Join Date:
Jun 2006
Location:
Michigan
Posts:
162
Plugin Contributions:
0

Re: Need Gift Card module

Okay I finally sunk my teeth into this...

Correct me if I am wrong but the there are 3 files required for a module:

CC example would be:

includes/languages/english/modules/payment/cc.php
includes/modules/payment/cc.php
includes/classes/cc_validation.php

I've done some basic editing and resaved these files as giftcard.php etc. The giftcard modules shows up in modules in the admin panel but when I click install...nothing happens. I'm not quite sure what to do here. All I have edited so far was the validation file and added my prefix to the list of possible cards.

21 Jun 2006, 6:59 PM
#6
madk avatar

madk

Zen Follower

Join Date:
Jun 2006
Location:
Michigan
Posts:
162
Plugin Contributions:
0

Re: Need Gift Card module

I finished up this module and got everything working. If anyone requests it I will clean up my code and post it here.

As of right now it is defaulted to only accept our cards with our prefix and fixed length but that could easily be changed with the addition of a few variables.

16 Jul 2006, 2:54 PM
#7
djkoko avatar

djkoko

New Zenner

Join Date:
Mar 2005
Posts:
28
Plugin Contributions:
0

Re: Need Gift Card module

Yes I think there is lots of request for it. Also as "Store Credit" as well as you can see in this thread:

http://www.zen-cart.com/forum/showthread.php?t=37339

If you can do one for "Store Credit" as well I would be VERY happy to use it and to help out with whatever mod of it I can. (limited code knowledge but I'll try!!!!!) :)

18 Jul 2006, 11:25 PM
#8
iwebgeek avatar

iwebgeek

New Zenner

Join Date:
May 2006
Posts:
43
Plugin Contributions:
0

Re: Need Gift Card module

Has there been any improvement on this? Our retail store offers credit accounts to our contractors and frequent customers, and I'd like to be able to also offer them access to their credits online as well.

19 Jul 2006, 12:17 PM
#9
djkoko avatar

djkoko

New Zenner

Join Date:
Mar 2005
Posts:
28
Plugin Contributions:
0

Re: Need Gift Card module

I will have something within the next few days. So far all I did was take the 3 files from above and changed any "cc" or "CC" to "sc' and "SC". Changed "Credit Card" to "Store Credit". I have a few other changes to make and then I'll need a guinea pig to test it on. Any takers???? :)

From what I'm seeing so far, I don't think this is going to work like I wanted it to. I'm still thinking the Gift Certificate Module is more the route for modification to Store Credit than this one. Let's see how the mod goes first and if it does what I want it to do.

19 Jul 2006, 2:11 PM
#10
madk avatar

madk

Zen Follower

Join Date:
Jun 2006
Location:
Michigan
Posts:
162
Plugin Contributions:
0

Re: Need Gift Card module

Sorry for the delay in updates here...

Since I was new to Zen when I started working on this module I had no idea that I was working on an old version of Zen. I've since taken the time to upgrade and now the module does not function at all.

All I did was modify the files and remove any type of Experation date, CVV and name. i also rewrote the validation function so that it would just check for the correct numbers.

I'm going to look back into it today and try to figure out how Zen handles transactions. It seems like an overly complicated design.

I'm going to dig deep though. If we want to work together let me know and we can share each others works as I think this is a much needed module.

19 Jul 2006, 3:27 PM
#11
madk avatar

madk

Zen Follower

Join Date:
Jun 2006
Location:
Michigan
Posts:
162
Plugin Contributions:
0

Re: Need Gift Card module

Okay I have my giftcard module is working...

but for some reason when I have it installed my CC modules doesn't work. No matter what # I enter it says it is invalid. I uninstall the giftcard module and bam...it works again.

Not a clue as to what is going on right now as they aren't sharing any of the same classes/functions/files.

19 Jul 2006, 4:04 PM
#12
madk avatar

madk

Zen Follower

Join Date:
Jun 2006
Location:
Michigan
Posts:
162
Plugin Contributions:
0

Re: Need Gift Card module

After about an hour of work I figured out why it was conflicting with the credit card module. So problem 1 is solved.

I am just releasing these files to help move development along. I would not recommend using them yet. As of now they are coded to only work with the prefix 6019 which is what my store uses. I'd like to create a wishlist here and slowly start working on those features. I'll start is so feel free to add.

Download:

http://www.beadhaven.com/giftcard.rar

Wishlist:

  1. Custom card length.
  2. Custom card prefix and/or format.
  3. Ability to split payment between giftcard and credit.
19 Jul 2006, 4:31 PM
#13
madk avatar

madk

Zen Follower

Join Date:
Jun 2006
Location:
Michigan
Posts:
162
Plugin Contributions:
0

Re: Need Gift Card module

Updated Download:

http://www.beadhaven.com/giftcard.rar

Wishlist:

  1. Custom card length. -DONE-
  2. Custom card prefix and/or format.
  3. Ability to split payment between giftcard and credit.

I'm not sure how apllicable it would be to code a way to check for a custom format. Since giftcards all have their own format. It seems the best way would to probably check for just length. Please discuss.

This module still hasn't been tested fully so please use at your own risk.

19 Jul 2006, 4:51 PM
#14
madk avatar

madk

Zen Follower

Join Date:
Jun 2006
Location:
Michigan
Posts:
162
Plugin Contributions:
0

Re: Need Gift Card module

Updated Download:
http://www.beadhaven.com/giftcard.rar

Wishlist:

  1. Ability to split payment between giftcard and credit.

Updates:

  1. Removed my custom prefix. Now anyone can test/use the module.
  2. Added a user defined card length in admin/modules/payment/giftcard.
  3. Added a user defined card name in admin/modules/payment/giftcard.
  4. Cleaned up the code a bit. There are still a few output errors.
20 Jul 2006, 3:27 AM
#15
djkoko avatar

djkoko

New Zenner

Join Date:
Mar 2005
Posts:
28
Plugin Contributions:
0

Re: Need Gift Card module

Ok I installed. Seems to be working ok I think. HOW do you issue someone a $ amount and number and it doesn't go over the limit.

20 Jul 2006, 3:32 AM
#16
djkoko avatar

djkoko

New Zenner

Join Date:
Mar 2005
Posts:
28
Plugin Contributions:
0

Re: Need Gift Card module

Whooops....Must be missing something. I placed and order and entered 12345678 and my order was complete!

20 Jul 2006, 2:50 PM
#17
madk avatar

madk

Zen Follower

Join Date:
Jun 2006
Location:
Michigan
Posts:
162
Plugin Contributions:
0

Re: Need Gift Card module

djkoko:

Ok I installed. Seems to be working ok I think. HOW do you issue someone a $ amount and number and it doesn't go over the limit.

I am confused as to what you mean by this question...

This is a payment module. That being said, it allows store owners to accept a custom gift card the same way you would accept a credit card. I designed it because my store is based arround an established retail store. We have been custom gift cards that our credit card merchant offers for years. It only seemed right to allow customers to use these online as well as in the retail store.

It looks to me like you are looking for some sort of Store Credit module where a customer can have credit applied to their account etc. Unfortunately that isn't what this mod is.

Whooops....Must be missing something. I placed and order and entered 12345678 and my order was complete!

What was your card length set to?

20 Jul 2006, 5:20 PM
#18
iwebgeek avatar

iwebgeek

New Zenner

Join Date:
May 2006
Posts:
43
Plugin Contributions:
0

Re: Need Gift Card module

djkoko:

I will have something within the next few days. So far all I did was take the 3 files from above and changed any "cc" or "CC" to "sc' and "SC". Changed "Credit Card" to "Store Credit". I have a few other changes to make and then I'll need a guinea pig to test it on. Any takers???? :)

I would volunteer. :) My store isn't live yet, so it's pretty safe to conduct wild and untold experiments on it. hehe... Let me know when you're ready to try it out.

20 Jul 2006, 10:32 PM
#19
djkoko avatar

djkoko

New Zenner

Join Date:
Mar 2005
Posts:
28
Plugin Contributions:
0

Re: Need Gift Card module

madk:

It looks to me like you are looking for some sort of Store Credit module where a customer can have credit applied to their account etc. Unfortunately that isn't what this mod is.

Correct.
If you check out my orginal post on "Store Credit" I was led to this thread thinking this was what I was looking for.
My kid & I have modified the "GV" package for Store Credit and SO FAR, SO GOOD. I'm using it now live BUT i don't not have a Gift Certificate package now. I need to get it where they can both work together in the same store. We are getting close and then we will need a "Guinea Pig" for it though since I'm worried there is a slight chance of taking my site down for a few hours. I can't afford that!! :) I'm going to go back to my orginal thread here:

http://www.zen-cart.com/forum/showthread.php?t=37339

Thanks thou Madk!

21 Jul 2006, 5:30 PM
#20
iwebgeek avatar

iwebgeek

New Zenner

Join Date:
May 2006
Posts:
43
Plugin Contributions:
0

Re: Need Gift Card module

I'm actually looking for a way to give a certain individual or company a pre-set amount of credit they can spend per month. I will manually re-set this every time they make a payment towards paying the balance. So basically what I want is something they can select at checkout that is like "Use your store credit towards this purchase?" And they can use that instead of paying through CC or COD.