Получите значение LocalStorage в PHP
$myvar = "<script> localStorage.getItem('productinfo')['s3_url']</script>";
Rht
$myvar = "<script> localStorage.getItem('productinfo')['s3_url']</script>";