Because there are many products , some products may have same name or similar, So can anybody tells how can change the Autocomplete not using the product name instead of Model number ?
I found a solution , it greats for Related Product, bur it cannot apply to Featured Product !
http://forum.opencart.com/viewtopic.php?f=23&t=55362
Thank you for your Help !
xkenx,
I managed to make Autocomplete work with product model instead of product name.
1. Open /admin/controller/module/featured.tpl
FIND :
REPLACE WITH :
2. Open /admin/view/template/module/featured.tpl
FIND :
REPLACE WITH :
This will display the product model instead of the product name in the scrollbox.
If you want to display MODEL and NAME, replace with :
FIND :
REPLACE WITH :
FIND :
REPLACE WITH :
That's it !
I managed to make Autocomplete work with product model instead of product name.
1. Open /admin/controller/module/featured.tpl
FIND :
Code: Select all
if ($product_info) {
$this->data['products'][] = array(
'product_id' => $product_info['product_id'],
'name' => $product_info['name']
);
Code: Select all
if ($product_info) {
$this->data['products'][] = array(
'product_id' => $product_info['product_id'],
'name' => $product_info['name'],
'model' => $product_info['model']
);
2. Open /admin/view/template/module/featured.tpl
FIND :
Code: Select all
<?php echo $product['name']; ?>
Code: Select all
<?php echo $product['model']; ?>
If you want to display MODEL and NAME, replace with :
Code: Select all
<?php echo $product['model'] . ' - ' . $product['name']; ?>
FIND :
Code: Select all
filter_name
Code: Select all
filter_model
FIND :
Code: Select all
label: item.name,
Code: Select all
label: item.model,
Who is online
Users browsing this forum: No registered users and 345 guests