Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Silly question about product_notifcation


DogFoodIT

Recommended Posts

Posted

hi all,

 

just wondering how the product notification works??

 

customer buys item selects "notify me of products updates"

 

now in admin you can create an email as product_notification

lock it in and hit send!

 

that seems fine but i can not test the way it actually works as we have thousands of emails in our database and i do not want to send an inappropriate test email to the customers.

 

i have been told that the notification email should be sent out when you update the product but i have read the code and can not see how this is happening. if someone could give me a brief rundown on how it works it would be much appreciated.

 

Ben

Posted

Hi Ben,

 

I suggest you open up admin/includes/modules/product_notification.php

 

Towards the bottom, find this:

 

 

      while (list($key, $value) = each ($audience)) {
       $mimemessage->send($value['firstname'] . ' ' . $value['lastname'], $value['email_address'], '', EMAIL_FROM, $this->title);
     }

 

comment this section out completely and replace it by

 

        $mimemessage->send('Ben', '[email protected]', '', EMAIL_FROM, $this->title);

 

use your own email addy, obviously.

 

Then you can just test away ... only you will get an email.

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Posted

Hi Ben,

 

I suggest you open up admin/includes/modules/product_notification.php

 

Towards the bottom, find this:

 

 

      while (list($key, $value) = each ($audience)) {
       $mimemessage->send($value['firstname'] . ' ' . $value['lastname'], $value['email_address'], '', EMAIL_FROM, $this->title);
     }

 

comment this section out completely and replace it by

 

        $mimemessage->send('Ben', '[email protected]', '', EMAIL_FROM, $this->title);

 

use your own email addy, obviously.

 

Then you can just test away ... only you will get an email.

Thanks heaps i will give it a go...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...