Results 1 to 10 of 3052

Hybrid View

  1. #1
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by lat9 View Post
    Tee-hee!

    The interoperability change that I made to OPC for the Bootstrap (and other templates that re-format the order totals) checks to see what type of "container" each title/value pair is in (div or non-div). If in a div, then the OPC changes assume that the first-child of that contain will contain the total's value; otherwise, the assumption is that the totals' values are in the second-child (the presumed 2nd <td>) within the container.
    Understood,

    My issue is: adding the (required) template-override file for the tpl_modules_opc_shopping_cart.php file works at initial visit to the page, however changing "say" the shipping method, the ajax update doesn't inherit the table styles "width", so it appears to be floating left.

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

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by rbarbour View Post
    Understood,

    My issue is: adding the (required) template-override file for the tpl_modules_opc_shopping_cart.php file works at initial visit to the page, however changing "say" the shipping method, the ajax update doesn't inherit the table styles "width", so it appears to be floating left.
    I'd noticed that, too. I think (but didn't go "deep" enough) that it's because the tpl_modules_order_totals.php update provided by the template uses a colspan="2" for the title, so the column-count (created by tpl_modules_opc_shopping_cart.php) gets out-of-sync.

  3. #3
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by lat9 View Post
    I'd noticed that, too. I think (but didn't go "deep" enough) that it's because the tpl_modules_order_totals.php update provided by the template uses a colspan="2" for the title, so the column-count (created by tpl_modules_opc_shopping_cart.php) gets out-of-sync.
    I'm thinking that instead of the (required) template-override file for the tpl_modules_opc_shopping_cart.php file, adding a check to the template-override tpl_modules_order_totals.php file.

    This will allow for OPC to inherit the stock 'div' layout for use with the ZCA Bootstrap Template, I am not done with the template-overrides for the various OPC pages' formatting but you can see outcome here.

    http://www.zcadditions.com/bootstrap_pro2_tpl_demo

  4. #4
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by rbarbour View Post
    I'm thinking that instead of the (required) template-override file for the tpl_modules_opc_shopping_cart.php file, adding a check to the template-override tpl_modules_order_totals.php file.

    This will allow for OPC to inherit the stock 'div' layout for use with the ZCA Bootstrap Template, I am not done with the template-overrides for the various OPC pages' formatting but you can see outcome here.

    http://www.zcadditions.com/bootstrap_pro2_tpl_demo
    I see you talking about the template-override file for the tpl_modules_opc_shopping_cart.php multiple times, but I could not find it anywhere in the manual. Or am I missing a point here?

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by Design75 View Post
    I see you talking about the template-override file for the tpl_modules_opc_shopping_cart.php multiple times, but I could not find it anywhere in the manual. Or am I missing a point here?
    In the readme's Overview / Operation tab:

    v2.0.0 of One-Page Checkout has been validated with the ZCA Bootstrap Template, v1.0.4. Since that template uses a table-based layout for the order-totals' formatting, you'll need to make a template-override change to includes/templates/template_default/templates/tpl_modules_opc_shopping_cart.php, wrapping the order-totals' output with table tags:
    Code:
    if (MODULE_ORDER_TOTAL_INSTALLED) {
        $row_class = ($last_row_class == 'rowEven') ? 'rowOdd' : 'rowEven';
    //-bof-opc/bootstrap, added <table></table> since the order totals are displayed as table-rows.
    ?>     
            <tr class="<?php echo $row_class; ?>" id="cartOrderTotals">
                <td colspan="<?php echo (count($order->info['tax_groups']) > 1) ? 4 : 3; ?>" id="orderTotalDivs"><table width="100%"><?php $order_total_modules->process (); $order_total_modules->output(); ?></table></td>
            </tr>
    <?php
    //-eof-opc/bootstrap
    }

  6. #6
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: One-Page Checkout [Support Thread]

    Thank, must have missed it
    Quote Originally Posted by lat9 View Post
    In the readme's Overview / Operation tab:

    v2.0.0 of One-Page Checkout has been validated with the ZCA Bootstrap Template, v1.0.4. Since that template uses a table-based layout for the order-totals' formatting, you'll need to make a template-override change to includes/templates/template_default/templates/tpl_modules_opc_shopping_cart.php, wrapping the order-totals' output with table tags:
    Code:
    if (MODULE_ORDER_TOTAL_INSTALLED) {
        $row_class = ($last_row_class == 'rowEven') ? 'rowOdd' : 'rowEven';
    //-bof-opc/bootstrap, added <table></table> since the order totals are displayed as table-rows.
    ?>     
            <tr class="<?php echo $row_class; ?>" id="cartOrderTotals">
                <td colspan="<?php echo (count($order->info['tax_groups']) > 1) ? 4 : 3; ?>" id="orderTotalDivs"><table width="100%"><?php $order_total_modules->process (); $order_total_modules->output(); ?></table></td>
            </tr>
    <?php
    //-eof-opc/bootstrap
    }

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: One-Page Checkout [Support Thread]

    Quote Originally Posted by Design75 View Post
    Thank, must have missed it
    That's easy to do, there are a lot of words!

 

 

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