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

Add StorefrontExpressButtons.initialize in cartCallback #563

Merged
merged 1 commit into from Aug 24, 2016

Conversation

xuorig
Copy link
Contributor

@xuorig xuorig commented Aug 9, 2016

Themes using ajax-cart with Amazon Payments button are currently broken because of the script tag inserted along with the button.

Handlebars + script tag in template = 馃挜

Let's add a callback after the cart has been updated where we can initialize every button needed on storefront.

@Krystosterone @cshold please review 馃懐

Next step is modifying shopify-themes with these changes too. @cshold can you shed some light on the difference between ajax-cart.js and ajaxify.js in shopify-themes ?

dont merge until https://github.com/Shopify/shopify/pull/80604

@cshold
Copy link
Contributor

cshold commented Aug 9, 2016

ajaxify.js was the earliest version we wrote for Timber. When it was updated we renamed the file to ajax-cart.js so we could quickly see it was the 'new' version. The updates you made in the themes (private repo to any of you reading) look good too.

@xuorig
Copy link
Contributor Author

xuorig commented Aug 10, 2016

ping @Krystosterone

@Krystosterone
Copy link

鉂わ笍

@cshold
Copy link
Contributor

cshold commented Aug 10, 2016

馃憤

@xuorig
Copy link
Contributor Author

xuorig commented Aug 24, 2016

I'm going to go ahead and merge this unless somebody has last minute objections :)

@cshold
Copy link
Contributor

cshold commented Aug 24, 2016

馃憤

@xuorig xuorig merged commit bc0c644 into master Aug 24, 2016
@xuorig xuorig deleted the add-storefront-buttons-callback branch August 24, 2016 17:38
@rvalyi
Copy link

rvalyi commented Aug 25, 2016

@xuorig If I make no mistake you merged invalid Javascript here. Basically you close a } without opening it before unless I'm crazy here...

@cshold
Copy link
Contributor

cshold commented Aug 25, 2016

You're right.. and I gave it two 馃憤 .. I'll open a fix right now

@xuorig
Copy link
Contributor Author

xuorig commented Aug 25, 2016

omg how did we miss this 馃う thanks for the quick fix @cshold

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.

None yet

4 participants