2012-07-08 25 views

回答

0

如果你問PHP代碼實現看看下面

//create product collection 
$collection = Mage::getResourceModel('catalog/product_collection'); 
//.... //add necessary filters, conditionas, etc 

$collection->addStoreFilter(); // add current store filter to products collection 
0

我的例子中,您也可以爲你的商店設置不同的文件夾更它們分開:

如:

de-de/ 
de-en/ 
ch-de/ 
ch-fr/ 

放在每個文件夾中的「錯誤」文件夾和index.php。編輯index.php並在最後添加:

Mage::run('chde','store'); 

當然,這取決於您的整個商店配置。

在每個模板中使用<base href>或預先與Mage :: getBaseUrl()