Jump to content

Getting cookie from external script


keanu

Recommended Posts

Hello,

 

I have an 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. 

 

Link to the scrip:  http://instore.prisjakt.nu/in.js

 

In order-confirmation.tpl, how can I get the cookie from this script? Because when I write {$cookie->pjref} i get no value at all.

Do I need to call 

function _instore_get_cookie(name)

from the script? The problem is I don't know how :( ... 

 

I appreaciate any help.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...