Git Product home page Git Product logo

shopify--products-recommendations-slider-section's Introduction

Shopify: Products recommendations slider section

Preview

Description

This is product recommendation section with slider (Swiper.js). Its take products from Shopify API and then displays them in slider.

Settings:

  • Label text

Card settings

  • Show secondary image while hover.
  • Show rating in card.

Slider settings

  • Max product range.
  • Transition animation.
  • Slider speed. (transition duration)
  • Enable slider autoplay
  • Slider autoplay delay

How to use

  1. Download project
  2. Past all from section folder to your theme folder.
  3. If you dont use Swiper in your project, you need to connect the swiper-bundle.min.css and swiper-bundle.min.js files in layout/theme.liquid like this:
<head>
 ...some code

 {{ 'swiper-bundle.min.css' | asset_url | stylesheet_tag }}

 ...some code

 <script src="{{ 'swiper-bundle.min.js' | asset_url }}"></script>

 ...some code
</head>
  1. To adapt this section to your theme, you can change the styles in file assets/slider-horizontal.css. You also need to select the size of the image in the product card (if you want to use my product card snippet), this can be done in nippets/produt-card.liquid in lines 5 and 7.
  2. Add section to page.
  3. Configure section in theme editor.
  4. Enjoy (~ ̄▽ ̄)~

P.s. I used Bootstap 5 Grid, so if you using another grid system, change html in sections/product-recommendation.liquid. P.P.s.\ My project include product-card snippet, so if you dont need this, you can delete this file and use your snippet instead.

Code

Section

Section

Product card

Product card

Script

This script retrieves products from the Shopify API and then gives them to the slider. Script

shopify--products-recommendations-slider-section's People

Contributors

qcygh avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

mdimannyit

shopify--products-recommendations-slider-section's Issues

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.