Results 1 to 5 of 5

discount coupons admin page only saving partial information

This is a discussion on discount coupons admin page only saving partial information within the osCMax v2 Features Discussion forums, part of the osCmax v2.0 Forums category; Hello. I'm using OSCMAX v2.0 RC4 and when I enter a discount coupon from the admin section it shows everything ...

      
  1. #1
    New Member
    Join Date
    May 2005
    Location
    Easthampton, MA
    Posts
    28
    Rep Power
    0


    Default discount coupons admin page only saving partial information

    Hello. I'm using OSCMAX v2.0 RC4 and when I enter a discount coupon from the admin section it shows everything correct on the preview page but when i click update it looses some of the information (coupon name, etc.) and resets the dates back to the default. Has anyone experienced this before and if so what resolution did you come up with?

    Thanks in advance.

  2. #2
    Member
    Join Date
    Jul 2006
    Location
    Highland Park, New Jersey
    Posts
    51
    Rep Power
    0


    Default Re: discount coupons admin page only saving partial information

    I found that I needed to get certain values from $HTTP_POST_VARS, since register_globals is off.
    So, I made the following changes. Please back up before making any changes--I can't guarantee that these changes will work for you exactly as-is.
    1) On approximately line 662, replace
    PHP Code:
             <td align="left"><?php echo tep_draw_input_field('coupon_name[' $languages[$i]['id'] . ']'$coupon_name[$language_id]) . '&nbsp;' tep_image(DIR_WS_CATALOG_LANGUAGES $languages[$i]['directory'] . '/images/' $languages[$i]['image'], $languages[$i]['name']); ?></td>
    with
    PHP Code:
             <td align="left"><?php echo tep_draw_input_field('coupon_name[' $languages[$i]['id'] . ']'$HTTP_POST_VARS['coupon_name'][$language_id]) . '&nbsp;' tep_image(DIR_WS_CATALOG_LANGUAGES $languages[$i]['directory'] . '/images/' $languages[$i]['image'], $languages[$i]['name']); ?></td>
    2) On approximately line 676, replace
    PHP Code:
             <td align="left" valign="top"><?php echo tep_draw_textarea_field('coupon_desc[' $languages[$i]['id'] . ']','physical','24','3'$coupon_desc[$language_id]) . '&nbsp;' tep_image(DIR_WS_CATALOG_LANGUAGES $languages[$i]['directory'] . '/images/' $languages[$i]['image'], $languages[$i]['name']); ?></td>
    with
    PHP Code:
             <td align="left" valign="top"><?php echo tep_draw_textarea_field('coupon_desc[' $languages[$i]['id'] . ']','physical','24','3'$HTTP_POST_VARS['coupon_desc'][$language_id]) . '&nbsp;' tep_image(DIR_WS_CATALOG_LANGUAGES $languages[$i]['directory'] . '/images/' $languages[$i]['image'], $languages[$i]['name']); ?></td>
    I hope this helps!
    Regards,
    -Lori-
    Last edited by jpf; 07-26-2009 at 04:36 PM. Reason: Added BBCode for readblity

  3. #3
    Active Member
    Join Date
    Jun 2008
    Posts
    195
    Rep Power
    5


    Default Re: discount coupons admin page only saving partial information

    OK, finally get back to a 'coupon issue"

    a) was sent here by Michael
    MantisBT

    b) I am now in 2.0.4

    c) The above...mentions no FILE NAME at all.

    d) The only dumb question....is the one never asked..so, I am asking?



    Thanks !!

  4. #4
    Member
    Join Date
    Jul 2006
    Location
    Highland Park, New Jersey
    Posts
    51
    Rep Power
    0


    Default Re: discount coupons admin page only saving partial information

    This was in the file catalog/admin/coupon_admin.php .

  5. #5
    Active Member
    Join Date
    Jun 2008
    Posts
    195
    Rep Power
    5


    Default Re: discount coupons admin page only saving partial information

    Lori, great...and thank you very much for the reply...and will give it a whirl once I herar back from Michael...of the bug that seems to be happening in 2.0.4.

    It's a fresh install...nothing as for code changed yet...and I don't plan on messing with anything util I hear back from the BossMan on this one..

    Would like to see issues all cleaned up in 2.0.4 isntead of getting Gray hair awaiting releases...<smile> or playing SVn for now.

    Thanks again!!

    Jim

Similar Threads

  1. Gift Vouchers/Discount Coupons not showing in order total page
    By renrom in forum osCmax v2 Installation issues
    Replies: 0
    Last Post: 06-01-2009, 02:15 PM
  2. Discount Coupons and Free shipping
    By mrgtih2 in forum osCMax v2 Features Discussion
    Replies: 0
    Last Post: 05-12-2008, 11:41 AM
  3. Discount Coupons
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 05-03-2007, 05:41 PM
  4. Discount Coupons by State
    By Bassmaster in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 02-28-2007, 10:16 PM
  5. Discount Coupons
    By NickW in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 03-26-2005, 10:59 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
  •