ZenCart v1.5.5e
Apache server (Hostmatters)
PHP 5.6.31 (Zend: 2.6.0)
MySQL 5.6.37
About_us page
dbio 1.3.0
MainImageReplacer-v1.0
Image_Handler4_v4.3.2
On the main product page (tpl_modules_main_product_image.php), I have a 360 view of a toy via a cluged Image Handler4. This is referenced through ZenCart's "$products_name" or the mysqlDB via ZenCart's "products_id". No problem.
I could not get any 'EZ-Pages' to play with php properly so, I had to cluge together my own setup.
I have a link (echo '<a href="Large360view.php">Larger 360 View</a>';) to a 'Large360view.php' file and I cannot get "$products_name" or "products_id" to come over and play, ergo I have been forced, at this time, to brute force my way to the information in 'Large360view.php' through;
It is working, but it is definitely not a clean and durable line of code.PHP Code:
$page = $_SERVER['HTTP_REFERER'];
$ID = substr($page, strrpos($page, "&products_id=")+13);
Surly there is a better way?
I have tried $_SERVER, $_GET, $GLOBALS, global, $SESSION, etc..
Everything is "NULL" when I am in Large360view.php. I get nothing to follow me.
Any help would be appreciated.
link here
Bookmarks