What's your biggest current challenge? Have your say in Community Polls along the right column.

Display Random Collection in Featured Collection Widget

Display Random Collection in Featured Collection Widget

TwistedCrafts
Visitor
2 0 2

Good Morning Everyone,

I'm looking for a way to display a random collection in the featured collection widget.  I have been looking and see many ways to randomize product order within a collection but no way randomize the collection selection.  Any ideas?

Reply 1 (1)

Guleria
Shopify Partner
3692 741 1039

Hello @TwistedCrafts ,

 

Possible but needs customization.

If you can code please follow or you need to hire a developer:
Define collections name in the top of the loop or widget depending on the setup you have.

If you are working with a developer you can ask him to provide options in theme settings to enter collection names so you can manage them without editing the code.

In the second step use the defined collection with JavaScript and random logic  so every time a customer reloads the page a new collection appears in the widget.

Last step: get the response from the JavaScript and append it in the existing widget or maybe you need to create a new one depending on the existing code.


If problem solved don't forget to Like it and Mark it as Solution!
And if you need help with customization/code part you can contact me for services

You can find the email in the signature below.

 

Thanks

 

 

- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder