Hi there!
I want to set up a e-commerce store where customers can place orders via a reseller.
What I have done:
The resellers are a collection list, if I go on the cms collection page of a reseller I see the shop.
What I struggle with:
If a customer coming from a cms collection page of a reseller I want the checkout to know from which reseller csm collection page the customer came from. I have tried to set a cookie in the reseller cms collection page:
<script>
document.cookie = "Reseller=Name";
</script>
(Name is linked to the name of the collection page)
And I wanted to recall that cookie in the notes additional information box in the checkout:
<script>
window.onload = function WindowLoad(event) {
document.getElementById('Notes').value = document.cookie;
}
</script>
It shows me three cookies (stripe and WF) but not the cookie that I set beforehand which should include the name of the reseller.
Do you know what am I doing wrong here?
Thanks
Jakob