Page 1 of 1

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

Posted: 08 Dec 2008, 16:17
by spiritx
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

Posted: 09 Dec 2008, 01:37
by mjau-mjau
hmm ... did you try typing what you suggest? It might work ...

If not, it would require some working around.

Posted: 09 Dec 2008, 02:59
by spiritx
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

Posted: 09 Dec 2008, 04:15
by Nick
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:

Posted: 09 Dec 2008, 23:42
by mjau-mjau
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.