oksushi / Shopify-Wish-List

non-app wish list using customer.tags

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shopify-Wish-List

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 template -- make sure that it is not within the add-to-cart form. And you'll need to add a collection template for collection.wishlist.liquid.

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.

For a version that works with variants, check out Jim's version here: https://github.com/jimlakey/Shopify-Wish-List

Note on limitations from one user:
"So I've been testing my wishlist function for months now and I've run into a wall because of the # of tags used for one user. Any account page that I tried to access for that user was not accessible and I got the following error message 'liquid error: memory limits exceeded'."

About

non-app wish list using customer.tags


Languages

Language:Liquid 100.0%