Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problem split page product_listing


Frisser

Recommended Posts

I have installed Products Specifications module, works great only I have a problem with the split page function.

 

This is the result of page 1: products_filter.php?f4[0]=essenza&cPath=29&sort=6a

if I go to page 2 it goes to: products_filter.php?f4=Array&cPath=29&sort=products_name&page=2

 

This isn't working. products_filter.php uses the standard product_listing.php.

 

A different function which works is this: Page 1 -> products_filter.php?f3=10-50&cPath=29&sort=6a

If I go to page 2: products_filter.php?f3=10-50&cPath=29&sort=products_name&page=2

 

So for some reason the ?f4[0]=essenza isn't working if I want to split pages.

 

Where must I find the solution? In split_page_results.php?

Link to comment
Share on other sites

Ok it's this function in general.php

 

////
// Return all HTTP GET variables, except those passed as a parameter
 function tep_get_all_get_params($exclude_array = '') {
   global $HTTP_GET_VARS;

   if (!is_array($exclude_array)) $exclude_array = array();

   $get_url = '';
   if (is_array($HTTP_GET_VARS) && (sizeof($HTTP_GET_VARS) > 0)) {
     reset($HTTP_GET_VARS);
     while (list($key, $value) = each($HTTP_GET_VARS)) {
       if ( (strlen($value) > 0) && ($key != tep_session_name()) && ($key != 'error') && (!in_array($key, $exclude_array)) && ($key != 'x') && ($key != 'y') ) {
         $get_url .= $key . '=' . rawurlencode(stripslashes($value)) . '&';
       }
     }
   }

   return $get_url;
 }

 

The problem is the [] in the URL.

Must I change something in this function to let my problem work?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...