You are here:  » transfer data between pages

Support Forum



transfer data between pages

Submitted by michael on Sat, 2012-07-28 17:40 in

Hi again David, sorry to trouble you
Ive been trying to transmit the fields days & tcurrency i tried get session and post but i cant get it to do what its supposed to im not sure if there may be a conflict with some of the code and i realised you have allready called session on a page so i was wondering id there an easy way to transmit the data to pto_product from pto_search here's what i have at the moment this is the script from search:

{code saved}

Best Regards

Michael

Submitted by support on Mon, 2012-07-30 08:29

Hi Michael,

In pto_common.php you'll find the following code at line 48 that generates product page URLs throughout the script:

return get_bloginfo('url').$pto_config_productBaseHREF.pto_common_hyphenate($product->normalised_name).".html";

...if you REPLACE that with:

$retval = get_bloginfo('url').$pto_config_productBaseHREF.pto_common_hyphenate($product->normalised_name).".html";
if (isset($_GET["days"])) $retval .= "?days=".$_GET["days"];
if (isset($_GET["tcurrency"])) $retval .= "&tcurrency=".$_GET["tcurrency"];
return $retval;

...then your days and tcurrency variables should be available on the product page...

Cheers,
David.
--
PriceTapestry.com

Submitted by michael on Mon, 2012-07-30 11:01

thanks David
that got everything working

Best regards,
Michael