Add Customer shipping details to Vendor email

24.08.2011 05:03
#1
sonyks
Joomshopping forum user no avatar
Name: Sony
14.07.2011
Сообщения: 6
Quote
Add Customer shipping details to Vendor email

Hi,
Thanks for your product Joomshopping.
I have installed Joomshopping version 3.2.2.

I want to add the Customer's shipping address to the emails sent to the vendors. For eg, if multiple products belong to different vendors, the email to each vendor must also contain the Customer's shipping address.

Which file and line no. to add this code? And what is the code to be added?

I am not fluent in php, but can understand.

Regards,
Sony


Joomla: 1.6
JoomShopping: 3.2.2
PHP: 5
MySQL: 5.1.56
Website Url: http://advaita-space.org
 
13.10.2011 11:35
#2
Beecee
Joomshopping forum user no avatar
Name: barbara
09.08.2011
Сообщения: 12
Quote
Aw: Add Customer shipping details to Vendor email

Hi

I have set the configuration for checkout to "send all information about ordering" for "Notice of Order to the vendor"

This works well when a buyer buys products from one vender only, but if a buyer selects products from different venders the very important shipping information does not get sent just the basic product information goes out to all venders instead.

Would there any way of changing the code so that all venders are being informed that ther product has been sold and along with the shipping information so they can dispatch?

I would be really pleased if someone could explain if this can be done? or if not, any workarounds?

Thank you so much.


Joomla: 1.7
JoomShopping: 3.2.7
PHP: 5+
MySQL: 5+
 
13.01.2012 10:00
#3
hacs3put
Joomshopping forum user no avatar
Name: hacseput
22.11.2011
Сообщения: 2
Quote
Aw: Add Customer shipping details to Vendor email

i have 5 vendors
i need every vendor to receive vendor products and client info
if a client buys from 2 vendors

where can i set the clent info to set it for vendor email / vendor order

regarding $mailer->setBody($vendor->message);
i need to change here $view->setLayout("orderemailpart");
where can i find this to change?

//vendors messages

if ($vendors_send_message){

$listVendors = $order->getVendors();

foreach($listVendors as $k=>$datavendor){

$vendor_order_items = $order->getVendorItems($datavendor->id);

$client = 0;

$view_name = "checkout";

$view_config = array("template_path"=>JPATH_COMPONENT."/templates/".$jshopConfig->template."/".$view_name);

$view = &$this->getView($view_name, 'html', '', $view_config);

$view->setLayout("orderemailpart");

$view->assign('client', $client);

$view->assign('config_fields', $config_fields);

$view->assign('count_filed_delivery', $count_filed_delivery);

$view->assign('config', $jshopConfig);

$view->assign('order',$order);

$view->assign('products', $vendor_order_items);

$view->assign('show_percent_tax', $show_percent_tax);

$view->assign('hide_subtotal', $hide_subtotal);

$view->assign('noimage',"noimage.gif");

$view->assign('text_total',$text_total);

$view->assign('liveurlhost',$liveurlhost);

$message_vendor = $view->loadTemplate();

$listVendors[$k]->message = $message_vendor;

}

}
file checkout.php

//send mail vendors
if ($vendors_send_message){
foreach($listVendors as $k=>$vendor){
$mailer =& JFactory::getMailer();
$mailer->setSender(array($mailfrom, $fromname));
$mailer->addRecipient($vendor->email);
$mailer->setSubject( sprintf(_JSHOP_NEW_ORDER_V, $order->order_number, ""));
$mailer->setBody($vendor->message);
$mailer->isHTML(true);
$send =& $mailer->Send();
}
}


Joomla: 1.5.25
JoomShopping: 2.9.7
 
13.01.2012 11:35
#4
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Сообщения: 25853
Quote
Aw: Add Customer shipping details to Vendor email

No support for such a function

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.