X-cart开发记录


27
八 11

XCART开启SSL https

Security => Use HTTPS for users’ login and registration

勾选,就直接打开了

如果要自己定义页面https

在根目录下打开https.php

查找 if ($config['Security']['use_https_login'] == ‘Y’) {

大概在100行左右

在数组$https_scripts中增加自己自定义的页面,这样前台打开这个页面的时候,就会自动转成https访问了


30
七 11

xcart 后台添加产品页面增加相关产品选择器

1,在数据库xcart_products 中建立记录相关产品ID的字段

2,修改include/product_modify.php

3,打开 skin/common_files/main/product_details.tpl

在相应位置插入:
Continue reading →


27
七 11

x-cart 常用的smarty模板标签(不断更新)

用户模板路径:{$AltSkinDir}
系统模板路径:{$SkinDir}
用户模板下IMAGES路径:{$AltImagesDir}
系统模板下IMAGES路径:{$ImagesDir}
Continue reading →


27
七 11

X-cart 文件权限设置

这些要设置成 777

\files\
\catalog\
\images\
\skin\
\var\
\var\cache\
\config.php
\admin\newsletter.sh
\payment\csrc.pl
\payment\ccash.pl
\payment\netssleay.pl