Hi
I have success store a value to cookie using below command in IndexController.php
$cookie=&$this->context->cookie;
$cookie->__set('id', ''001', 0);
I can see the cookie value 001 in my website using echo $cookie->__get('íd');
Now I want get this cookie id value "001" in order-confirmation.tpl to send the URL to other marketing company website when each times customer confirmed the order.
I added below code in order-confirmation.tpl
<iframe src="http://www.clickwise.net/pb?AcountID=A901&OrderID={$order.details.reference}&ID={$_cookie[id]}" width="1" height="1" /></iframe>
I tried using below parameter but also cannot get the cookie value, all will said something error such as Notice: Undefined index: cookie
{$_cookie['id']}
{$_cookie[id]}
{$cookie->id}
{$context->cookie->id}
Could anyone can tell me what parameter I should used to get the cookie value in order-confirmation.tpl. Thanks!
Regards
external script which looks at a URL if it contains a special parameter (for example www.somesite.com/product1?ref=prisjakt) in which ?ref=prisjakt is the parameter. If the URL contains this ref, this script sets a cookie. Then in the order confirmation page I need to get this cookie.