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)
-   -   Add popup window - can't get it to work (https://forum.x-cart.com/showthread.php?t=63038)

Warwick 03-21-2012 02:41 AM

Add popup window - can't get it to work
 
I have found several threads about this subject, getting a popup window to appear but can't get it to work.

In a .tpl file I added the following:
---
<a href="popup_info.php?action=templatename" onclick="javascript: return typeof(window.popupOpen) == 'undefined' || !popupOpen('popup_info.php?action=templatename', '{$title|wm_remove|escape:javascript}');" class="popup-link" target="_blank"><img src="{$ImagesDir}/spacer.gif" alt="{$lng.lbl_popup_help|escape}" /></a>
---

With this code the x-cart questionmark icon is shown and it is clickable, opening a popu which should hold the content of hlp_templatename.tpl;
So in skin1/help/ I created the hlp_templatename.tpl file which is called.
But I keep on getting a popup (so at least that part works) but with a message the page can't be found or isn't accessable. I have read several posts about this but can't find an answer.

Any idea what could be going wrong?

Toora Designs 03-24-2012 09:02 PM

Re: Add popup window - can't get it to work
 
what version of XC are you using?

Warwick 03-24-2012 11:07 PM

Re: Add popup window - can't get it to work
 
Version 4.2

Warwick 03-26-2012 05:42 AM

Re: Add popup window - can't get it to work
 
Anybody got this working?

Toora Designs 03-26-2012 09:13 PM

Re: Add popup window - can't get it to work
 
The code you are using doesn't support your version of XC
Code:

<a href="popup_info.php?action=templatename" onclick="javascript:  return typeof(window.popupOpen) == 'undefined' ||  !popupOpen('popup_info.php?action=templatename',  '{$title|wm_remove|escape:javascript}');" class="popup-link"  target="_blank"><img src="{$ImagesDir}/spacer.gif"  alt="{$lng.lbl_popup_help|escape}" /></a>

So this need to be hard coded or you can consider upgrading your site to 4.4.5 which is the latest version

Warwick 03-26-2012 10:54 PM

Re: Add popup window - can't get it to work
 
Unfortunately upgrading is not an option.
Any suggestions on how to properly hardcode this?

JeanB 03-28-2012 07:25 AM

Re: Add popup window - can't get it to work
 
Warwick, I am having the same issue. I have the Pop-Up, but no content from the specified template. There are no symbols & everything is in lower case, but the pop up does not read the content of the template.

Let's hope we find an answer, soon!

Toora Designs 03-28-2012 12:11 PM

Re: Add popup window - can't get it to work
 
I'm not sure if there are any other solutions to this... but try this
http://www.smarty.net/forums/viewtopic.php?p=46991

http://www.allwebco-templates.com/support/S_add_pop.htm
http://www.blazonry.com/javascript/windows.php


All times are GMT -8. The time now is 05:41 PM.

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