I have a joomla site which allows customers to sign up and a select a cause to donate part of their subscription to. I need to send links to these causes/organizations to pass along to their donors. If their donors follow the link and come to my site, i would like a cookie placed (based on the link) identifying the cause. That way when they sign up for service, their shopping cart will automatically populate the correct affiliate/cause ID and they will not be able to select another cause.
I am told by the individual who set up the shopping cart that the cart is coded to receive the cookie and set the correct cause.
Example code he gave me: setcookie(“[url removed, login to view]”, [affiliateid value], time() + 864000, “/”, “.mysite”)
The shopping cart NopCommerce and is hosted separately from the joomla site. It is "wrapped" into our site.
I would prefer the cookie not be session based but would rather still be in place if the person returned to the website at a later date.
This is a time critical project that needs to be completed within 1-2 days of accepting the project.