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
I'm implementing now Affiliate and AffiliatePluginAmazon with the intention to use the new aff.convert() method, added in v5 after our last thread here: #31 (comment)
However, as I'm putting it all together in my React app, I noticed it is throwing me out an error in the console when the aff.convert() method is called.
I'm adding below parts of the relevant Affiliate and AffiliatePluginAmazon code for a greater context of what I have running over here that produce this error.
// ...importAffiliatefrom"affiliate";importAffiliatePluginAmazonfrom"affiliate-plugin-amazon";// ...constamazonAff=AffiliatePluginAmazon(Affiliate,{tags: {us: "amzapplink-20",// for USA, requiredgb: "",// for UKde: "",// for Germanyfr: "",// for Francejp: "",// for Japanca: "",// for Canadacn: "",// for Chinait: "",// for Italyes: "",// for Spainin: "",// for Indiabr: "",// for Brazilmx: "",// for Mexico},debug: false,// verbose logging into the console, default offlocale: null,// manually set the country code of the browser, default automaticmodifyDomain: true,// modify domains like amazon.com to amazon.co.uk based on locale, default on});// ...// Testing convert function.console.log(amazonAff.convert("https://www.amazon.com"));
The text was updated successfully, but these errors were encountered:
npm should throw a peer dependency mismatch when installing these packages together. I haven't gotten around to updating affiliate-plugin-amazon since version 3.x.x. Do you have use for the multi-locality features in affiliate-plugin-amazon? I wasn't too sure how much use this plugin would get. This library uses the language data for each individual to roughly match them to an Amazon link for their locality.
The example you are showing would be easier with just affiliate. Let me know if you are intending to use the additional functionality.
Hey @russellsteadman! Yes, that is correct. I am also planning to utilize the multi-locality feature in my solution. It will prove to be very helpful. Thank you!
Hi @russellsteadman,
I'm implementing now
Affiliate
andAffiliatePluginAmazon
with the intention to use the newaff.convert()
method, added in v5 after our last thread here: #31 (comment)However, as I'm putting it all together in my React app, I noticed it is throwing me out an error in the console when the
aff.convert()
method is called.I'm adding below parts of the relevant
Affiliate
andAffiliatePluginAmazon
code for a greater context of what I have running over here that produce this error.The text was updated successfully, but these errors were encountered: