Obtenez la valeur locale de PHP
$myvar = "<script> localStorage.getItem('productinfo')['s3_url']</script>";
Rht
$myvar = "<script> localStorage.getItem('productinfo')['s3_url']</script>";