Using the built in snapshot code I am trying to set the actual URL as a snapshot. Example I am trying to set cassette-p-30.html but the return url is product_info.php.
The code to set the URL:
And the code to set the URL for a 'Back' button:PHP Code:<?php
$url=$_SERVER['REQUEST_URI'];
echo $url; //debug, verify URL
$navigation->set_snapshot(array('mode' => '', 'page' => $url));
?>
The form location is on product_info.tpl.php and submits to contact_us.php. On contact_us.tpl.php I have a back button I want connected back to the original product info page. All that is missing is passing the product URL or ID to the contact_us.tpl.php back button but with SEO URLs in place I am unsure how to do this while still using the SEO .html format.PHP Code:<?php
if (sizeof($navigation->snapshot) > 0) {
$origin_href = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']);
$navigation->clear_snapshot();
} else {
$origin_href = tep_href_link(FILENAME_DEFAULT);
}
?>
Any thoughts on how to pass the actual .html URL?





LinkBack URL
About LinkBacks







Bookmarks