Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Iframe Rate Topic   - - - - -

  • zprahnori
  • Newbie
  • Trial users
  • Join Date: 29-Mar 18
  • 4 posts

Posted 12 June 2018 - 09:34 AM #1



Is there anybody that could help me in the correct direction of getting the iFrame ti work how I want it to work?
Currently making use of a button my code is:

<form method="post" action="dispatch[index.pre|fn_hook1]">

                <input type="button" value="Customise" name="dispatch[index.pre|fn_hook1]" onclick="window.open.href=window.open ('MYURLHERE','popup','width=800,height=800'); return false;">



However I want this to open in the same window so you can still see the shop header and footer.


Any help is appreciated.


Kind Regards


  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12156 posts

Posted 12 June 2018 - 06:27 PM #2

I'm not familar with this syntax inside the dispatch[] 'name'


Normally it is just a controller, mode and optional parameters like:


What is your '|hook1' attempting to do?


If you want it to POST then use the 'name="dispatch...."' approach.  If you want it to use a GET, use a standard anchor tag.


You're getting a new window because you told it to do so with your 'onclick' event.

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.