Search…

X3 Photo Gallery Support Forums

Search…
 
spiritx
Experienced
Topic Author
Posts: 30
Joined: 29 Sep 2008, 07:38

Buy link in a pop-up window possible ???

08 Dec 2008, 16:17

Hi,

one question about the "buy" link : is it possible to make it open in a pop-up window instead of a simple link ?
Maybe we could type an url like this in the admin :
javascript:window.open(..........)
Here is an example of a classical buy link that i would have as a pop-up :
http://www.nature-sauvage.com/portfolio ... _0286.jpg/

Thanks for your help or infos.
Anthony
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

09 Dec 2008, 01:37

hmm ... did you try typing what you suggest? It might work ...

If not, it would require some working around.
 
spiritx
Experienced
Topic Author
Posts: 30
Joined: 29 Sep 2008, 07:38

09 Dec 2008, 02:59

Hi Karl,

so i've made a test and it works in part :
it opens well a pop-up but in the same time another window that i didn't expect...
Image

Here is the config i typed in the admin :
javascript:window.open('http://www.nature-sauvage.com/flextest/ ... menubar=no, status=no, scrollbars=no, menubar=no, width=500, height=400');
Do you have an idea on how making this window disappear ?
Thanks,
Anthony
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

09 Dec 2008, 04:15

Yes, make a function in index.gallery.phtml, something like winopen() and call it like 'javascript:winopen()' then it won't create additional window.

Atleast it shouldnt. :roll:
firedev.com
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

09 Dec 2008, 23:42

I think that the purchase link opens a "_blank" page by default, because I couldn't find any logical reason to not open a purchase page in a new page.

Perhaps if you are not going to use the specific "purchase" button, you should try to create "purchase" as a normal text link in a description.