Move out of stock to end of collection with Flow

Why does a paid app, Mechanic, have more templates and abilities that the built-in Shopify Flow app which has been available for way longer to Plus customers.

I want to sort my collections by best seller rank AND move all out-of-stock products to the end of each collection. Can this be done with Flow?

1 Like

Nothing? Not even a lot of views?

Are there going to be updates to this app with more actions?

Or more custom actions?

Can i create custom actions?

Hi @DavidCab !

We are adding more actions to Flow constantly (here’s the current list) - and adding additional functionality within workflow editing.

You can absolutely define custom triggers and actions in Flow: documentation is here.

@joshbeckman The link you provided to define custom triggers and actions is related to custom apps.I don’t think i should need to create a custom app for this but i guess it’s the only way. Unless i pay for an app that provides the triggers and actions i want.

I would like to have this option as well.
There are some apps around for this, but they overwrite my manual sort order after every ‘push down’ cycle. I want to stay flexible in sorting products manually myself, as I would like to merchandise our fashion products the way we want them to appear for our user.
I just need the OOS products moved to the bottom.

Solved this myself.

Revised the ProductListWrapper inside my collection.liquid section code to this.


        

          {%- for product in collection.products -%}
            {%- if product.available == true -%}
              

                {%- render 'product-item', product: product, show_product_info: true, show_vendor: section.settings.show_vendor, show_color_swatch: section.settings.show_color_swatch, show_labels: true -%}
              

            {% endif %}
          {%- endfor -%}

          
            {%- for product in collection.products -%}
              {%- if product.available == false -%}
                
                  {%- render 'product-item', product: product, show_product_info: true, show_vendor: section.settings.show_vendor, show_color_swatch: section.settings.show_color_swatch, show_labels: true -%}
                

              {% endif %}
            {%- endfor -%}
          
        

        
      

it will not display out of stock product on last page of the collection

1 Like

This only moves sold out products to end of the page but not on end of the collection.