Author Topic: Several items not showing in Category  (Read 4385 times)

Offline Ollie

  • Sr. Member
  • ****
  • Posts: 253
  • Karma: +27/-1
    • View Profile
    • Assistech
Several items not showing in Category
« 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)?
« Last Edit: October 18, 2015, 11:12:45 PM by Ollie »
Assistive technologies for people with special needs:
https://assistech.com/store/

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5819
  • Karma: +274/-2
    • View Profile
Re: Several items not showing in Category
« Reply #1 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

Offline Ollie

  • Sr. Member
  • ****
  • Posts: 253
  • Karma: +27/-1
    • View Profile
    • Assistech
Re: Several items not showing in Category
« Reply #2 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
« Last Edit: October 19, 2015, 04:47:20 PM by Ollie »
Assistive technologies for people with special needs:
https://assistech.com/store/

Offline Ollie

  • Sr. Member
  • ****
  • Posts: 253
  • Karma: +27/-1
    • View Profile
    • Assistech
Re: Several items not showing in Category
« Reply #3 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');

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

 

Database Error

Please try again. If you come back to this error screen, report the error to an administrator.