You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Bundle Recommendation component (and its variations) require an onAddToCart prop - however when Snap Templates uses these components it does not provide the prop. We should look into how we might wire up our standard "Big 3" platforms automatically (using platform functions).
For custom functions we could possibly allow for providing these via the Snap Templates config or perhaps we could register a custom addToCart function in Snap Templates config via a custom plugin for addToCart that takes a function (custom code to run when buttons are clicked) as a parameter.
For all cases, we should likely allow for the addToCart function (either platform package provided or custom) to be accessible to all future components (even custom product cards). This could be something that could exist in the TemplatesStore (library) that could be pulled in dynamically and then connected via a theme overlay that is added into each theme (similar to currency and language).
The text was updated successfully, but these errors were encountered:
The Bundle Recommendation component (and its variations) require an
onAddToCart
prop - however when Snap Templates uses these components it does not provide the prop. We should look into how we might wire up our standard "Big 3" platforms automatically (using platform functions).For custom functions we could possibly allow for providing these via the Snap Templates config or perhaps we could register a custom
addToCart
function in Snap Templates config via a custom plugin foraddToCart
that takes a function (custom code to run when buttons are clicked) as a parameter.For all cases, we should likely allow for the
addToCart
function (either platform package provided or custom) to be accessible to all future components (even custom product cards). This could be something that could exist in the TemplatesStore (library) that could be pulled in dynamically and then connected via a theme overlay that is added into each theme (similar to currency and language).The text was updated successfully, but these errors were encountered: