Start a new topic

[Need Support] How to retrieve products by period created date in Virto

Hi all. 

Now i need retrieve products follow creation date (from - to) to show its in store front

Have API or Is there a way to do that?


Thank all.


1 Comment

 Use Liquid Sort filter for this task.

 {% assign sortedProducts = collection.products | sort:"createdDate:desc" %}

 

Login or Signup to post a comment