Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个商店的意见:英语,拉脱维亚语。
我想对两个商店视图做出反应,在一个 local.xml 中为每个视图调用一个不同的模板
像这样
<?xml version="1.0"?> <layout version="0.1.0"> <English> <!-- do stuff... --> </English> <Latvian> <!-- do stuff... --> </Latvian> </layout>
可能吗?
更好的方法是为两个商店视图创建两个单独的主题。System->Design然后通过或 through将这些分配给商店视图System-> Configuration-> Design->Themes。这样,您可能拥有两个layout.xml文件,并且可以更好地控制皮肤等。
System->Design
System-> Configuration-> Design->Themes
layout.xml
但是,如果您只想单独layout.xml使用该System-> Configuration-> Design->Themes->Layout选项。
System-> Configuration-> Design->Themes->Layout