Right now the SDK doesn't uniquely identify the brand that is using the SDK. This is a problem because the skus are only unique to the brand, not globally.
To resolve this, the SDK needs some kind of init function that should accept the brand_id we give to the partner. This will allow the sdk to access that brand id whenever we need it.
Right now the SDK doesn't uniquely identify the brand that is using the SDK. This is a problem because the skus are only unique to the brand, not globally.
To resolve this, the SDK needs some kind of
init
function that should accept thebrand_id
we give to the partner. This will allow the sdk to access that brand id whenever we need it.This brand id is something we'll need to use in this ticket https://github.com/TheFittingRoom/shop-sdk/issues/27
The brand id for the current shopify site is 1