customer id issue at checkout
Zencart 1.5.8
OPC checkout
php 8.1
I am having an issue with my customer ids when checkout out.
I use shipworks to ship my orders and when i download the orders i am getting invalid ids. Sometimes it is correct. But a lot of the orders are being attach to one id. Why is zencart not sending the correct customer ids.
Just FYI In the database everything seems okay.
Re: customer id issue at checkout
Are these "invalid IDs" due to guests checkout out?
Re: customer id issue at checkout
I am not sure if this is what relates to my issue but i found this
https://github.com/lat9/one_page_checkout/issues/391
Path includes\templates\template_default\templates\tpl_checkout_one_confirmation_defa ult.php
current code:
Code:
echo zen_draw_form('checkout_confirmation', $form_action_url, 'post', 'id="checkout_confirmation"' . ($confirmation_required) ? ' onsubmit="submitonce();"' : '');
Should I change it to the double quotes at end like this:
Code:
echo zen_draw_form('checkout_confirmation', $form_action_url, 'post', 'id="checkout_confirmation"' . (($confirmation_required) ? ' onsubmit="submitonce();"' : '')); ?>
Not even sure if i am on the right track.
When I made the change with the double quotes )) my id still had issues. SO i changed it back.
Note: Sometimes the customer id comes into shipworks correclty and sometimes it does not.
Re: customer id issue at checkout
Not sure what this issue is. It has to be related to a guest checkout issue. I notice when I download orders into shipworks the order comes in correctly. For some reason the id of the name are not correct.
It seems when i download the latest order rom shipworks it takes the most recent order customer ID and uses for all the orders
Re: customer id issue at checkout
I believe this is happening when someone checks out as a guest based on my test
Re: customer id issue at checkout
All OPC guest-checkouts use the same guest-customer-id. Your shipworks installation (which I don't use) needs to look at the order's information, not the customer's information.
Re: customer id issue at checkout
I understand now. Thank you so so much.
Re: customer id issue at checkout
Is there a way when you check out as guest to create a unique ID?
Re: customer id issue at checkout
Quote:
Originally Posted by
chadlly2003
Is there a way when you check out as guest to create a unique ID?
Nope, but a guest can choose (at the checkout-success page) to 'convert' their guest account to a permanent one.