我正在马根托的一个网站上工作。它有两个商店(基地,精品店)和4个商店视图基地(fr,en)和精品(bfr,ben)。现在,当我在网站网址中使用存储url时。我每个商店的视图都有4个urls
http://example.com/en
http://example.com/fr
http://example.com/boutique/ben
http://example.com/boutique/bfr我们需要其他商店的网址,如下所示:
http://example.com/boutique/en
http://example.com/boutique/fr但是我们已经用这些代码存储了视图。请帮我解决这个问题。
发布于 2014-07-08 09:56:50
不能对两个存储视图使用相同的代码。句号。
但你可以尝试一种不同的方法让你的网址像这样。
不要使用“向url添加存储代码”,而是实际创建需要fr、en、boutique/en、boutique/fr的文件夹,并将index.php和.htaccess文件复制到这些文件夹中的每一个,并替换以下文件。
$mageFilename = MAGENTO_ROOT . '/app/Mage.php';使用
$mageFilename = '../app/Mage.php';或
$mageFilename = '../../app/Mage.php';取决于文件夹的深度。
并替换这个
Mage::run($mageRunCode, $mageRunType);使用
Mage::run('store code here', 'store'); //instead of store code view put en, fr, ben or bfr您还需要从system->configuration中调整每个存储视图的基本urls。
https://stackoverflow.com/questions/24627822
复制相似问题