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.
Printable View
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:
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!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 } ?>
I see 160 odd pages of discussion, can you narrow it down for ae a little bit? is there a link to the answer ?
I have an odd issue and trouble tracking it down.
OPC 2.1.4
Zen Cart 1.5.6c
The order confirmation emails for guest checkout have the billing and shipping address as a single line of text (https://prnt.sc/tczh24). Regular account order confirmation emails appear correctly with each line of the address on it's own line.
I'm having trouble tracking down where this issue might be coming from. I've been tracking down $email_text in /includes/classes/observers/class.checkout_one_observer.php
but not having any luck solving this.
Jim, there have been 86 commits (i.e. code changes) since OPC v2.1.4 was released last September. The various releases are documented here: https://github.com/lat9/one_page_checkout/releases.
You might try applying the change documented here: https://github.com/lat9/one_page_che...af4be9e4aca26e
ZCv1.56c
OPCv2.3.2 (pretty sure still applies in OPC v2.3.3)
A code change request - I think I've got this right.
In the various customer address blocks - store side, the placeholder alert asterisk (ENTRY_STATE_TEXT) is placed inside the state field when it is not a dropdown:
tpl_modules_checkout_new_address.php
tpl_modules_address_book_details.phpCode:echo zen_draw_input_field('state', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_state', '40') . ' id="state" placeholder="' . ENTRY_STATE_TEXT . '"');
not so in tpl_modules_opc_address_block.phpCode:echo zen_draw_input_field('state', zen_get_zone_name($entry->fields['entry_country_id'], $entry->fields['entry_zone_id'], $entry->fields['entry_state']), zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_state', '40') . ' id="state" placeholder="' . ENTRY_STATE_TEXT . '"');
The placeholder is outside of the state field, I think it could do with being inside it. I've dabbled but can't seem to add the placeholder after the state_field_id without breaking it.Code:echo zen_draw_input_field($state_field_name, $address['state'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_state', '40') . " id=\"$state_field_id\"");
if (zen_not_null(ENTRY_STATE_TEXT)) {
echo '<span class="alert">' . ENTRY_STATE_TEXT . '</span>';
}
Edit: forgot to include tpl_modules_create_account.php in my examples
I feel stupid asking this... but what file is missing when the checkout page only displays stuff like the following instead of the actual text. I have triple checked the install - concentrating on the /english files - and everything looks fine to me.......
Home :: NAVBAR_TITLE_1 :: NAVBAR_TITLE_2
HEADING_TITLE
TEXT_CHECKOUT_ONE_TOP_INSTRUCTIONS
TITLE_BILLING_SHIPPING_ADDRESS
Using latest 1.3.3 and this shows on
https://xxxxxxxxxxxxxx.com/catalog/i...e=checkout_one