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

https frame buster

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-08-2004, 04:21 AM
 
ketok ketok is offline
 

Advanced Member
  
Join Date: Jun 2003
Posts: 45
 

Default https frame buster

I'm running a shop inside of a frameset. It's basicly just a bottom frame containing an audio jukebox and x-cart running in the top frame.
It works well, except that when folks reach the https stage of the transaction it is not apparent in the browser's address field.

I would like it so that if folks select credit card on the payment selection page that it would open the next page targeting the TopFrame.

Any suggestions as to where and what to edit?'

thanks!
Reply With Quote
  #2  
Old 03-08-2004, 05:16 PM
 
concepts concepts is offline
 

Senior Member
  
Join Date: Nov 2003
Posts: 104
 

Default

call it with a target="_top" command or you can open it in a "_blank" new window, but I think that will confuse your users since the old frame site will still be underneath, better to just replace the window

You can also consider refreshing the main frame into an https call when it reaches the checkout portion, I think that may be what you're looking for

Change the head.tpl to check 2 sections (not sure how you are loading your frames), one for regular and one for https when in main=checkout section
Reply With Quote
  #3  
Old 03-08-2004, 05:17 PM
 
concepts concepts is offline
 

Senior Member
  
Join Date: Nov 2003
Posts: 104
 

Default

BTW: Sites with frames generally do not do well with the search engines, just so you know.
Reply With Quote
  #4  
Old 03-10-2004, 10:37 AM
 
ketok ketok is offline
 

Advanced Member
  
Join Date: Jun 2003
Posts: 45
 

Default

thanks concepts,

I guess where I lost is in where to insert the target="_top" tag.
It doesn't seem to be as straightforward as selecting the continue button in the payment method table.

Should I be looking at customer/main/checkout.tpl?
or buttons/continue.tpl?
you mentioned head.tpl.
???

seems like this should be simple, but
smartys got me feeling like a dummy.
Reply With Quote
  #5  
Old 03-10-2004, 07:02 PM
 
concepts concepts is offline
 

Senior Member
  
Join Date: Nov 2003
Posts: 104
 

Default

Sorry, I looked at the way it works, the credit card portion is actually an include inside checkout.tpl

the best thing for you to do is change the home.tpl

and make 2 versions

one with the original frame being drawn

and then a separate one

{if $main eq checkout}
dont load frames here

this way, when it is in checkout, it will not load any frames or leave that section out and take the entire window.


etc etc. I am sure one of the pros of x-cart or html can help you code this.
Reply With Quote
  #6  
Old 03-10-2004, 07:06 PM
  groovico's Avatar 
groovico groovico is offline
 

X-Man
  
Join Date: Apr 2003
Location: Firetanksoftware.com
Posts: 2,326
 

Default

look for the "<form action= >" part on the checkout page

add a "target=_top" in the form tag to break out of the frame set, or a "target=_blank" to have it open a new window without the frames
__________________
Groovico

Used by X-carters the world over:
Marketing Manager Pro Bundle For X-cart
Featured Product Manager for X-cart
Feed manager pro for X-cart

http://www.firetanksoftware.com

Celebrating 7 Years of providing quality X-cart Add ons and X-cart Mods for x-cart 3.X to X-cart 4.4.X
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 02:18 PM.

   

 
X-Cart forums © 2001-2020