Guest Posted August 7, 2006 Share Posted August 7, 2006 Is there any way of supplying a product's ID with an order as well as the order code? Cheers Quote Link to comment Share on other sites More sharing options...
convict Posted August 7, 2006 Share Posted August 7, 2006 Do you want to add this to notification emails, payment gateways or to admin area? Yes this is possible. Quote Link to comment Share on other sites More sharing options...
Guest Posted August 7, 2006 Share Posted August 7, 2006 Thanks for the reply, convict. I'd like the product ID to be sent on the notification email and in the orders section of admin. Many thanks Quote Link to comment Share on other sites More sharing options...
convict Posted August 7, 2006 Share Posted August 7, 2006 PRODUCT ID IN ADMIN NOTIFICATION EMAIL Open includes/content/gateway.inc.php SEARCH FOR $prodtext .= sprintf($lang['front']['gateway']['admin_email_body_4'], $basket['invArray'][$i+1]["name"]); REPLACE WITH $prodtext .= sprintf($lang['front']['gateway']['admin_email_body_4'], $basket['invArray'][$i+1]["name"], $basket['invArray'][$i+1]["productId"]); save, close, upload Open language/en/lang.inc.php SEARCH FOR 'admin_email_body_4' =>"Product: %s\n", REPLACE WITH 'admin_email_body_4' =>"Product: %s\nProduct ID: %s\n", save, close, upload PRODUCT ID IN THE ADMIN ORDERS SECTION Open admin/orders/order.php SEARCH FOR (about line 169) <td class="subHead"><strong><?php echo $lang['admin']['orders']['product'];?></strong></td> ADD AFTER <td class="subHead"><strong><?php echo "ID";?></strong></td> SEARCH FOR (about line 225) <td class="<?php echo $cellColor; ?>"><span class="copyText"><?php echo $results[$i]['productCode']; ?></span></td> ADD BEFORE IT <td class="<?php echo $cellColor; ?>"><span class="copyText"><?php echo $results[$i]['productId']; ?></span></td> SEARCH FOR (about line 250) <td rowspan="4" class="btmSubNav"> </td> REPLACE WITH <td rowspan="4" colspan="2" class="btmSubNav"> </td>save, close, upload Done ;) Quote Link to comment Share on other sites More sharing options...
Guest Posted August 14, 2006 Share Posted August 14, 2006 Thanks very much for your help convict, sorry it's taken me a little while to reply. Thanks again Quote Link to comment Share on other sites More sharing options...
convict Posted August 14, 2006 Share Posted August 14, 2006 You are welcome. :huh: Quote Link to comment Share on other sites More sharing options...
Guest qld4215 Posted August 14, 2006 Share Posted August 14, 2006 Thanks Convict, that was something I was looking for too and have now implemented. Amazing what one can find :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.