首 页  >>  E商学院  >>  zencart百科  >>  zencart后台增加导航栏选项

zencart后台增加导航栏选项

ZenCart网站实际的应用中,很多人会对zencart模板进行二次开发,比如在程序中的参数,如果能后台控制岂不完美。

比如:我想给zencart描述自动加上锚文本这个功能当中,假如能将其中的关键词和链接整合到后台,能在后台控制,那么管理起来就方便多了。

其实这也不是很大的问题,无非就是给在后台添加一两个选项让用户控制。实现这一步只需要一句sql语句就可以了。

在后台执行:
INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function)
VALUES
(NULL, 'Kewords in product description 1', 'KEWORDS_1', 'Replica Oakley Sunglasses', 'set Anchor text in product description', 1,214, NOW(), NOW(), NULL, NULL);

 

其中关键词的url添加方法也是一样,那么这样的sql语句就将Kewords in product description 1这个选项加在了Configuration --- my store最后几行的位置。其他地方以此类推。


点击次数:1685  发布日期:2014-05-22  【打印此页】  【关闭