skykit Posted September 24, 2010 Share Posted September 24, 2010 Dear all,Is any one know how to config a internal reference id for each product can be show in the "administration panel""customer orders form". That mean this id only for our employee to identify the product. Thank you. Link to comment Share on other sites More sharing options...
rocky Posted September 25, 2010 Share Posted September 25, 2010 Just put the ID in the "Supplier Reference" field. That is displayed next to the product name on the Orders tab, but not shown to customers on the website. Link to comment Share on other sites More sharing options...
skykit Posted September 27, 2010 Author Share Posted September 27, 2010 Just put the ID in the "Supplier Reference" field. That is displayed next to the product name on the Orders tab, but not shown to customers on the website. Hi rocky,Thank you for your reply. This is working. But I think there is a bug. Because when I only have the "supplier reference". It won't show in the order tab. But If I also have a product reference. It will show both of them. Link to comment Share on other sites More sharing options...
rocky Posted September 27, 2010 Share Posted September 27, 2010 You are right. Try changing lines 305-306 of admin/tabs/AdminOrders.php from: ($product['product_reference'] ? $this->l('Ref:').' '.$product['product_reference'] : '') .(($product['product_reference'] AND $product['product_supplier_reference']) ? ' / '.$product['product_supplier_reference'] : '') to: ($product['product_reference'] ? $this->l('Ref:').' '.$product['product_reference'] : ($product['product_supplier_reference'] ? $this->l('Supplier Ref:') . $product['product_supplier_reference'] : '')) .(($product['product_reference'] AND $product['product_supplier_reference']) ? ' / ' . $product['product_supplier_reference'] : '') Add an apostrophe then a period to the beginning like in the default code.This might be worth posting on the bug tracker. Link to comment Share on other sites More sharing options...
skykit Posted September 27, 2010 Author Share Posted September 27, 2010 You are right. Try changing lines 305-306 of admin/tabs/AdminOrders.php from: ($product['product_reference'] ? $this->l('Ref:').' '.$product['product_reference'] : '') .(($product['product_reference'] AND $product['product_supplier_reference']) ? ' / '.$product['product_supplier_reference'] : '') to: ($product['product_reference'] ? $this->l('Ref:').' '.$product['product_reference'] : ($product['product_supplier_reference'] ? $this->l('Supplier Ref:') . $product['product_supplier_reference'] : '')) .(($product['product_reference'] AND $product['product_supplier_reference']) ? ' / ' . $product['product_supplier_reference'] : '') Add an apostrophe then a period to the beginning like in the default code.This might be worth posting on the bug tracker. Hi Rocky,Thank you for your response. But I apply your code I still not get the result. Could you able to upload your "AdminOrders.php" here. Thank you so much. Link to comment Share on other sites More sharing options...
skykit Posted September 27, 2010 Author Share Posted September 27, 2010 I am able to do it now, Line 678 also need to change the code. Thank you so much Link to comment Share on other sites More sharing options...
rocky Posted September 27, 2010 Share Posted September 27, 2010 Great. Please edit your first post and add [sOLVED] to the front of the title. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now