Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Limit amount of products to 4999 per collection

Limit amount of products to 4999 per collection

Luxurymrkt
Navigator
649 2 128

Hi,

since shopify has a rule of 5000 products per collection filter then the button will disappear

i thought of a work-around but need some help.

I want to limit all my collections to a max of 4999 products. So new arrivals will still show all the newest products coming in but after 4999th product they will delete therefor never crossing the 5000 threshold.

can someone tell me how to implement this.

my site is https://luxurymrkt.com

 

thanks Mike 

Thank You | mike
Replies 6 (6)

Wish-It
Shopify Partner
151 37 41

You would most likely have to build a custom app, which subscribes to webhook and whenever a product is added to collection it would check the count of products in that collection and if it is equal to 4999 it would remove an old product from that collection.

I am founder of WishIt.app, you can create any theme edit task on our app - WishIt.app : Custom CSS / JS and we will do it for you. The first task is FREE!

Don't forget to checkout our reviews on Shopify AppStore.
Luxurymrkt
Navigator
649 2 128

Is there a simple way to override the 5000 cut off filter ? Without using a 3rd party app for $150 a month for the amount of products

Thank You | mike

ZenoPageBuilder
Shopify Partner
1052 203 227

Hi @Luxurymrkt 👋

As @Wish-It has pointed out, you can build a custom app. It is very technical, but you can hire a Shopify partner at https://experts.shopify.com, or Fiverr to build it.

Zeno Page Builder - Build responsive & SEO-optimized Landing pages, Blog posts, Product pages and more...
Learn more at zenobuilder.com
Luxurymrkt
Navigator
649 2 128

Is there a simple way to override the 5000 cut off filter ? Without using a 3rd party app for $150 a month for the amount of products

Thank You | mike
ace51
Tourist
5 0 4

Apparently not. Shopify wants you to pay for some garbage apps. Just raise the limit. Wish I would have known this before choosing shopify, I would have gone another route... 

guest4
Shopify Partner
103 7 24

Hi All! Something like this may be accomplished using Shopify's Flow app. 

 

  1. Create a workflow to add a "New Product" tag when a product is created.
  2. Create another workflow to remove the tags, if the collection is maxed out.

The first workflow is relatively easy to accomplish, but the second deserves some explaining:

 

The second workflow will begin with a Scheduled task to run every X number of minutes, hours, days, or weeks.  In our case, we first checked the collection. We used the collection's ID and then checked if it had more than 4250 products. If it did, then we used our "New Product" tag to get all of the products in reverse order, oldest first. Then we removed the tag. And this worked.