AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: Ollie on October 18, 2015, 11:11:01 PM

Title: Several items not showing in Category
Post by: Ollie on October 18, 2015, 11:11:01 PM
For some reason, my shopping cart is not displaying all the items in the VoIP phones category: https://assistech.com/store/voip-video-ip-phones

It lists a total of 26 items (20 on page 1 and 6 on page 2). Of the 6 on page 2, 5 are repeats from page 1 and 5 other items are not showing at all. When I go back from page 2 to page 1, I can see the missing items. How can I get the shopping cart to display the items correctly (without repeats and without skipping any items at first view)?
Title: Re: Several items not showing in Category
Post by: Basara on October 19, 2015, 02:05:42 AM
Hello.

This is known issue with default Sort by. I am sure it was fixed before.
What is your AbanteCart version?

here similar issue at github https://github.com/abantecart/abantecart-src/issues/151 and https://github.com/abantecart/abantecart-src/issues/229
you can try to apply fix to your cart
Title: Re: Several items not showing in Category
Post by: Ollie on October 19, 2015, 10:06:29 AM
What is your AbanteCart version?

here similar issue at github https://github.com/abantecart/abantecart-src/issues/151 and https://github.com/abantecart/abantecart-src/issues/229
you can try to apply fix to your cart

Version 1.2.0. I tried both fixes on my current category.php file, but they didn't work. Then I downloaded v. 1.2.4  and replaced category.php with the one from the new version. In both instances, I cleared cache in Admin and tried again without success. Please advise as far as what to do next. Please Note: I'm not interested in upgrading to the latest version since I had a lot of customized work done to my shopping cart. I'd rather stick to v. 1.2.0 and only replace the specific files that are required to get this issue resolved.

The programmer who did some work for me reported a glitch at github: https://github.com/abantecart/abantecart-src/issues/279
Title: Re: Several items not showing in Category
Post by: Ollie on October 19, 2015, 07:56:30 PM
I found a temporary fix to the problem. By the way, the glitch is caused by pagination bootstrap adding a sort parameter when moving from one page to another. This solution may not be the best, but it works.

This is what I've done:

I copied the original content of /store/storefront/controller/pages/product/category.php (version 1.2.0) to my shopping cart. Then I edited line 321 from this:

$pegination_url = $this->html->getSEOURL('product/category','&path=' . $this->request->get['path'] . '&sort=' . $this->request->get['sort'] . '&page={page}' . '&limit=' . $limit, '&encode');

to this:

$pegination_url = $this->html->getSEOURL('product/category','&path=' . $this->request->get['path'] . '&page={page}' . '&limit=' . $limit, '&encode');