Dspooner Posted February 14, 2014 Share Posted February 14, 2014 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 Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 14, 2014 Share Posted February 14, 2014 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. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted February 15, 2014 Share Posted February 15, 2014 I just tried it on our Blueprint skin store with 3000+ items, and the asterisk search found all of them. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted February 17, 2014 Share Posted February 17, 2014 I have added a github feature request to add this to a future release. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.