Results 1 to 2 of 2

Bugfix 85-checkout_shipping_address checkout_payment_address

This is a discussion on Bugfix 85-checkout_shipping_address checkout_payment_address within the osCMax v2 Features Discussion forums, part of the osCmax v2.0 Forums category; As Michael says: "The attached file fixes this problem for both checkout_shipping_address and checkout_payment_address. There was a misplaced brace in ...

      
  1. #1
    Member
    Join Date
    Jul 2005
    Posts
    91
    Rep Power
    0


    Default Bugfix 85-checkout_shipping_address checkout_payment_address

    As Michael says: "The attached file fixes this problem for both checkout_shipping_address and checkout_payment_address. There was a misplaced brace in the code.

    The file to edit is /catalog/includes/modules/checkout_new_address.php"


    I couldn't get the fix file from the BugTracker, so here is the fixed code regarding the state field:

    <?php
    if (ACCOUNT_STATE == 'true') {
    ?>
    <tr>
    <td class="main"><?php echo ENTRY_STATE; ?></td>
    <td class="main">
    <?php
    // BOF: MOD - Country-State Selector
    $zones_array = array();
    $zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = " . $country . " order by zone_name");
    while ($zones_values = tep_db_fetch_array($zones_query)) {
    $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']); }
    if (count($zones_array) > 0) {
    echo tep_draw_pull_down_menu('state', $zones_array);
    } else {
    echo tep_draw_input_field('state');
    }
    // EOF: MOD - Country-State Selector

    if (tep_not_null(ENTRY_STATE_TEXT)) echo ' <span class="inputRequirement">' . ENTRY_STATE_TEXT;
    ?>
    </td>
    </tr>
    <?php
    }
    ?>

  2. #2
    Lurker
    Join Date
    Jan 2005
    Posts
    1
    Rep Power
    0


    Default RE: Bugfix 85-checkout_shipping_address checkout_payment_add

    Thank you. This is great.

Similar Threads

  1. Error on Checkout_shipping_address page
    By Christy in forum osCmax v2 Installation issues
    Replies: 0
    Last Post: 12-18-2005, 09:46 AM
  2. Categories.php bugfix for larger stores
    By gamefreak7 in forum osCmax v2 Installation issues
    Replies: 0
    Last Post: 08-05-2005, 10:32 PM
  3. catalog/checkout_shipping_address.php isn't loading
    By gheffron in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 05-13-2004, 12:35 PM
  4. [BugFix] v1.5 Category Descriptions Bug
    By michael_s in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 09-25-2003, 11:50 PM
  5. [BugFix]Change Currenices From product_info.php failing
    By michael_s in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 09-06-2003, 12:55 PM

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
  •