Giter VIP home page Giter VIP logo

shopify-wish-list's Introduction

Shopify-Wish-List

IMPORTANT CHANGE

@zakhardage reports that the wish list no longer works. Check out his repo for details. I'm now taking this off my clients site.

CHANGES IN THIS BRANCH:

  • Works with product variants
  • Assumes you are using Shopify's option_selection.js
  • Assumes you are using jQuery
  • Shows message when wish list is empty
  • Uses AJAX to add items to wish list
  • Uses AJAX to remove items from wish list
  • Added images to wish list
  • Option to remove items from wish list when added to cart

Also, it will (I think—I haven't tested it) be reliant on using product.selected_or_first_available_variant instead of just product in your product template. See the Skeleton Theme for examples of this.


non-app wish list using customer.tags

To make this wish list work, you'll need to add an include tag for wishlist-product.liquid in your product page -- make sure that it is not within the add-to-cart form. And you'll need to add an include tag for wishlist-page.liquid in a page with the handle wish-list.

There's no in-line styling so this should pick up your product and page template styling.

The wish list works by adding the product id to the customers account tags. To remove the item, another tag is added with an "x" preceding the product id. Re-adding the item to the wish list adds another "x". At this point there are three tags for the one product. If a customer went crazy with the wish list, adding and removing and re-adding products, it could fill up their customer tags quickly. If there's any issue with their account or interference with an app (like a wholesale app), I'd look first to their tags.

shopify-wish-list's People

Contributors

jimlakey avatar zakhardage avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  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.