Limit amount of products to 4999 per collection

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

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.

1 Like

Hi @Luxurymrkt :waving_hand:

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.

1 Like

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

1 Like

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

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…

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.