duanmangxie7131 2016-04-20 11:41
浏览 53
已采纳

分页不适用于SEO URls opencart 2.1.x.

Hi am facing an issue with pagination on Opencart when SEO URLs in setting is enabled.

I am using oepncart v2.1.x. below option is used for SEO enter image description here

And to make URLs SEO i make entry for product SEO URL while adding product like as below enter image description here

But with this pagination is not working at all. I am getting URL directly as

http://example.com/dfgfd-dfgfdg

and when i disable SEO option then i get URL as

http://example.com/index.php?route=product/category&path=61_71&page=1

It is woking when SEO is disabled. Any ideas please?

I have installed extenstion super_seo.xml by orestius to make other URLs SEO like registration and login URLs.

  • 写回答

1条回答 默认 最新

  • duandaotuo5542 2016-04-21 05:11
    关注

    I am posting this as answer as it freaked me to hell from last 2-3 days. I have figured out a code and can be made as below as a change:

    Only tested on OC 2.1.x

    1. find catalog/controller/common/seo_url.php
    2. Use code mentioned here Here {if link does not work in future, feel free to mail me for same}
    3. open index.php in root folder and make entry

      $controller->addPreAction(new Action('common/seo_url'));
      
    4. Go to your DB and find table url_alias and make entry in table as in below image

    enter image description here

    By following above 4 steps everything works like charm and Pagination works perfectly now even with SEO URLs.

    Eg. Url will look like as below:

    http://example.com/index.php?route=account/logout
    will become http://example.com/logout
    

    and Pagination will be

    http://example.com/example-collection?page=2
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 请问各位,如何在Jetson nano主控板的Ubuntu系统中安装PyQt5
  • ¥15 MAC安装佳能LBP2900驱动的网盘提取码
  • ¥400 微信停车小程序谁懂的来
  • ¥15 ATAC测序到底用什么peak文件做Diffbind差异分析
  • ¥15 安装ubantu过程中第一个vfat 文件挂载失败
  • ¥20 GZ::CTF如何兼容一些靶机?
  • ¥15 etcd集群部署问题
  • ¥20 谁可以帮我一下问一下各位
  • ¥15 为何重叠加权后love图的SMD与svyCreateTableOne函数绘制基线表的不一致
  • ¥150 求 《小魔指》街机游戏机整合模拟软件