Results 1 to 10 of 3052

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,247
    Plugin Contributions
    58

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by lat9 View Post
    I'll put my money on Advanced Shipper. Try changing the store's shipping-method to flat-rate to make sure that there aren't additional template-based issues.
    Disabling adv shipper made no difference and the console isn't reporting any additional errors. Standard Zen Cart checkout is working fine in either case. I am happy to share login creds and site in PM if you want to look.
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,937
    Plugin Contributions
    96

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by mprough View Post
    Disabling adv shipper made no difference and the console isn't reporting any additional errors. Standard Zen Cart checkout is working fine in either case. I am happy to share login creds and site in PM if you want to look.
    Sure, send them on. If you'll install "Display Logs" so that I can 'see' what's going on, I'll only need admin-login credentials.

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,937
    Plugin Contributions
    96

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by lat9 View Post
    Sure, send them on. If you'll install "Display Logs" so that I can 'see' what's going on, I'll only need admin-login credentials.
    The checkout-loop that @mprough reported in post #1693 above was due to the changes made in #1692, which applied the id="OPC" to all order-totals, causing OPC's jQuery to pick up the value of the order's sub-total instead of the total.

    That discrepancy was the cause of the checkout-loop. Here's the correction for the Bootstrap template's /templates/tpl_modules_order_total.php:
    Code:
    <?php
    /**
     * Module Template
     * 
     * BOOTSTRAP v1.0.BETA
     *
     * @package templateSystem
     * @copyright Copyright 2003-2005 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: tpl_modules_order_totals.php 2993 2006-02-08 07:14:52Z birdbrain $
     */
     ?>
    <?php 
    /**
     * Displays order-totals modules' output
     */
      for ($i=0; $i<$size; $i++) { ?>
    <?php
    //-20200718-lat9-Only apply the id="OPC" for the order's total
    $value_parameter =  ($GLOBALS[$class]->code == 'ot_total') ? ' id="OPC"' : '';
    ?>
    
    <tr id="<?php echo str_replace('_', '', $GLOBALS[$class]->code); ?>">
    <td colspan="2" class="text-right">
    <?php echo $GLOBALS[$class]->output[$i]['title']; ?>
    </td>
    <td class="text-left"<?php echo $value_parameter; ?>>
    <?php echo $GLOBALS[$class]->output[$i]['text']; ?>
    </td> 
        </tr>
    <?php } ?>
    If you're using that, you'll also need to change the OPC's order-total selector's configuration as identified in post #1692 above!

 

 

Similar Threads

  1. Set number of products displayed per page (support thread)
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 146
    Last Post: 2 Nov 2023, 12:50 AM
  2. v151 Banners In Main Page - Support Thread
    By stevesh in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Sep 2021, 03:36 PM
  3. v151 Site Map/Page Not Found: Combined [Support Thread]
    By lat9 in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 4 Jan 2016, 02:19 PM
  4. v151 PayPal Express Checkout Using NVP 84.0 [Support Thread]
    By lat9 in forum Addon Payment Modules
    Replies: 32
    Last Post: 28 Dec 2015, 04:54 PM
  5. Checkout Amazon Style -- Support Thread
    By CJPinder in forum All Other Contributions/Addons
    Replies: 72
    Last Post: 13 Apr 2011, 08:18 PM

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