You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updating from 3.1.27 to 3.1.28
Using v3.1.2.8 a have problem with cookies access
I have a cookie 'offers_favorites' => string '[7265850,7220473,7215264,7201342,7200429]' (length=41)
When i try to get this value in tpl,
{assign var='favoritesOffers' value=$smarty.cookies.offers_favorites|json_decode}
i've got an error
Warning: json_decode() expects parameter 1 to be string, array given
tpl_vars['favoritesOffers'] = new Smarty_Variable(json_decode($_COOKIE), null);
I can't access to cookie key...
The text was updated successfully, but these errors were encountered:
Updating from 3.1.27 to 3.1.28
tpl_vars['favoritesOffers'] = new Smarty_Variable(json_decode($_COOKIE), null); I can't access to cookie key...Using v3.1.2.8 a have problem with cookies access
I have a cookie 'offers_favorites' => string '[7265850,7220473,7215264,7201342,7200429]' (length=41)
When i try to get this value in tpl,
{assign var='favoritesOffers' value=$smarty.cookies.offers_favorites|json_decode}
i've got an error
Warning: json_decode() expects parameter 1 to be string, array given
The text was updated successfully, but these errors were encountered: