zen cart会出现一个错误,具体如下:
Whoops! Sorry, but you are not allowed to perform the action requested.
这个错误也该是zencart系统本身设计时候的问题,
具体修正方法,打开:
/includes/modules/create_account.PHP
在第421行,
zen_redirect(zen_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS, ”, ‘SSL’));
这行注释掉,变成如下代码:
view plaincopy to clipboardprint?
1./*——————-jack modify –www.wai-mao.net———- */
2.//zen_redirect(zen_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS, ”, ‘SSL’));
3.if (is_array($this->contents)) { // if items in cart, then by pass create account success
4.zen_redirect(zen_href_link(FILENAME_CHECKOUT_SHIPPING, ”, ‘SSL’));
5.} else { // no items in cart to show create account success page
6.zen_redirect(zen_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS, ”, ‘SSL’));
7.}
8./*——————-jack modify –www.wai-mao.net———- */