If this was an order placed by a guest, there's not address-book record created ... because they're a guest.
If this was an order placed by a guest, there's not address-book record created ... because they're a guest.
My store does not allow guest checkout. Customer need to create an account in order to checkout.
I also notice the following:
If I log in as a customer with email/password (i.e. returning customer or new created account), then add a product to my cart. After going to checkout and go to edit shipping address, there is no "add to address book" box being displayed.
Hello,
I am using this mod in conjunction with the multi-site module. I am hoping to have a single one page checkout site for several of my websites. What edits would I need to make so that when the customer selects "checkout", be it from the shopping cart or other pages, that they are redirected to my designated site for checking out? I will be including the customer zen-id with the url as to carry over the cart details.
Thank you kindly.
Actually I think I have found a better solution. I did not realize that with the payment module of my choosing that there was an additional "Review Order" page before confirmation. I was able to redirect the links leading to this page by editing the following file:
public_html/includes/templates/template_default/templates/tpl_modules_opc_submit_block.php @ line 18
Simply replacing the line 18 with:seems to have done the job. The only hangup is that the "Review Order" button is using the default Zen-Cart button instead of the one designated for my template. Not a big deal, but I am trying to figure out how to adjust this for the sake of aesthetics. I tried a few changes, but these seem to interfere with the redirect. Any advice?Code:<span id="opc-order-review"> <?php echo '<a href="https://website3.com/index.php?main_page=checkout_confirmation&template_switch_id=template3&'. zen_session_name() . '=' . zen_session_id() .'"><button type="button">Review Order</button></a>';?> </span>
I do have an additional question, a bit more related to this module in specific. I intend on offering several payment methods such as Money Orders and COD. I feel it would be best to have different landing pages after checking out based on the selection chosen. Similar to how when the credit card option is chosen you are redirected to the "checkout_one_confirmation" page instead of "checkout_success", I would need a separate button or link that appears when these options are selected that takes the customer to the predefined pages "payment_instructions" and "COD_terms".
Thank you and regards
Interesting idea! On the initial entry to the checkout_success page, the session-variable ($_SESSION['order_summary']) is copied to the variable $order_summary and that session-value is removed (enabling after-order tracking scripts to 'know' to send only once).
The payment method used for the order is present in $order_summary['payment_module_code']. You could modify /includes/modules/pages/checkout_success/main_template_vars.php (as provided by OPC) to check for (a) the presence of that variable and then (b) change the name of the $checkout_success_template to display after-order instructions to your customers.
Well,, I missed that one. You can edit /includes/modules/pages/checkout_one/jquery.checkout_one.js, finding
and changing toCode:function changeShippingFields(event) { jQuery(this).addClass('opc-changed'); jQuery('#checkoutOneShipto .opc-buttons, #opc-ship-save').show(); jQuery('#checkoutPayment > .opc-overlay').addClass('active'); jQuery('#checkoutOneShipto').removeClass('visibleField'); jQuery('#checkoutOneShipto').addClass('opc-view'); }
If your site is using minified scripts, you'll need to push that unminified version through a minifier; I use https://jscompress.com/.Code:function changeShippingFields(event) { jQuery(this).addClass('opc-changed'); jQuery('#checkoutOneShipto .opc-buttons, #opc-ship-save, #opc-add-ship, #opc-add-ship+label').show(); jQuery('#checkoutPayment > .opc-overlay').addClass('active'); jQuery('#checkoutOneShipto').removeClass('visibleField'); jQuery('#checkoutOneShipto').addClass('opc-view'); }
Still no luck.
I tried OPC 2.3.2 on a fresh install of ZC 1.5.6 with no add on but the same thing happens.
Shipping address is not being registered in the address book.
I am not an expert but I added the following code in /templates/templates_default/tpl_checkout_shipping_address_default.php
The check box and text is displayed but it did not fix my problem of the address not being registered in the address book. OPC is really great but this issue has me clueless.Code:<?php if ($show_add_address) { ?> <?php echo zen_draw_checkbox_field("add_address['ship']", 'style="display:inline"','1', false, 'id="opc-add-ship"' . $parameters); ?> <label class="checkboxLabel custom-control-label" for="add_address['ship']" title="<?php echo TITLE_ADD_TO_ADDRESS_BOOK; ?>"><?php echo TEXT_ADD_TO_ADDRESS_BOOK; ?></label> <?php
I also apologize for pushing on my issue and appreciate everyone trying to help.
Thank you again