♥frankl Posted February 13, 2017 Share Posted February 13, 2017 I would like to implement a Load More button and Lazy Loading to replace pagination on the product listings. According to this article it is much more convenient for mobile users (a growing user base not just for e-commerce but for the web in general) when they are going through a list of products so I'd like to give it a try and do an A/B test. What it involves is displaying the first 12 (or whatever number, can be 12, 20, 50, 100) products onto the page, then using a Load More button which queries an ajax file to grab the next x number of products, and then to save on bandwith only loading images as the user scrolls via lazy loading. My problem is, how to get the same identical $listing_sql variable into both the product_listing.php module AND the ajax file. Any suggestions? Quote osCommerce user since 2003! Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.