Jump to content

[SOLVED]Product internal reference id


skykit

Recommended Posts

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...