Hi,
There is no option to turn off that check. We've added it because we had people removing the ids and then having categories with the same alias, and thus when you would click on the links of one or the other category, it would go to the same category all the time.
You would have to remove the code:
if(!empty($element->category_alias)) {
$query = 'SELECT category_id FROM '.hikashop_table('category').' WHERE category_alias='.$this->database->Quote($element->category_alias);
$this->database->setQuery($query);
$element_with_same_alias = $this->database->loadResult();
if(!empty($element_with_same_alias) && (empty($element->category_id) || $element_with_same_alias != $element->category_id)) {
$app = JFactory::getApplication();
$app->enqueueMessage(JText::_( 'ELEMENT_WITH_SAME_ALIAS_ALREADY_EXISTS' ), 'error');
JRequest::setVar('fail', $element);
return false;
}
}
from the file administrator/components/com_hikashop/classes/category.php to remove that check.