Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2007
    Location
    Safford, AZ
    Posts
    323
    Plugin Contributions
    0

    Default Redemption Code Field Length

    How would I change the Redemption Code field size? I believe it's currently at 18 characters but I would like to make it larger, so it displays all of the code a customer is typing. I realize it will hold the entire code but it only shows 18 characters then it starts scrolling to the right as the customer types.

    I figure it's populated by something in the database but I am not able to find it.

    Thank you
    Steve
    Zen cart version: 1.3.9h

  2. #2
    Join Date
    Oct 2007
    Location
    Safford, AZ
    Posts
    323
    Plugin Contributions
    0

    Default Re: Redemption Code Field Length

    There's got to be somebody that knows how to increase the field? Please please
    Steve
    Zen cart version: 1.3.9h

  3. #3
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Redemption Code Field Length

    In the /includes/modules/order_total/ folder, edit either ot_coupon.php or ot_gv.php (depending on whether you're talking about a coupon code or a gv code) and change this:
    Code:
        'field' => zen_draw_input_field('dc_redeem_code', '', 'id="disc-' . $this->code . '" onkeyup="submitFunction(0,0)"'),
    to this (just adding the size parameter):
    Code:
        'field' => zen_draw_input_field('dc_redeem_code', '', 'id="disc-' . $this->code . '" onkeyup="submitFunction(0,0)" size="24"'),
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Oct 2007
    Location
    Safford, AZ
    Posts
    323
    Plugin Contributions
    0

    Default Re: Redemption Code Field Length

    Thank you DrByte. That worked perfect for both of those fields when they show up during Checkout. I would also like to change the size of the field on the gv_faq page. I looked in the code but I didn't see where it can be changed. If you have that info, that would be awesome.

    Thanks
    Steve
    Zen cart version: 1.3.9h

  5. #5
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Redemption Code Field Length

    Same concept. Find the template used for the gv_faq page. Find the zen_draw_input() reference for the redemption code, and add the new parameter.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Oct 2007
    Location
    Safford, AZ
    Posts
    323
    Plugin Contributions
    0

    Default Re: Redemption Code Field Length

    That worked perfect! I copied the tpl_gv_faq_default.php from the /includes/templates/template_default/templates/ folder into my /includes/templates/cherry_zen/templates/ folder then did the edit on it. I noticed it already had the size parameter of 18 on it. So I just increased it to 28, saved it and ... YEA!

    Thank you!
    Steve
    Zen cart version: 1.3.9h

 

 

Similar Threads

  1. Redemption Code Prompt
    By CustomBooks in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 16 Jan 2011, 08:52 PM
  2. GC redemption code
    By 2scrappychixdesigns in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 4
    Last Post: 13 Dec 2006, 03:21 AM
  3. No Redemption Code in Email
    By urbanfarmer in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 15
    Last Post: 26 May 2006, 12:53 AM

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