View Single Post
  #1  
Old 01-17-2006, 12:07 AM
 
spence88mph spence88mph is offline
 

Advanced Member
  
Join Date: Jan 2005
Posts: 95
 

Default xcart in a frame - strange I know but need help :D

Hi Guys,

please save me the frames lecture I know they suck etc etc!!

if someone can work out why it is doing this I would be extremely grateful!!

my frame set looks like this:

container:

<frameset rows="432,*" cols="*" framespacing="0" frameborder="no" border="0">
<frame src="http://myurl.com/example.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
<frame src="http://www.myurl.com/home.php" scrolling="No" noresize="noresize" name="bottomFrame" id="bottomFrame" title="bottomFrame" />
</frameset>

then in the top frame "example.html", I have an html link:

Add to cart

OK, so the problem is, when I run the frameset locally it works fine, I can add a product to the cart without a blink (General Setting direct you to cart after adding a product) (this will be done by flash in case you're interested). BUT when I run the frameset file from the server for some reason it swaps the bottom frame with the top "example.html".

I think it must have something to do with this section in cart.php:

# Redirect
#
if($mode=="add" and $productid) {

if (!empty($login))
db_query("UPDATE $sql_tbl[customers] SET cart='".addslashes(serialize($cart))."' WHERE login='$login'");

if(!empty($active_modules['SnS_connector'])) {
$sns_do_action = array("AddToCart", $productid);
}
if($config["General"]["redirect_to_cart"]=="Y") {
func_header_location("cart.php");
} else{
if(!empty($HTTP_REFERER)) {
func_header_location($HTTP_REFERER);
} else {
func_header_location("home.php?cat=$cat&page=$page ");
}
}
} elseif (!empty($is_sns_action)) {
foreach ($is_sns_action as $a => $v) {
foreach ($v as $v2) {
func_generate_sns_action($a, $v2);
}

}
$is_sns_action = array();
}

if ($redirect_url)
func_header_location($redirect_url);


but I can't find where? I know this all might sound crazy but you'll understand when you see the finished product.

thanks

Spence
__________________
-------------------
4.2.2
4.1.9
Reply With Quote