Page 1 of 1

is it possible to know if a guest acct was used at checkout?

Posted: Tue Feb 28, 2012 9:46 pm
by clapiana
just setup my site with support for guest checkout on 1513.

any idea on how to include something in the order email that shows it was a guest who checked out.

Re: is it possible to know if a guest acct was used at check

Posted: Tue Feb 28, 2012 10:56 pm
by Qphoria
if they have no account under customer, then it was guest.
If you want the admin email to show it, then you can do this..

1. EDIT: catalog/model/checkout/order.php

2. FIND:

Code: Select all

$subject = sprintf($language->get('text_new_subject'), html_entity_decode($this->config->get('config_name'), ENT_QUOTES, 'UTF-8'), $order_id);
3. AFTER, ADD:

Code: Select all

if (isset($this->session->data['guest'])) {
$subject .= ' (GUEST)';
}