我试图在前端显示不同的标题图像基于store id
意味着每个商店都有不同的标题图像。在opencart中获取当前商店ID
的问题是如何呼应当前STORE_ID在前端(在header
)
,所以我可以用我的代码的东西继续象下面这样:
<?php
if($store_id == '1') { // 1 is default store
//echo image here
}
else { //if not default show different image
//echo image here
}
?>
Opencart的版本:1.4.9.6
[查看此文](http://stackoverflow.com/questions/9916282/get-the-store-id-for-multi-store-setup-with-opencart) – bobthyasian