Post by clapiana » Tue Feb 28, 2012 9:46 pm

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.

New member

Posts

Joined
Thu Sep 01, 2011 6:22 pm

Post by Qphoria » Tue Feb 28, 2012 10:56 pm

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)';
}

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 51 guests