Randomize the order of Products in "Features Collection"

Hello @ThePrimeWeb Can you please help me!
My website is ypomoni.ro

I am using Prestige theme

Sems that no code is woking for me. Please Help!

Hi there, thanks much but I have an additional question?

I’m using a code with permits me to show all variants in the collection list. Is your code considering only products right?

Do you think it could be even possible to mix up randomly the collection list with my variants, that actually are all in a row (all colours of the same article in a row) www.mille-emozioni.com

I used this code: https://websensepro.com/blog/show-variants-as-separate-products-on-shopify?unapproved=76714&moderation-hash=944ee1057bfa065561b7741ba6c6386c#comment-76714

@ThePrimeWeb we too using Impulse theme and code seems not working and can you please help on this?

At first, I copied and pasted the ThePrimeWeb code into my theme.liquid, but it didn’t work because querySelector(xxxx) and querySelectorAll(xxxx) are different for every theme.

To fix this:

  1. Go to collection.liquid.
  2. Locate the product list container and product item classes.
  3. Update the code accordingly to match your theme’s structure.

If you’re having trouble, you can ask ChatGPT for help. Simply upload your collection.liquid text file and ask ChatGPT to identify your product list and product item classes and modify the code for you.

my working code is:


1 Like

My website is: vietmusic.vn. Please help me. Thanks!

Hey Buddy,

Thanks for your help at all!

we have used minion theme can you please help me with that.

Hey Buddy,

Thanks for your help at all!

we have used minion theme can you please help me with that.

Thanks

Hi,

The first code works a treat for the first “featured Collection” but we have more than one on our home page, is there a way to make other collections work the same?

Could you help me with my store? I would like the two tabs on the main page to appear randomly each time the page is updated.

Store URL https://lojapea.com.br/

Need collection.liquid code

Hello! Sorry for replying months later, but wondering if I could get some help. I tried using ThePrimeWeb’s codes (all of them) but they didn’t work. My products are still not shuffling (website voxintra.com, Habitat theme). I followed your suggestion of using ChatGPT. This was the modified code it provided, which I pasted into my theme.liquid, however I’m still not seeing products shuffling? Thank you for your help!




Would also like the ability for this to work on multiple sections

I am using the Wave theme but the original code seems to work fine.

Appreciate you helping out all these people so far

@ThePrimeWeb can you check my page pls and help me also with that meekilli.com

@All can you guys pls and help me also with that meekilli.com i using prestige theme

Hiya,

Is it possible you could help, I’d like this for my ‘New’ section so it is always showing random items that are in the new collection

https://thefavourstudio.co.uk/

Hi,

The first code works a treat for the first “featured Collection” but we have more than one on our home page, is there a way to make other collections work the same?

Hello, I saw your post about how to add a snippet of code to our theme to randomize products in our Featured Products block. None of the code is visible on the Shopify Community page for some reason.

It’s in the screenshot still, but make sure to read the replies this isn’t some magic bullet for all occasions.

@all To do this properly you really need an app especially for large collections.
Otherwise this just does a fake shuffle of ONLY the current page without incorporating any of the rest of the collection.
On top of that your making the customers browser do this work which will impact performance on big grids.

Merchants that want to do things properly can reach out to me for services; :speaking_head: click profile pic on forums for options to connect.

I’ve developed and app for this, called “Planera” it’s initial free plan can shuffle your featured collection products once a day. It can also shuffle only top 16 or 32 product to keep rest of the collection rather consistent.
I wouldn’t recommend shuffling it every page load as it may present bad user experience when they can’t find product they just saw at your website.