Jump to content

comment this code and all product have home category ?


Recommended Posts

Hi all

 

PS Version 1.5.6.0

Multistore = On

In the AdminProductsController.php We have This code somewhere about in line 214

if (Shop::isFeatureActive() && Shop::getContext() != Shop::CONTEXT_SHOP)
			$this->fields_list['shopname'] = array(
				'title' => $this->l('Default shop:'),
				'width' => 230,
				'filter_key' => 'shop!name',
			);
		else
		
			$this->fields_list['name_category'] = array(
				'title' => $this->l('Category'),
				'width' => 'auto',
				'filter_key' => 'cl!name',
			);

i just commented the following

/**
if (Shop::isFeatureActive() && Shop::getContext() != Shop::CONTEXT_SHOP)
*/
			$this->fields_list['shopname'] = array(
				'title' => $this->l('Default shop:'),
				'width' => 230,
				'filter_key' => 'shop!name',
			);
/**
		else
*/		
			$this->fields_list['name_category'] = array(
				'title' => $this->l('Category'),
				'width' => 'auto',
				'filter_key' => 'cl!name',
			);

Inshort i need both the shopname as well as category, when saved and refreshed page i see both but now each product shows home category. i rechecked with editing a product it has been assinged a proper category. Any Mistake By My Side ??

 

Regards

 

Amod

Link to comment
Share on other sites

×
×
  • Create New...