Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
rbarbour
Maybe I should stick to templates :blush:
Fresh install from both GIT and ZC plugins. Can't confirm order, keep getting:
HTML Code:
Your order's details have changed. Please review the current values and re-submit.
I'm guessing that you're using the ZCA Bootstrap Template:D ... did you create the (required) template-override file for the tpl_modules_opc_shopping_cart.php file?
Re: One-Page Checkout [Support Thread]
Using the combination of OPC and the bootstrap template, I can not see the Terms and Conditions checkbox
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
Design75
Using the combination of OPC and the bootstrap template, I can not see the Terms and Conditions checkbox
Darn it; I thought that I'd added those Bootstrap classes to all the radio and checkbox inputs ... I apparently missed that one.
GitHub issue created: https://github.com/lat9/one_page_checkout/issues/122
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
I'm guessing that you're using the ZCA Bootstrap Template:D ... did you create the (required) template-override file for the tpl_modules_opc_shopping_cart.php file?
Not funny Cindy :hug:
I was altering the layout of tpl_modules_order_totals.php to try something :blush: but seems reversing the order of output throws OPC for a loop......
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
rbarbour
Not funny Cindy :hug:
I was altering the layout of tpl_modules_order_totals.php to try something :blush: but seems reversing the order of output throws OPC for a loop......
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.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
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.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
rbarbour
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.
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
lat9
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
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
rbarbour
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?
Re: One-Page Checkout [Support Thread]
Quote:
Originally Posted by
Design75
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
}