Limit Number of Product Pages Users Can Visit

Limit Number of Product Pages Users Can Visit

yosef110
Tourist
14 0 2

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:

 

Screenshot 2023-04-15 at 4.51.35 pm.png

 

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

Reply 1 (1)

PaulNewton
Shopify Partner
7721 678 1626

@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.

 

Pagination

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