Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi,
Is there a way to limit the number of product pages a customer can visit?
I'm not refering to how many products they can view, but the number of products on a collections page that they have to click 'next' on, as below:
There's really no reason for any of our users to go through any more than 10 pages of our products, unless if they're doing something malicious, and so we want a message to appear when they reach the 10th page that says they can contact us if they have any questions about our products/services.
We're using the debut theme.
Thanks
@yosef110 wrote:There's really no reason for any of our users to go through any more than 10 pages of our products
That's a really badly flawed premise of customer behavior and how the frontend works to justify changing a stores UX.
Have you personally contact every customer and confirmed that something they would never need or want to do. Do you have analytics or a/b-testing setup to validate assumed behavior.
If customers are that deep it can be because of curiosity or the indicate that a stores product organization , search and filtering are so lackluster that customers result to brute forcing navigation to find things.
To limit pagination use a combination of the paginate object tags parameters and the limit parameter on the relevant for loop in a template (i.e. collection ~= collection.liquid or section collection-template.liquid.
https://shopify.dev/docs/api/liquid/tags/paginate
https://shopify.dev/docs/api/liquid/tags/for#for-limit
Keeping in mind that may not prevent programmatic access to deeper pages by just changing the url or scraping the site. To do that at minimum requires pages to require customer login or third party apps & services.
Good Hunting.
Contact paull.newton+shopifyforum@gmail.com for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with a ☕ Coffee for more answers or donate to eff.org
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025