Git Product home page Git Product logo

ajax-collection-filters-shopify's Introduction

Shopify Section for Collection Filters

A section block for Shopify that adds some nice select boxes for filtering collections by tags.

Allows for separating tag groups into separate select boxes for a clean look.

Ajaxify setting so customers can browse without having the page refresh.

Filters are based on Shopifys default filter system which uses tags, examples include price filter, type filter, brand filter, colours, sizes and many more.

Original by Nitin Sharma forked by Harry K (xigetime)

Usage

  1. Simply drop the collection-filters-section.liquid file into your sections directory.
  2. In your collection.liquid template, add the following to include the section: {% section 'collection-filters-section' %}
  3. In your Shopify Admin dashboard, navigate to Themes > Your Theme > Customise > Then open a collection page and you should see the filters section ready to be configured!

Settings

  1. Enable tag filtering: Enables/disables the collection filters from within the admin
  2. Filter Type: Choose whether you would like to filter by any available tags, or a specific group of tags.
  3. Groups to use in filter: If groups is selected for filter type, here seperated by a comma you can specifiy each filter group.
  4. Ajaxify Filters: Turn this on to fetch the new products/pages via Ajax.
  5. Product container class or id: The products container element selector, everything inside this element will be replaced with the new pages products.
  6. Pagination container class or id: The paginations container element selector, we need to fetch the pagination, otherwise when they go to the next page they will loose their filters.

Group tag format

Group tags, are product tags and should be formatted like so: Group:Value

Examples: Brand:Nike - Size:L - Vendor:Me - Price:Under 10

ajax-collection-filters-shopify's People

Contributors

nitin00709 avatar xigetime avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.