Archive for category ZenCart

zen cart sitemap xml language=en

zen cart sitemap xml功能,生成XML文件时,地址后面有个?language=en,不论是否影响优化,看着碍眼

去除方法,后台sitemap xml->Generate language_id for default language改为false

然后重新生成,如果不行话,删了原来的,并关闭浏览器重新生成,cookie问题

  • Share/Bookmark

Zen Cart Easy Populate 重装方法

Zen Cart官方提供两个Easy Populate版本,一个是txt的,一个是csv的

txt看起来比较简单,csv的功能比较强大,可操作meta属性等

两者可以覆盖替换安装,在文件覆盖后,后台地址输入

admin/easypopulate.php?langer=installnew

即可实现数据库的重写安装

  • Share/Bookmark

lightinthebox首页自动跳到产品页

lightinthebox模板在只有一个产品时,在打开首页时会自动跳到那个唯一的产品页,说不上是什么人性化的功能

就算有多个目录存在了也是如此,它只判断产品是否只有一个

  • Share/Bookmark

Gspay Error code 101解决方法

测试Gspay时,在Gspay支付页面提交个人地址信息并跳转下一步时报错了,错误代码如下:

Internal error: Authorization declined

Error code 101

在网上搜了下,没相关资料,只有一个外贸网站的FAQ里有提到

12 .Common payment error code:
101 customers IP does not match the selected countries  102 The IP of the client’s country is blocked 103 Customer’s IP  of  United States does not match the state 104 card holders who deceived 105 fraudulent card number 106, the language of the client browser is blocked 107 client countries, blocked 108 fraudulent e-mail address 109 deceived IP 110 deceived phone numbers to 111 client browser is blocked 112 transaction limit in excess of the maximum 113 hours IP restrictions 114 Unreasonable customer information

意思是说客户的IP和地址里所填写国家并不匹配,所以被拒绝了,这是信用卡安全机制的一部份

因为我们用的测试帐号一般都乱填的国家,但IP却是中国的,被检测出来

要顺利测试的话,只要在国家里选中国,就OK了

  • Share/Bookmark

Tags: , , , , , , ,

zen cart classic 模板左栏跳动问题

发现一些zen cart站,使用classic模板,在IE8下点左栏时,页面刷新不正常,左栏会先居中再跳到左侧

而在傲游里刷得很快,几乎是感觉不到这种跳动的

而IE8开启兼容性视图时,也是感觉不到跳动的,不得不说IE有点烂

解决方式:因为默认的#navColumnOneWrapper被设成 margin: auto;了,改成类似下面这样即可

#navColumnTwoWrapper,#mainWrapper {

 margin: auto;

 }

#navColumnOneWrapper{

 margin-left: 0em;

 }

  • Share/Bookmark

Ecpss

听说是ctopay的副总出来做的,应该很多东西和ctopay一样恶心

年费10000,开户费5000,现在开户打八折,一万二;可以加六个网站,网站可以换;使用45天后方可提现

有提供zen cart接口,图是老的,需要自己替换一下图标

后台设置:

商家号、md5 key、接口地址https://www.ecpss.com/payRequestAction.action(自己改成https让老外更信任吧)、语言english、货币选USD

据说成功率能达到90%以上,很多人在用

  • Share/Bookmark

Tags:

GSPAY更新for zen cart

For Zencart
1. Find/includes/modules/payment/gspay.php script
2. Open and replace https://secure.rdgateway.com/payment/pay.php at https://secure.redirect2pay.com/payment/pay.php
3. Replace https://secure.rdgateway.com/payment/api.php with https://secure.redirect2pay.com/payment/api.php

不过似乎不能用的,正确的做法是

1. Find/includes/modules/payment/gspay.php script
2. Open and replace secure.rdgateway.com at secure.safepaymentgate.com

替换一个接口地址

  • Share/Bookmark

Tags: , , , , ,

zen cart product is linked

之前一直不明白zen cart产品目录上那个status属性黄黄的那一块是什么意思,也不懂怎么去更改它,上网查了一下,以下是官方解解:

What is a “Linked Product”?
 
A linked product is a product that is set up to display in more than one category.

This means that you only have to edit that product in one place in order to have changes take effect everywhere it is displayed.  If you put it on special in one place, it will be on special in the other place/category as well.

Linking also means that you’ll not see the same product appear more than once in a given list of products.

If you make a “copy” of a product, instead of linking it, then you will have two distinct and separate products which would require separate editing if you were to make changes later. Specials would affect one and not the other, unless you applied the Special to both individually.  In the case of a copy, you might end up seeing both versions of the product appearing in various product lists. 

总算明白,如果产品是linked状态的话,表示这个产品在不同的目录也有出现,而对网站来说它还是一个产品,就像一个用户可以隶属于不同的用户组一样,它们在数据库中只有一条记录;而非linked状态的两个相同产品,在数据库中有两条记录,系统会认为它们是不同产品,虽然产品名称和型号等信息是一样的;这个link功能很好用,灵活

至于怎么设置两个相同产品为link状态,在产品的copy to动作时可以选择的,选择Linked,或Duplicate(复制品)

  • Share/Bookmark

Tags: , , ,

zen cart 二次开发进程

一、直接获取网站域名,不用在拷贝网站时更改configure.php文件的HTTP_SERVER等信息

二、直接获取根目录地址,不用在拷贝网站时更改configure.php文件的DIR_FS_CATALOG等信息

三、在configure.php文件中直接定义两个常量,一个是log文件地址,一个是session目录,不用在拷贝网站时更改数据库configuration表信息

四、数据库配置文件分离出来,方便拷站时只操作一个文件

五、新增了指定IP或IP段需要密码才能访问的功能

六、网站title及tagline可在后台更改

七、网站heading title及Shopping Cart Text Information可在后台更改

八、网站首页meta关键字及描述和自定义关键词可在后台更改

九、去掉了zen cart版权文字,并可以后台自定义一段html代码,方便加锚文本链接

十、header alt text和header sales text可在后台更改

十一、网站伪造在线人数可在后台更改

一切皆为方便!

  • Share/Bookmark

Tags: , , , , , , ,

zen cart xml sitemap更新

如果Use Existing Files这项为true的话,就算用批量表(easy populate)更改了产品信息什么的,xml sitemap也是不认帐的,会判定为产品或目录没更新,直接用现有的xml文件生成,因为它只认数据库表里记录的last modified;而easy populate是不更新这项数据的

所以,需要进后台更改更新下相应的目录或产品,就算不改数据,只是走个形式,重要的是表记录值会有变动

另外,产品名或目录中的空格千万不要弄成全角的,否则显示出来不是空格而是像ii的字符,乱码了

  • Share/Bookmark

Tags: ,