Guest Posted July 29, 2005 Share Posted July 29, 2005 Hi all, I have just installed CubeCart, a great script thanks. I have modified the Killer template to fit nicely into an iFrame on my existing site. There is just one action that breaks out of the iFrame and that is changing the currency, language would probably I guess do the same but I have removed that. Can anyone please advise how I could prevent a currency change from doing this. Many thanks, Michael Quote Link to comment Share on other sites More sharing options...
Guest Earth Bizz Posted July 29, 2005 Share Posted July 29, 2005 What??? What do you mean by "There is just one action that breaks out of the iFrame" .. What "action"??? Please explain in more clearer language.. My head hurts trying to work out the meaning of your sentences. ;) Quote Link to comment Share on other sites More sharing options...
Guest Posted July 29, 2005 Share Posted July 29, 2005 Thanks for the reply, sorry about your head :-) What I mean is that all my pages work very nicely inside the iFrame. But, if I change the currency using the selection box I get the new updated page on it's own out of the iFrame. Hope that's clearer. You can see what I mean if you go here & then change the currency:- http://www.gozonews.com/index.php?section=20 Thanks again, Michael Quote Link to comment Share on other sites More sharing options...
convict Posted July 29, 2005 Share Posted July 29, 2005 Did you think, that putting index.php onto IFRAME URL is sufficient? In some cases (like currency, lang) , header of the WHOLE page is changing You have to handle some CubeCarts GET parameters outside of IFRAME and putting them onto IFRAME target URL Look at switch.php. OR change currency <option> value for direct using of index.php with apriopriate GET values in skins/Killer/styleTemplates/boxes/currency.tpl Quote Link to comment Share on other sites More sharing options...
Guest Posted July 29, 2005 Share Posted July 29, 2005 Thanks for the info, I am now looking at the two files you mention. I am a Php newbie so I would appreciate it if you could tell me exactly what I need to change please. Thanks again, Michael Quote Link to comment Share on other sites More sharing options...
Guest cyberdesigner Posted July 29, 2005 Share Posted July 29, 2005 One other suggestion is to remove the currency box by commenting out the code on index.php - your other scripts are not using it so default it to whatever and let them use your converter software. That would be real easy for you to do. Rob. Quote Link to comment Share on other sites More sharing options...
Guest Posted July 29, 2005 Share Posted July 29, 2005 Thanks for your reply Rob, Yes I could easily do that, but I would if possible like to do it within the iFrame. I want to avoid making visitors jump around the site if I can. Thanks again, Michael Quote Link to comment Share on other sites More sharing options...
Guest Posted July 29, 2005 Share Posted July 29, 2005 Anyone have any ideas please? Thanks again, Michael Quote Link to comment Share on other sites More sharing options...
Guest Earth Bizz Posted July 29, 2005 Share Posted July 29, 2005 Something to do with changing "target=blank" to "target=self" .. somewhere .. in some file .. not sure .. it's just ringing a bell .. anyone know???? ;) Quote Link to comment Share on other sites More sharing options...
Guest Posted July 30, 2005 Share Posted July 30, 2005 It would have been nice if it was that simple....... Unfortunately it's not. Convict advised changing a variable in currency.tpl but unfortunately I don't know enough about Php yet..... Anyone have any idea what I need to change? Thanks, Michael Quote Link to comment Share on other sites More sharing options...
Guest cyberdesigner Posted August 1, 2005 Share Posted August 1, 2005 Something to do with changing "target=blank" to "target=self" .. somewhere .. in some file .. not sure .. it's just ringing a bell .. anyone know???? That would be <base target = "ID of IFRAME"> which incedently would go inside the head tags of the page inserted into the iframe! Quote Link to comment Share on other sites More sharing options...
Guest Posted August 1, 2005 Share Posted August 1, 2005 Many thanks for the reply, that really is a helpful reply. Thanks again, Michael Quote Link to comment Share on other sites More sharing options...
Guest Posted January 4, 2006 Share Posted January 4, 2006 Actually, the best solution to this issue is to edit the following equivalent line in the language.tpl and currency.tpl files located in the styleTemplates/boxes directory for the skin you are using. I changed: <select name="lang" class="dropDown" onchange="jumpMenu('parent',this,0)"> to <select name="lang" class="dropDown" onchange="jumpMenu('self',this,0)"> This works a treat! Dave Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.