网络营销电子商务研究中心  
How to buy the best prescription safety glasses in Canada? Let's study!
Go Back   网络营销电子商务研究中心 > 网站建设 > ZenCart
User Name
Password
 
FAQ Members List Calendar Cheap Glasses

Reply
 
Thread Tools Display Modes
  #1   IP: 153.99.20.178
Old 2016-05-14, 11:06 PM
Utah Utah is offline
初级会员
 
Join Date: 2005-12-18
Posts: 1
Utah 现在声名狼藉
Default 彻底解决ZenCart伪静态化后出现的?zenid=xxxxx的问题

遇到URL后面带有一串&zenid=.....的地址而地址是无效的情况下,
彻底解决的办法是在html_output.php里面修改代码,具体操作如下:

找到if (isset($sid)) {
$link .= $separator . zen_output_string($sid);
}这段代码,把它屏蔽掉就可以了。

如果你使用的是Ultimate SEO URLs模块,则
打开includes\functions\html_output.php
找到
function zen_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe= true, $static = false, $use_dir_ws_catalog = true) {

将代码第一行中$add_session_id = true 修改为:$add_session_id = false

如果在后台设置force cookies为true的话,很多顾客会无法完成付款流程;

以上方法试用了,还不行?!

看这里:

在后台的Configuration-->Sessions里有一项Session Directory,它是指定session所使用的文件目录。如果这个文件夹不存在,或者不可写的话。那么就会在URL上显示zenid=,解决方法就是让session所使用的文件目录存在并且可写。
注:这个Session 目录一般就是cache文件夹所在目录,要设有写入的权限。
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Prescription-glasses.com offers prescription glasses online at discount prices.
All times are GMT +8. The time now is 11:07 AM.


Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.