PrestaShop Forum

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum

Jump to content

 

关于rewrite的问题

3 replies to this topic
#1
AndyLAU

    PrestaShop Newbie

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

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

#2
Star

    PrestaShop Addict

  • Members
  • PipPipPip
  • 618 posts

From 1239164887:

大家有没有发现到,开启了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....

#3
Ryan.cn

    PrestaShop Newbie

  • Members
  • Pip
  • 4 posts

From 1239164887:

大家有没有发现到,开启了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

#4
Lonki

    PrestaShop Newbie

  • Members
  • Pip
  • 19 posts
什么版本?
PrestaShop CN site (in consctruction...)
PrestaShop 中文站 (建设中...)