Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Buy a product and send order


Salvo

Recommended Posts

HI all

 

I am thinking to have a Shopping Cart that works in this way.

 

A customer place an order to buy a product. The order "with all the details of the order" is sent to the shopping cart owner as well as the "producer" of the product that takes up the order and deals with it.

 

Something like ebay..

 

Is it possible? is there a contribution that does this?

 

Thank in advance

 

 

Salvo

Link to comment
Share on other sites

HI all

 

I am thinking to have a Shopping Cart that works in this way.

 

A customer place an order to buy a product. The order "with all the details of the order" is sent to the shopping cart owner as well as the "producer" of the product that takes up the order and deals with it.

 

Something like ebay..

 

Is it possible? is there a contribution that does this?

 

Thank in advance

Salvo

 

A fast and crude way is to add a new line to the "catalog/checkout_process.php" file. Search for the following lines:

 

// send emails to other people

if (SEND_EXTRA_ORDER_EMAILS_TO != '') {

tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

}

 

The existing tep_mail line will send an email to the store owner after processing the order.

 

To have the "producer" also receive the same email, simply add in the line in bold:

 

// send emails to other people

if (SEND_EXTRA_ORDER_EMAILS_TO != '') {

tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

tep_mail('PRODUCER_NAME', 'PRODUCER_EMAIL_ADDRESS', EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

}

 

Replace PRODUCER_NAME & PRODUCER_EMAIL_ADDRESS with the actual info.

 

Hope this helps... :blush:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...