Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Manufacturers in email


Guest

Recommended Posts

Hi!

How can i add the manufactrer name to email with all products?

Maybe some contribution make this change.

I know i need to edit files: checkout_process.php, general.php.

Now i make this change:

In general.php i added:

function tep_get_product_manufacturer_name($products_id) {

$manufacturer_query = tep_db_query("select m.manufacturers_name from " . TABLE_PRODUCTS . " p, " . TABLE_MANUFACTURERS . " m where p.products_id = '" . $products_id . "' and m.manufacturers_id = p.manufacturers_id");

$manufacturer = tep_db_fetch_array($manufacturer_query);

 

return $manufacturer['manufacturers_name'];

}

 

In checkout_process.php i was add to line which makes email text

tep_get_product_manufacturer_name($order->products[$i]['id'])

 

but then file checkout_process.php doesn't work. I see only blank page.

 

 

Please help

 

sory for my language. I think you will understend. :rolleyes:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...