Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2014
    Posts
    6
    Plugin Contributions
    0

    help question How can I show delivery city and state on the order history page?

    I have been trying all sorts of combinations to get this done but nothing works. Can someone please help me figure out what I need to add to tpl_account_history_default.php in order to display a customer's city and state. Each customer will need to shipped to different cities and states. It would be easier for them to find their orders by city, state or street, city, state.

    Even better would be an order history search mod for customers if you can recommend one.

    Thanks a mill!

    Mel

  2. #2
    Join Date
    Apr 2014
    Posts
    6
    Plugin Contributions
    0

    Idea or Suggestion Re: How can I show delivery city and state on the order history page?

    Solved!! Here is the solution:


    IN:

    includes/modules/pages/account_history/header_php.php

    FIND:

    o.delivery_name,

    ADD:

    o.delivery_city, o.delivery_state,

    FIND:

    $products = $db->Execute($products_query);

    ADD:

    $order_city = $history->fields['delivery_city'];
    $order_state = $history->fields['delivery_state'];

    -------------

    IN:

    includes/templates/YOUR_TEMPLATE/tpl_account_history_default.php

    ADD (format as needed):

    <?php echo '<strong>City: </strong>' . zen_output_string_protected($history['order_city']). ', <strong>State: </strong>' . zen_output_string_protected($history['order_state']) . '<br />'; ?>

 

 

Similar Threads

  1. Can you block a specific CITY within a state from delivery?
    By Sellerz in forum Managing Customers and Orders
    Replies: 2
    Last Post: 7 Jan 2013, 04:39 PM
  2. Replies: 0
    Last Post: 15 Aug 2010, 10:06 AM
  3. Replies: 4
    Last Post: 18 Sep 2009, 11:05 PM
  4. My Order History and Order History Details - how do I get order comments in both?
    By trisha1581 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 29 Nov 2007, 06:37 PM
  5. Show order history on Checkout Success Page
    By justabadguy in forum General Questions
    Replies: 0
    Last Post: 26 Sep 2007, 07:20 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR