We have partners who offer our products on their site using the buy button sales channel. One such partner is an affiliate and wants their affiliate ref to be used when using the buy button html code.
The html code stops working when the domain attribute has their affiliate ref code added to the url.
here is an example:
function ShopifyBuyInit() {
var client = ShopifyBuy.buildClient({
domain: ‘natural-elements-uk.myshopify.com’,
storefrontAccessToken: ‘6e76c6873fabc267d8cc9c61f8177198’,
});
ShopifyBuy.UI.onReady(client).then(function (ui) {
ui.createComponent(‘collection’, {
id: ‘430655766742’,
node: document.getElementById(‘collection-component-1709639326956’),
moneyFormat: ‘%C2%A3%7B%7Bamount%7D%7D’,
options: {
“product”: {
“styles”: {
“product”: {
.
.
.
Their affiliate ref looks like this ‘?sca_ref=5825791.hOicNlbYZC’ … but how can i include this in the about code
All comments welcome
Nigel