Jump to content

关于rewrite的问题


AndyLAU

Recommended Posts

大家有没有发现到,开启了rewrite功能后,"Viewed products block" (最近浏览商品) 链接不对,演示请看http://www.pspstore.cn ,请问如何修改才呢让它正常呢? Hope for your reply,Thanks!

PS:当第一次更换语言的时候有时也会出现找不到网页,但有时又不会

Link to comment
Share on other sites

大家有没有发现到,开启了rewrite功能后,"Viewed products block" (最近浏览商品) 链接不对,演示请看http://www.pspstore.cn ,请问如何修改才呢让它正常呢? Hope for your reply,Thanks!

PS:当第一次更换语言的时候有时也会出现找不到网页,但有时又不会


Well, sorry... I think the copy of your script has problem. I don't have this kind of problem at all. And I never heard that this is a problem.. Something may be wrong with the copy of your script....
Link to comment
Share on other sites

  • 2 months later...
大家有没有发现到,开启了rewrite功能后,"Viewed products block" (最近浏览商品) 链接不对,演示请看http://www.pspstore.cn ,请问如何修改才呢让它正常呢? Hope for your reply,Thanks!

PS:当第一次更换语言的时候有时也会出现找不到网页,但有时又不会



now,you site not look viewed module.
you delete it?

this bug repire:
edit this file: /classes/Link.php
search function getProductLink.

ORG:
return ($this->allow == 1)?( _PS_USE_SSL_ . __PS_BASE_URI__ . $id_product->category .'/'.intval($id_product->id).'-'.$id_product->link_rewrite.($id_product->ean13 ? '-'.$id_product->ean13 : '').'.html') : (_PS_USE_SSL_.__PS_BASE_URI__.'product.php?id_product='.intval($id_product->id));

replace to :
return ($this->allow == 1)?( _PS_USE_SSL_ . __PS_BASE_URI__ . ($id_product->category ? ($id_product->category .'/') : '').intval($id_product->id).'-'.$id_product->link_rewrite.($id_product->ean13 ? '-'.$id_product->ean13 : '').'.html') : (_PS_USE_SSL_.__PS_BASE_URI__.'product.php?id_product='.intval($id_product->id));


ok
Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...