News:

AbanteCart v1.4.2 is released.

Main Menu
support

Several items not showing in Category

Started by Ollie, October 18, 2015, 11:11:01 PM

Previous topic - Next topic

Ollie

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)?
Assistive technologies for people with special needs:
https://assistech.com/store/

Basara

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

Ollie

#2
Quote from: Basara on October 19, 2015, 02:05:42 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
Assistive technologies for people with special needs:
https://assistech.com/store/

Ollie

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');

Assistive technologies for people with special needs:
https://assistech.com/store/

Forum Rules Code of conduct
AbanteCart.com 2010 -