Jump to content

Product Catgeory default category for product


Recommended Posts

I have had this problem now for a few weeks.
The dev team have looked into this & now after getting more information why this wasn't behaving the way it should I have managed to come up with a simple solution, possibly this should be a made a sticky :lol:

Anyway the issue was all products were defaulting to the home page
the reason for this is related to a small bug fixed below ;-)

Some people may not of had this problem is they were to manually select a default category but with this fix the default category will automatically be selected for the category you are entering products for.

change AdminProducts.php line 1271-1275

replace id_category_default with id_category as this the variable used in the url to define which catgegory you are on
hope it helps others, it's caused me no end of problems %-P

And don't forget we want are rankings back :-P

'.$this->l('Default category:').'

<select id="id_category_default" name="id_category_default" onchange="checkDefaultCategory(this.value);">';
$categories = Category::getCategories(intval($cookie->id_lang), false);
Category::recurseCategory($categories, $categories[0][1], 1, $this->getFieldValue($obj, 'id_category'));

1191_tHxqJC0JnX3kRXDFnU1l_t

Link to comment
Share on other sites

×
×
  • Create New...