Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Category opens in a pop up

Category opens in a pop up

Locked

Views: 1,156

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
11 Jan 2009, 7:11 PM
#1
cornick avatar

cornick

New Zenner

Join Date:
Jan 2009
Location:
Upstate, NY
Posts:
40
Plugin Contributions:
0

Category opens in a pop up

When a user clicks on a category, I'd like it to open a pop up window.

Is this possible?

11 Jan 2009, 9:01 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Category opens in a pop up

It could be done. You'd need to find the code that generates each link to a category (there are probably less of them than you'd expect) and tweak the parameters passed to the function that calls then to add 'target="_blank"' to each one. That would cause it it open in a new tab or window.

That said it's a really bad idea. This is not how sites usually work, and would be both confusing and irritating. Many people will completely miss the fact that you've opened a new tab in their browser and just think your site doesn't work. And it goes against the best practise, which would say that users already have the option to right click to view the result of a click in a new tab or window, by forcing it, you deprive them of an option.

11 Jan 2009, 10:40 PM
#4
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Category opens in a pop up

Once they have designed their ring, how are you going to get the programming to "add to cart"?

11 Jan 2009, 11:14 PM
#5
cornick avatar

cornick

New Zenner

Join Date:
Jan 2009
Location:
Upstate, NY
Posts:
40
Plugin Contributions:
0

Re: Category opens in a pop up

No idea. Frankly the guy that I'm putting this together for doesn't even care. He just wants it there so people can see what they can do.