Page 5 of 5 FirstFirst ... 345
Results 41 to 42 of 42
  1. #41
    Join Date
    Nov 2004
    Posts
    364
    Plugin Contributions
    0

    Default Re: Your Store Gift Cards (plastic, etc) - anyone using this yet?

    Quote Originally Posted by kwright View Post
    Greetings,
    Hopefully folks are still watching this thread!

    Successfully installed on 1.5.4 (localhost) using default settings. After running some test orders, I don't see the gift card numbers, masked or unmasked, on the checkout page or admin order invoice as described in the giftcard_README.txt.

    4. Allows for masking of numbers on checkout pages and invoices
    5. Allows for displaying any number of digits (not just 4) in masks

    Does anyone know if this part is working?

    Thanks
    OK, answering my own question!

    Yes, it's broke. If you use spaces between the card numbers as mention under the gift card section on the payment page (Hyphens or spaces optional), it breaks the card number masking code and nothing will displayed.

    Here's the fix:

    FIND IN includes/modules/order_total/ot_giftcard.php
    Code:
    $pattern = '/^([0-9,a-z,A-Z- ]+)([0-9,a-z,A-Z-]{'.$this->mask_reveal.'})$/';
    REPLACE WITH (add a space after the second Z-)
    Code:
    $pattern = '/^([0-9,a-z,A-Z- ]+)([0-9,a-z,A-Z- ]{'.$this->mask_reveal.'})$/';
    Here's another tip. By default, the code will mask the first digits. If you would rather mask the last digits (our gift cards have cvv numbers as the last digits), make the following code changes.

    FIND IN includes/modules/order_total/ot_giftcard.php
    Code:
    $newformat = preg_replace('([0-9,a-z,A-Z])', $this->mask_char, $matches[1]).$matches[2];
    REPLACE WITH
    Code:
    $newformat = $matches[1].preg_replace('([0-9,a-z,A-Z])', $this->mask_char, $matches[2]);
    That's all for now!
    Experience is what you get when you don’t get what you want…

  2. #42
    Join Date
    Apr 2012
    Location
    Los Angeles, CA
    Posts
    185
    Plugin Contributions
    2

    Default Re: Your Store Gift Cards (plastic, etc) - anyone using this yet?

    Thanks for the update.

 

 
Page 5 of 5 FirstFirst ... 345

Similar Threads

  1. EZ Populate not working yet
    By I wish I could in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 24 Mar 2011, 03:09 PM
  2. Not a Zen user yet - couple questions: How user friendly? UPS & Paypal etc
    By eseesnad in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 11 Aug 2009, 08:31 PM
  3. Selling Plastic Gift Certificates
    By vandahm in forum General Questions
    Replies: 3
    Last Post: 17 Jan 2007, 09:13 PM
  4. HOW TO set up Gift Wrapping for your store
    By swguy in forum All Other Contributions/Addons
    Replies: 8
    Last Post: 12 Dec 2006, 11:19 AM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR