X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   xcart in a frame - strange I know but need help :D (https://forum.x-cart.com/showthread.php?t=19304)

spence88mph 01-17-2006 12:07 AM

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 :D

balinor 01-17-2006 03:41 AM

Flash and Frames? You are crazy! 8O

spence88mph 01-17-2006 03:19 PM

I know but you'll see champ! ;)

also got it working last night if anyone's interested.

arthawaii 08-10-2007 09:45 AM

Re: xcart in a frame - strange I know but need help :D
 
Hi,
I know this is an old post but I'm doing something similar and using X-Cart within a frame. What did you need to change to avoid the access denied error in IE? Thanks.

balinor 08-10-2007 09:48 AM

Re: xcart in a frame - strange I know but need help :D
 
Welcome to X-Cart arthawaii! Please start by reading the forum guidelines (http://forum.x-cart.com/viewtopic.php?t=6489), and posting your X-Cart version in your signature (click the User CP link at the top of the forum). You can find your version by clicking on the 'Summary' link in your admin area.


All times are GMT -8. The time now is 02:45 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.