zoukankan      html  css  js  c++  java
  • 清除zencart分类页多页后面的&disp_order &sort字符串的方法

    在includesclassessplit_page_results.php页面中的
    function display_links()函数第一行添加如下两行代码即可
    $parameters=preg_replace("/&disp_order=[0-9]*/","",$parameters);
    $parameters=preg_replace("/&sort=[0-9]*/","",$parameters);

    // display split-page-number-links
      function display_links($max_page_links, $parameters = '') {
        $parameters=preg_replace("/&disp_order=[0-9]*/","",$parameters);
        $parameters=preg_replace("/&sort=[0-9]*/","",$parameters);
        global $request_type;

    转载请注明出处!小鱼阁工作室 -专注zencart建站,织梦企业建站,ecshop商城,二次开发,产品采集,模板修改!技术QQ 631992791
  • 相关阅读:
    python中的time模块
    CSS 布局
    8 Function类型
    2 node 核心
    1 node 简介
    13 对象
    JS 算法一
    JS 模块化
    1 谈谈section标签
    JS 练习一
  • 原文地址:https://www.cnblogs.com/afish/p/3922708.html
Copyright © 2011-2022 走看看