Hi everyone,
I'm would like to modify the results that appear when you are entering a name of a product that you wish to set as a related product (img1 in attachment).
More specifically I would like to know if it is possible to display the product ID next to the product name? Or if that is not possible can the search be modified so it recognizes an entered product ID and then displays that name?
Can do it a couple of way, one of which is to update the ../admin/view/template/catalog/product_form.twig
you are looking for the autocomplete function section:
Then change this line:
into this:
You can use item.product_id also.
you are looking for the autocomplete function section:
Code: Select all
// Related
$('input[name=\'related\']').autocomplete({
.....
.....
Code: Select all
label: item['name'],
Code: Select all
label: item.model + ' - ' + item.name,
-
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS
Who is online
Users browsing this forum: No registered users and 255 guests