Agilemultiseller - low stock alert for sellers

You are welcome to post here any new feature suggestions and/or requests for any of our Agile Modules. We will consider requests for possible inclusion in future module releases, or for the creation of new modules.

Before you post, however, please first search the forum to see if there is already a similar request or suggestion.

Moderator: jeffayao_1666

Agilemultiseller - low stock alert for sellers

Postby carlo.macis_15320 » Sat May 21, 2016 1:48 pm

Would be good to have an alert email to sellers when stock is running low so they can re-order and update the product
carlo.macis_15320
 
Posts: 40
Joined: Wed Feb 24, 2016 3:59 pm

Re: Agilemultiseller - low stock alert for sellers

Postby shokinro » Mon May 23, 2016 2:36 pm

you may try to customize PrestaaShop mailalert module for that purpose.

1. You can get seller email address by following
$id_seller = AgileSellerManager::getObjectOwnerID('product', $id_product);
$seller = new Employee($id_seller);

2. look for following lines in mailalerts.php, and then try to replace the mail recipient by email address.

Mail::Send(
$id_lang,
'productoutofstock',
Mail::l('Product out of stock', $id_lang),
$template_vars,
$seller->email,
null,.......................
Follow us at Twitter Like us on Facebook Watch our Tutorial Videos on YouTube
shokinro
Site Admin
 
Posts: 3091
Joined: Sat Jun 25, 2011 3:08 pm


Return to New Feature Suggestions forum - Agile PrestaShop Addons/Modules

Who is online

Users browsing this forum: No registered users and 4 guests