I am wondering if anyone can assist me to figure out how to access the security token that is now part of Zen Cart. Here is my situation:
- Go to: http://www.clevershoppers.com/index....ducts_id=50789
- Search for John below the description
- Select John from the result
- Click on Buy Now (Don't worry, you're not placing an order for anything)
- Complete the personalization and Click on Add to Cart
When you add to cart (if you're logged in you will get this error message):
Whoops! Sorry, but you are not allowed to perform the action requested.
You are still logged in to your account and may continue shopping. Please choose a destination from a menu.
When you add to cart (if you're not logged in you will get this error message):
Whoops! Your session has expired.
If you were placing an order, please login and your shopping cart will be restored. You may then go back to the checkout and complete your final purchases.
If you had completed an order and wish to review it, please go to your My Account page to view your order.
In either case it appears there's an issue with the security token. That page uses an iframe that's configured like this:
Code:
<iframe src="http://315.iframe.mediak.com?_products=104&_autopickprod=1&_showcd=0" frameborder="0" width="625" height="600"></iframe>
I need to somehow reconfigure this to pass the security token and I am not sure how to configure the url differently or where to get the security token from.
I am thinking of something like this:
Code:
<iframe (...) src="http://315.iframe.mediak.com?_products=104&_autopickprod=1&_showcd=0&__securityToken=$zencart_security_token"></iframe>
I don't know where you get $zencart_security_token from, I assume there is an api for that somewhere.
Thanks.
Bookmarks