Results 1 to 10 of 1222

Threaded View

  1. #11
    Join Date
    Nov 2008
    Location
    Massachusetts
    Posts
    163
    Plugin Contributions
    0

    Default Re: My Checkout Without Account Mod

    The Order_Status addon adds the page "order_status.php" but it does not - at least as far as I can tell - provide a link to it. So you need to add an "Order Status" link to the menu bar. Note that the link does NOT display if the user is logged in, but that's ok because when they login they automatically get a list of their orders. So this is really for the benefit of customers who did not create an account.

    Here's how to add the link ("custom" is the name of my customized folders):

    You need to edit two files.

    First file: tpl_header.php
    Make a copy of includes/templates/template_default/common/tpl_header.php
    OR, if you have already customized that file, start with your customized version (in my case, that was includes/templates/custom/common/tpl_header.php).

    Find this section of code:
    Code:
    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
        <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
        <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
    <?php }?>
    Then, add this code just BEFORE it:
    Code:
    <!-- custom edit (addition) to add "Order Status"  link to the main navigation if user is not logged in -->
    <?php if (!($_SESSION['customer_id'])) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_ORDER_STATUS, '', 'SSL'); ?>"><?php echo HEADER_TITLE_ORDER_STATUS; ?></a></li>
    <?php }  ?>
    <!-- -->
    Place the edited file into your customized directory (in my case, that was includes/templates/custom/common).

    Second file: header.php
    Make a copy of includes/languages/english/header.php
    OR, if you have already customized that file, start with your customized version (in my case, that was includes/languages/english/custom/header.php).

    Find this section of code:
    Code:
    define('HEADER_TITLE_LOGOFF', 'Log Out');
    define('HEADER_TITLE_LOGIN', 'Log In');
    Add this code directly AFTER it:
    Code:
    // custom edit - addition - to add order status link in menu bar
    define('HEADER_TITLE_ORDER_STATUS', 'Order Status');
    Place the edited file into your customized directory (in my case, that was includes/languages/english/custom).

    Note that the header.php already has a definition for FILENAME_ORDER_STATUS so no edit was needed to define it.
    Last edited by alicia1234; 26 Nov 2008 at 03:23 PM.

 

 

Similar Threads

  1. Checkout without account problem
    By weblasomnath in forum Addon Templates
    Replies: 0
    Last Post: 23 Nov 2010, 02:56 PM
  2. Checkout without account
    By GDOrn in forum All Other Contributions/Addons
    Replies: 194
    Last Post: 14 Sep 2010, 08:05 PM
  3. Fast and Easy Checkout - Checkout Without Account not showing
    By Lee-oh in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 3 Feb 2010, 05:09 PM
  4. question about the checkout without account mod
    By hxkknba in forum Addon Payment Modules
    Replies: 1
    Last Post: 12 Oct 2009, 05:48 PM
  5. Changing checkout flow with Checkout Without Account (COWOA)?
    By pe7er in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 7 Feb 2008, 06:09 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