Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

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

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #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
  #2  
Old 01-17-2006, 03:41 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Flash and Frames? You are crazy!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 01-17-2006, 03:19 PM
 
spence88mph spence88mph is offline
 

Advanced Member
  
Join Date: Jan 2005
Posts: 95
 

Default

I know but you'll see champ!

also got it working last night if anyone's interested.
__________________
-------------------
4.2.2
4.1.9
Reply With Quote
  #4  
Old 08-10-2007, 09:45 AM
 
arthawaii arthawaii is offline
 

Newbie
  
Join Date: Jun 2007
Posts: 1
 

Default 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.
__________________
bye
Reply With Quote
  #5  
Old 08-10-2007, 09:48 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:27 AM.

   

 
X-Cart forums © 2001-2020