Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Id in the checkout email


kweevil38

Recommended Posts

Is there way to add the product id in the checkout email?

 

Hello,

 

First...always back up any file you will change. In the case it is only one, checkout_process.php

 

Search in file checkout_process.php (it is in the same directory as your home page index.php) around line 321, you want to find the line similar to:

 

$products_ordered .= $order->products[$i]['qty'] . ' x ' . $order->products[$i]['name'] . ' (' . $order->products[$i]['model'] . ') = ' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . $products_ordered_attributes . "\n";

 

to add the products id number simply insert the field $order->products[$i]['id'] where you want the products id to be. If you're not familiar with php language simply just make sure you have a period before and after the feild name and you should be okay. You may need to add some spacing or other characters to get it formatted the way you want. Feel free to ask any questions if you have any problems.

 

Frank

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...