osCmax v2.5 User Manual
Results 1 to 8 of 8

Coupons in Payment page

This is a discussion on Coupons in Payment page within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; I am running a number of osCMax stores. The latest ones were newly installed from 2.0.25 source. Recently I also ...

      
  1. #1
    New Member
    Join Date
    May 2005
    Location
    Las Vegas, NV
    Posts
    25
    Rep Power
    0


    Cool Coupons in Payment page

    I am running a number of osCMax stores. The latest ones were newly installed from 2.0.25 source.
    Recently I also upgraded the older ones to 2.0.25. Everything seemed to work fine until I ran into a coupon glitch.
    1. The newly installed stores correctly display the coupon entry box.
    2. The older stores show two issues. Half of them show no coupon box at all at checkout time. Even though I did create coupons in the DB.
    3. The other half show a box with the text "TEXT_ENTER_GV_CODE" instead of "Enter redeem code" and in the text box "TEXT_GV_CODE_INPUT_DEFAULT" instead of a blank field.
    Since the software files for all stores are the same I cannot imagine that there would be an issue in the php code. The databases of the older stores have been upgraded a number of times over the past years. I am still puzzled by the fact that there are different results amongst the stores. I also cannot find any entries in the databases that look like being related to this problem.
    After trying a couple of things I ended up installing one store from scratch including a brand new database. After restoring the old db content the error re-appeared.
    Does anyone have a similar experience, or any idea what the source of the issue is??
    Appreciating all input.
    Marinus
    internetShoppes.com

  2. #2
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Lightbulb Re: Coupons in Payment page

    3. The other half show a box with the text "TEXT_ENTER_GV_CODE" instead of "Enter redeem code" and in the text box "TEXT_GV_CODE_INPUT_DEFAULT" instead of a blank field.
    This is a simple indicator that the language files are missing/corrupt - includes/languages/english.php and specific files in the english sub-directory.
    Hosting plans with installation, configuration, contributions, support and maintenance.

  3. #3
    New Member
    Join Date
    May 2005
    Location
    Las Vegas, NV
    Posts
    25
    Rep Power
    0


    Default Re: Coupons in Payment page

    Thank you for your response!!!
    Based on your pointing in the direction of the languages I checked all the files and dates. Could not find any issues there. Also took a new download of the 2.0.25 version and replaced all the files. Same error occurs.
    The only thing that is not new is the database. I suspect there are some discrepancies in the database after multiple upgrades. I see differences in configuration ID's between the stores. Could they be out of sync? Any thoughts on that?
    Marinus
    internetShoppes.com

  4. #4
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Lightbulb Re: Coupons in Payment page

    It may be that the definitions have changed slightly. TEXT_ENTER_GV_CODE seems straightforward enough and a search in configuration for both 2.0.25 and 2.1 shows no result - maybe it was previously defined in the database but not now. This implies that a
    Code:
    DEFINE(TEXT_ENTER_GV_CODE, 'Enter your Gift Voucher Code');
    or similar, is missing in your language files.

    Why not do a fresh install and migrate the data from your multiple upgrade site (if feasible)? Do NOT migrate the configuration table - do a compare within Admin. of the two stores. The configuration table is one that changes frequently.
    Last edited by ridexbuilder; 08-21-2010 at 06:33 AM.
    Hosting plans with installation, configuration, contributions, support and maintenance.

  5. #5
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Default Re: Coupons in Payment page

    Look in catalog/includes/modules/order_total/ot_coupon.php for the code that creates this bit ...

    TEXT_ENTER_GV_CODE ... looks to be the bit you have borked ... I can see this defined in the ot_gv.php file as define('TEXT_ENTER_GV_CODE', 'Enter Redeem Code '); but not sure if this should be in the coupon one as well ...

    Seems to work fine on my demo store ...

    Hope this helps,
    Last edited by pgmarshall; 08-21-2010 at 07:55 AM.
    pgmarshall
    _______________________________

  6. #6
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Talking Re: Coupons in Payment page

    Ahhh, Gift Vouchers don't adhere to the 'standard' - now there's a surprise!
    Hosting plans with installation, configuration, contributions, support and maintenance.

  7. #7
    New Member
    Join Date
    May 2005
    Location
    Las Vegas, NV
    Posts
    25
    Rep Power
    0


    Talking Re: Coupons in Payment page

    Thank you "ridexbuilder". You put me on the right track.
    After a new install from scratch I removed the tables from the new database except the configuration tables. From the backup database I removed the configuration tables and imported the rest in the new database. I then had to input the configuration settings again.
    The coupon issue has disappeared.
    Have not been able to pinpoint the exact cause, but it had to be in the config table. As mentioned, I had noticed different configuration-id's for the same items in the different "old" stores. When recently upgrading the databases I had also seen two cases of duplicate entry errors. There was nothing wrong in the language files, could not be as they were pure vanilla out of the box.
    Anyway I am back in business, except for 7 other stores to get the same treatment.
    Thank you again for the guidance.

    Marinus
    Marinus
    internetShoppes.com

  8. #8
    osCMax Development Team
    ridexbuilder's Avatar
    Join Date
    Jul 2008
    Location
    Haggisland
    Posts
    3,014
    Rep Power
    36


    Thumbs up Re: Coupons in Payment page

    Glad you're fixed.
    Hosting plans with installation, configuration, contributions, support and maintenance.

Similar Threads

  1. discount coupons admin page only saving partial information
    By tunnel7 in forum osCMax v2 Features Discussion
    Replies: 4
    Last Post: 01-03-2010, 04:14 PM
  2. NAB Transact (Hosted Payment Page) Payment Module
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 09-30-2009, 07:00 AM
  3. 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
  4. NAB Transact (Hosted Payment Page) Payment Module
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 01-29-2009, 06:01 AM
  5. St George Bank (Australia) Hosted Payment Page (HPP) payment module
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 10-06-2008, 05:01 PM

Tags for this Thread

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
  •