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

remove Ajaxify regex #324

Merged
merged 3 commits into from Feb 9, 2015
Merged

remove Ajaxify regex #324

merged 3 commits into from Feb 9, 2015

Conversation

mfelser
Copy link
Contributor

@mfelser mfelser commented Jan 28, 2015

Replace buggy regex (invalid if product name contains a “-“) with data directly from the API response

Replace buggy regex (invalid if product name contains a “-“) with data
directly from the API response
@cshold
Copy link
Contributor

cshold commented Jan 28, 2015

Looks great. Thoughts on making sure "Default Title" is never shown on the variant title? This only happens if there are no variant names.

prodVariation = cartItem.variant_title.replace('Default Title', '');

@mfelser
Copy link
Contributor Author

mfelser commented Jan 28, 2015

That can lead to an empty

tag in the cart template. In my store, I check for a default title and use a conditional in the handlebars template.

@cshold
Copy link
Contributor

cshold commented Feb 9, 2015

Love it, great approach. Mergin'

cshold added a commit that referenced this pull request Feb 9, 2015
@cshold cshold merged commit 6c98244 into Shopify:master Feb 9, 2015
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.

None yet

2 participants