Skip to content
This repository has been archived by the owner on Aug 30, 2018. It is now read-only.

Better handling for onboarding in collections #452

Merged
merged 1 commit into from
Jul 14, 2015

Conversation

jonathanmoore
Copy link
Contributor

Currently Timber displays the onboarding message when collection.handle == 'all' returns no products. There is one case where /collection/all does contain products, but if you use non-existent tags on /collection/all it shows onboarding rather than a "no products found" message.

I know it is a pretty rare edge case, but it came up during a Shopify theme review for submission.

@cshold
Copy link
Contributor

cshold commented Jul 14, 2015

Fair enough. Never thought about that case but it does seem like it could have unintended consequences. Thanks for the PR.

cshold added a commit that referenced this pull request Jul 14, 2015
Better handling for onboarding in collections
@cshold cshold merged commit 6c40c80 into Shopify:master Jul 14, 2015
@suture
Copy link

suture commented Sep 23, 2015

With this approach if you delete all collections and hide all products. Onboarding won't display if some of your hidden products have tags.

Instead it displays "Sorry, there are no products in this collection", which doesn't seem correct if you have no collections.

The Brooklyn theme uses this approach, and shows on boarding in the above described scenario.

{% if shop.products_count == 0 %}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants