In the end I found I had to go to the top and in var/run/classes/XLiteAbstract.php
edit getShopURL
Code:
public function getShopURL($url = '', $isSecure = null, array $params = array())
{
$url = 'es/'.$url ;
return \XLite\Core\URLManager::getShopURL($url, $isSecure, $params);
}
to get the subdirectory to appear in links. This is just a test! I now have to incorporate the code here
x5 set language from browser and make it into a module.
There is one thing that doesn't work though.. when there's more than one category in the url (ie domain.com/es/toys/rc-toys) gives a page not found.