Post by brunobrunobruno » Wed Jan 23, 2013 10:16 pm

hi, i'm trying to achieve this:
when the user finish the buying proccess , the store will send a admin email based on the address value and the total value
something like;

if ($total>5000 and $address= xpto)

$adminemail = example@mail.com

...

anybody? please?


Posts

Joined
Wed Jan 23, 2013 10:09 pm

Post by Qphoria » Wed Jan 23, 2013 10:33 pm

For 1.5.x:

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

2. FIND:

Code: Select all

$text .= $language->get('text_new_footer') . "\n\n";
3. AFTER, ADD:

Code: Select all

if ($order_info['total'] > 5000) {
	mail($this->config->get('config_email'), "(Subject) Order over $5000 Received", "(Message) Order over $5000 Received");
}

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by uncommonhound » Mon Sep 09, 2013 7:52 am

Did you ever figure out how to send an email based on address?? I really need that! :-)

Newbie

Posts

Joined
Thu Oct 20, 2011 5:00 am
Who is online

Users browsing this forum: No registered users and 2 guests