Support forum login

©2006-2012 IAAI Software

Contact Us Privacy Policy

You will be transferred....

Submitted by crounauer on Mon, 2006-07-24 11:03.

Hi David,

I was wondering if it would make a difference if while being transfered from the product page on price tapestry to the product page of choice on the merchant site to display a page saying "you are being transefered" as sometimes the product pages do take a while to load.

I am thinking that some people might get impatient if they see a blank screen, rather than text explaining what is happening.

What are your thoughts on this?

Simon.

Submitted by support on Mon, 2006-07-24 12:39.

Hi Simon,

It's not a bad idea if you are working with merchants that you know to have particularly slow websites. You should be able to do this using the meta refresh header, with a customised version of jump.php as follows:

<?php
  
require("includes/common.php");
  
$sql "SELECT merchant,filename,buy_url FROM `".$config_databaseTablePrefix."products` WHERE id=".database_safe($_GET["id"]);
  
database_querySelect($sql,$rows);
  
$product $rows[0];
  
$sql "UPDATE `".$config_databaseTablePrefix."feeds` SET clicks=clicks+1 WHERE filename = '".$product["filename"]."'";
  
database_queryModify($sql,$insertID);
  print 
"<html>";
  print 
"<head>";
  print 
"<meta http-equiv='refresh' content='1;url=".$product["buy_url"]."'>";
  print 
"</head>";
  print 
"<body>";
  print 
"<center>";
  print 
"You are now being transferred to ".$product["merchant"].".";
  print 
"</center>";
  print 
"</body>";
  print 
"</html>";
?>

I think the meta-refresh is pretty well supported across browsers, but do some tests; and perhaps add a link to say "Click here if you are not redirected within a few seconds", the code to do that would be:

  print "<a href='".$product["buy_url"]."'>Click here</a> if you are not automatically redirected within a few seconds.";

Cheers,
David.

Edit: Code updated for latest distribution

Submitted by crounauer on Mon, 2006-07-24 13:01.

Hi David,

I am pretty sure that Meta Refresh is well supported across browsers as kelkoo use it.

Thanks and ill post any updates etc...

Computer Hardware