PDA

View Full Version : buy links?


gunneradt
28-03-07, 01:07
is there anyway to make 'buy now' links to open in a new window?

cheers

Neil
28-03-07, 10:12
That's a good one - and one I'd like too

ushop-online
28-03-07, 11:15
just add -- TARGET="_blank" -- to the A HREF code wherever you need to launch a new window.

You can also add a javascript code to control the look and size of the new window but requires more comprehensive coding.

gunneradt
28-03-07, 11:17
what do you mean 'wherever'?

I meant throughout the whole shop. Any idea how we'd do this?

ushop-online
28-03-07, 11:25
Exactly what I said -- wherever -- if you wanted 'Buy' links then there is only one link code that is repeated every time a buy link is printed on a page.

So you change the code to include the new blank window and everytime it loads it includes this addition to the code.

Also if you wish to extend this new window to a controlled size and position you can include javascript -- a good example and explanation can be found here http://www.htmlgoodies.com/beyond/javascript/article.php/3471181

digitalwindow
28-03-07, 11:28
Hi Guys,

If you locate to the SMARTY Config File (\includes\smarty\configs) you will find there are some things that can be configured, including:

PopUpWindow = "0"

If you change this to "1", all merchant sites will open in a new window.

The site title can also be edited within this file:

siteTitle = "ShopWindow Client"

I hope this helps,

Amo

ushop-online
28-03-07, 11:30
That is handy -- thanks -- but I think it was just the buy button he was talking about.

gunneradt
28-03-07, 11:43
just what was required - thanks very much

Neil
28-03-07, 12:34
Many thanks - that's bang on what I was looking for too

gunneradt
28-03-07, 12:45
That is handy -- thanks -- but I think it was just the buy button he was talking about.


I assume this meant all links - buy links and shop links

ushop-online
28-03-07, 13:02
is there anyway to make 'buy now' links to open in a new window?
cheers
Your original message said 'buy' links but changing the code from '0' to '1' will launch both 'buy' and 'merchant site' links to a new window.

If this is what you require fine but if only the buy link then you need to hard code that with the examples I gave.

gunneradt
28-03-07, 13:10
I actually hadn't thought about it but, yes, I want all links to open in a new window

cheers