New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add selectors mapping so themes can override it #20002
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about the file package-lock.json
being changed but I guess it's optional
You're right I'll kick it |
I did checkout package-lock from upstream/develop, should be fine like this |
Added WIP because I need 1.7.6.x and 1.7.7.x to be merged on develop in order to finish |
12a5a03
to
69b009a
Compare
this.confirmationSelector = prestashop.selectors.checkout.confirmationSelector; | ||
this.conditionsSelector = prestashop.selectors.checkout.conditionsSelector; | ||
this.conditionAlertSelector = prestashop.selectors.checkout.conditionAlertSelector; | ||
this.additionalInformatonSelector = prestashop.selectors.checkout.additionalInformatonSelector; | ||
this.optionsForm = prestashop.selectors.checkout.optionsForm; | ||
this.termsCheckboxSelector = prestashop.selectors.checkout.termsCheckboxSelector; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not directly use prestashop.selectors
rather assign it to an another value ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could be a breaking change and this PR doesn't aim a complete refacto of FO
prestashop !== null && | ||
prestashop.urls !== null && | ||
prestashop.urls.pages !== null && | ||
prestashop.urls.pages.product !== '' && | ||
prestashop.urls.pages.product !== null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
&& at the start ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are no linters on this part until #20080, shouldn't be blocking
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2️⃣ Comments ;)
Thanks @NeOMakinG & @sarahdib |
This change is