Page 1 of 5 123 ... LastLast
Results 1 to 10 of 44
  1. #1
    Join Date
    Jun 2006
    Location
    Michigan
    Posts
    196
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Jun 2003
    Posts
    33,825
    Plugin Contributions
    0

    Default 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.

  3. #3
    Join Date
    Jun 2006
    Location
    Michigan
    Posts
    196
    Plugin Contributions
    0

    Default 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.

  4. #4
    Join Date
    Mar 2004
    Posts
    16,019
    Plugin Contributions
    5

    Default 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

  5. #5
    Join Date
    Jun 2006
    Location
    Michigan
    Posts
    196
    Plugin Contributions
    0

    Default 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.

  6. #6
    Join Date
    Jun 2006
    Location
    Michigan
    Posts
    196
    Plugin Contributions
    0

    Default 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.

  7. #7
    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!!!!!) :)

  8. #8
    Join Date
    May 2006
    Posts
    43
    Plugin Contributions
    0

    Default 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.

  9. #9
    Join Date
    Mar 2005
    Posts
    28
    Plugin Contributions
    0

    Default 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.

  10. #10
    Join Date
    Jun 2006
    Location
    Michigan
    Posts
    196
    Plugin Contributions
    0

    Default 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.

 

 
Page 1 of 5 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •