Affiliate Tryouts
Just thought I will create some products here and describe their behaviour or whatever I observed to document it.
1) Pink Sneakers with multiple retailers?
WDN Link: https://admin.whatdropsnow.com/products/129381
It seems they only have one retailer (the above ones have a spider icon on the left and have not been confirmed. When you scroll down there is only one underneath confirmed.
Conclusion: this product does not have multiple retailers, just unconfirmed ones. Here is the rendered Module:
2) Original Currency
Underneath is a ProductModule with "Display Original Currency" set to true.
Underneath is the same ProductModule with "Display Original Currency" set to false.
Conclusion: It seems this flag is converting the setup EUR from WDN into Dollars automatically. IMO we do not need to do this any longer and can simply Display whatever currency the author wants to show.
Proposal:
get rid of "Display Original Currency" in DatoCMS
add a free text field with Currency to WDN products in DatoCMS and prefill it with USD
3) Multiple Retailers vs One Retailer
WDN Admin: https://admin.whatdropsnow.com/products/85515
Here are two retailers confirmed, which is why there is a "Where To Shop" button displayed on frontend.
With exclusive Retailer being set, we limit the number to a single one (DIOR):
or to StockX:
The exclusive retailer is the slug of the retailer, not the name.
4) Auto Affiliation
Keep in mind that this article has a flag to not be auto affiliated.
Retailer Link: https://www.nike.com/gb/t/field-general-shoes-KC96X8/IB2323-001
Notice 1:
The module above uses "Link Override" field. When CMD + Clicking on the link (force open in new tab), you will notice that when hovering over the button again that the URL stayed the same. So this link DOES NOT go through hs-outbound service
Notice 2:
When CMD + Clicking on the above "Retailer Link" it will rewrite the link to https://go.hsnob.co/?u=https%3A%2F%2Fwww.nike.com%2Fgb%2Ft%2Ffield-general-shoes-KC96X8%2FIB2323-001&cp=C4crEBh2RMWuHBcYL7t1SA&r=https%3A%2F%2Fwww.hsnb.io%2Fpreview%2F%3Fid%3DC4crEBh2RMWuHBcYL7t1SA%26type%3Darticle%26token%3DeyJhbGciOiJIUzI1NiJ9.eyJpZCI6IkM0Y3JFQmgyUk1XdUhCY1lMN3QxU0EiLCJpYXQiOjE3NDEzMzY0MjgsImlzcyI6InVybjpoc25iLWNtczppc3N1ZXIiLCJhdWQiOiJ1cm46aHNuYi1lZGl0b3I6YXVkaWVuY2UiLCJleHAiOjE3NDM5Mjg0Mjh9.rvUm-qqupVwJYHGDmnEsM-j38vbU4yXcBjWu4hjd8tA&cme=web&cmo=text_link&a=0
This link now flows through hs-outbound service. Notice the a=0 at the end: This means auto affiliation is turned off for this article and the hs-outbound will respect that. You can also observe that there is the original url being passed as u=... to the service.
Running the above link through curl we can observe:
curl -Lv https://go.hsnob.co/\?u\=https%3A%2F%2Fwww.nike.com%2Fgb%2Ft%2Ffield-general-shoes-KC96X8%2FIB2323-001\&cp\=C4crEBh2RMWuHBcYL7t1SA\&cme\=web\&cmo\=text_link\&a\=0 -o /dev/null
Host: go.hsnob.co
< HTTP/2 302
< location: https://www.nike.com/gb/t/field-general-shoes-KC96X8/IB2323-001
The location we sent the user to is matching after the redirect chain.
If we just change the a=0 to a=1 and do the same curl:
curl -Lv https://go.hsnob.co/\?u\=https%3A%2F%2Fwww.nike.com%2Fgb%2Ft%2Ffield-general-shoes-KC96X8%2FIB2323-001\&cp\=C4crEBh2RMWuHBcYL7t1SA\&cme\=web\&cmo\=text_link\&a\=1 -o /dev/null
HOP 1: go.hsnob.co
< HTTP/2 302
< location: http://www.awin1.com/cread.php?awinmid=16327&clickref=Yjmnf2QU10HQ36G1wroQTy&awinaffid=404344&p=https%3A%2F%2Fwww.nike.com%2Fgb%2Ft%2Ffield-general-shoes-KC96X8%2FIB2323-001
HOP 2: www.awin1.com
< HTTP/1.1 301 Moved Permanently
< Location: https://www.awin1.com/cread.php?awinmid=16327&clickref=Yjmnf2QU10HQ36G1wroQTy&awinaffid=404344&p=https%3A%2F%2Fwww.nike.com%2Fgb%2Ft%2Ffield-general-shoes-KC96X8%2FIB2323-001
HOP 3: www.awin1.com
< HTTP/1.1 302 Moved Temporarily
< Location: https://www.nike.com/gb/t/field-general-shoes-KC96X8/IB2323-001?CP=EUNS_AFF_AWIN_UK_404344_httpswwwwhatdropsnowcom_169839%7C209847%7C814261%7C814263%7C814267&utm_source=httpswwwwhatdropsnowcom&utm_medium=affiliate&utm_campaign=404344&utm_content=169839%7C209847%7C814261%7C814263%7C814267&sv1=affiliate&sv_campaign_id=404344&awc=16327_1741342821_3094783e4f9fe5ed9f53ba6d86dcb0a0
HOP 4: www.nike.com
< HTTP/2 200
Conclusion: We can see it finds a affiliation configuration for nike and sends the user to that affiliated URL. After that redirect chain the url ended up being: https://www.nike.com/gb/t/field-general-shoes-KC96X8/IB2323-001?CP=EUNS_AFF_AWIN_UK_404344_httpswwwwhatdropsnowcom_169839%7C209847%7C814261%7C814263%7C814267&utm_source=httpswwwwhatdropsnowcom&utm_medium=affiliate&utm_campaign=404344&utm_content=169839%7C209847%7C814261%7C814263%7C814267&sv1=affiliate&sv_campaign_id=404344&awc=16327_1741342821_3094783e4f9fe5ed9f53ba6d86dcb0a0