Open northdakota opened 9 years ago
Hi Northdakota,
First: I'm sorry for posting this issue in the wrong project. I continued testing in my shops and it turns out to work as following:
Whenever a customer proceeds through checkout with a NEW e-mail address and without creating an account in the process, this customer is being considered a guest and the eltrino print-button is shown.
But when a customer performs a guest-checkout (not registering or logging in) with an existing email address (an email address that belongs to an existing customer) the print button is NOT shown.
I think it would be good to show the button for every order where the customer is NOT logged in. Even if this customer is already known in the shop (based on its email address).
Cheers and thank you for this nice plugin. Bram.
Another update:
It turns out that the famous onestepcheckout (OSC) is handling guest-orders with a known email address differently than the default onepagecheckout (OPC).
in the default OPC an order isn't linked to a known e-mail address if a customer isn't logged in. But in OSC the order does get linked to a customer-ID if the email address is known. And since the order is linked to a known customer the bolean getCustomerIsGuest() returns TRUE even if the customer isn't logged in.
So to make PrintOrder work with OneStepCheckout the function _preparePrintOrderData() in PrintOrder.php needs some changes I think.
Hi Brrrm,
We checked our extension (v1.1) with default magento checkout, and all works fine.
But when a customer performs a guest-checkout (not registering or logging in) with an existing email address (an email address that belongs to an existing customer) the print button is NOT shown. As we understood this problem is related to OSC too.
At this time we don't have a license for OSC, so we can't check your report and fix it. If you need, you may fix it by yourself
Thanks!
From @brrrm on April 20, 2015 10:7
Hi,
I installed your printorder 1.1 extension in Magento 1.9.0.1 and it's working fine in our default store. But not in any other store. The template is being loaded but the if-statement <?php if ($this->getCanPrintOrder()) :?> in printorder.phtml is always false.
What could be the cause of this?
Copied from original issue: eltrino/Compatibility#1