Post by Bytzzu » Fri Oct 05, 2012 7:36 pm

Hi there!
I wanna make a change in my admin featured form.
So, when i want to add a product to featured list, from admin>extension>featured, it shows me only the name of the product, in SUGGESTION LIST! I want to show the model of product too, because i have more products with the same name. So, can anyone help me?

New member

Posts

Joined
Sun Nov 20, 2011 3:20 am

Post by florinsith » Sat Oct 06, 2012 4:16 pm

Edit the file admin/controller/catalog/product.php and find the code:

Code: Select all

$json[] = array(
					'product_id' => $result['product_id'],
					'name'       => strip_tags(html_entity_decode($result['name'], ENT_QUOTES, 'UTF-8')),	
					'model'      => $result['model'],
					'option'     => $option_data,
					'price'      => $result['price']
				);
and change it into:

Code: Select all

$json[] = array(
					'product_id' => $result['product_id'],
					'name'       => strip_tags(html_entity_decode($result['name'], ENT_QUOTES, 'UTF-8')) . '-' . $result['model'],	
					'model'      => $result['model'],
					'option'     => $option_data,
					'price'      => $result['price']
				);

Image
My Extensions - SuperTheme - Opencart templates - Opencart modules


User avatar
Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am


Post by Bytzzu » Sat Oct 06, 2012 5:11 pm

Thank you! That works!

New member

Posts

Joined
Sun Nov 20, 2011 3:20 am
Who is online

Users browsing this forum: No registered users and 17 guests