I wrote a code for one of our store and it is not working the way I want. I request your support for this.
This is a check for every item on our collections page. I get the tag that contains the base_sku name of the product and I look for the products with this tag in all products. Then I pull the tags containing color from the products with the same base_sku and link them under the main product. I'm using pagination here and I know I can pull up to 1000 items. What I need is to be able to loop the pagination as many times as I want per product, regardless of the page number. Because in this way, it only checks for the first 1000 products on the first page of the collection, and when I switch to the second page, it checks the number of remaining products.
That does not look like efficient code at all and there's likely better ways to handle it. For the moment I'll ignore that.
Pagination will only be called once on a page since it's rendered via the server with a Collection Drop being created for that view. IF you need to call it again on the same page that data should be coming from AJAX calls instead. So the call will be made in the background to get page 2, 3, 4, etc. When you do that you really shouldn't need to call 1000 products which will dramatically increase your page load times.
I jump on these forums to help and share some insights. Not looking to be hired, and not looking for work. Don't hand out staff invites or give admin password to forum members unless absolutely needed. In most cases the help you need can be handled without that. ★ http://freakdesign.com.au ★