Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Slate product section #32

Merged
merged 2 commits into from
Oct 25, 2016
Merged

Slate product section #32

merged 2 commits into from
Oct 25, 2016

Conversation

cshold
Copy link
Contributor

@cshold cshold commented Oct 24, 2016

  • Move show/hide social sharing buttons to product template and featured product sections
  • Change all product.js related selectors to classes and their uses to $('.selector-name', this.$container)
    • Allows multiple sections on the same page without adding section.id to their IDs
    • Best perf option for this type of selectors. Source
  • enableHistoryState setting isn't required and defaults to false. Data attribute only needs to be set on the product template

Editor demo - https://carson-blocks.myshopify.com/admin/themes/132761987/editor
Home page with three featured products - http://carson-blocks.myshopify.com/
Product page with a few options - http://carson-blocks.myshopify.com/products/burton-dunmore-jacket-2016

@Shopify/themes-fed

@cshold cshold self-assigned this Oct 24, 2016
@cshold cshold force-pushed the slate-product-section branch 3 times, most recently from 1667fbc to 779a9f7 Compare October 24, 2016 20:34
this.settings = {
eventNamespace: '.product'
};
var sectionId = this.$container.attr('data-section-id');

this.selectors = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could remove this from the constructor so that when you reference it you don't need this, i.e. selectors.addToCart

@t-kelly
Copy link
Contributor

t-kelly commented Oct 25, 2016

One small thing - otherwise 👍

@cshold cshold force-pushed the slate-product-section branch from 779a9f7 to eeb0760 Compare October 25, 2016 14:43
@cshold cshold merged this pull request into slate-sections Oct 25, 2016
@cshold cshold deleted the slate-product-section branch October 25, 2016 17:24
t-kelly pushed a commit that referenced this pull request Jul 31, 2017
t-kelly pushed a commit that referenced this pull request Jul 31, 2017
t-kelly pushed a commit that referenced this pull request Jul 31, 2017
@lock
Copy link

lock bot commented Oct 26, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants