Jump to content

See all inventory on a search on cube cart


Dspooner

Recommended Posts

Hi

 

i would like to be able to contduct a search on my site that brings back every product i have listed

 

on other shopping cart providers sites i have used a * and this brings back all the products is there a way to do this on cube cart

 

please note i want to do this from were the customer views the site and not within admin.

 

regards

 

daniek

Link to comment
Share on other sites

Technically, that's possible. But allow us to ask, when you use an asterisk, what do you actually get?

 

My experiments with CC527 returns all two products (that's all I have in my development installation).

 

Practically, however, CubeCart wants to limit the query to 100 records.

 

In the file /classes/category.class.php, near line 1028, find:

        if (strtolower($page) != 'all') {
            $page    = (is_numeric($page)) ? $page : 1;
            $limit    = sprintf('LIMIT %d OFFSET %d', (int)$per_page, $per_page*($page-1));
        } else {
            $limit    = 'LIMIT 100';
        }

Change the 100 to whatever you think your server environment can handle. This is a limit imposed when the customer gets the first page of ten, and then clicks "All" on the pagination sequence.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...