Forums / Templates, Stylesheets, Page Layout / Link to larger image in product view causing a bit of trouble...

Link to larger image in product view causing a bit of trouble...

Locked

Started by redsky on 3 Mar 2009, 4:46 PM · Views: 875

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
3 Mar 2009, 4:46 PM
#1
redsky avatar

redsky

New Zenner

Join Date:
Mar 2009
Posts:
14
Plugin Contributions:
0

Link to larger image in product view causing a bit of trouble...

http://www.redskyltd.co.uk/henshop/shop/index.php

The link to give the user a larger product image seems to be a bit boinked on my installation. I think it is because of the way I have inserted Zen into my existing design with tables.

When clicked, the link open a new page whicjh is tiny and not expandable, so that the larger image can't be seen.

Link above to view what I mean.

Any solutions?

3 Mar 2009, 5:04 PM
#2
bunyip avatar

bunyip

Totally Zenned

Join Date:
Sep 2004
Location:
Western Massachusetts
Posts:
2,361
Plugin Contributions:
1

Re: Link to larger image in product view causing a bit of trouble...

The way you've built your pages isn't great - if you look at the page source code, you see two sets of html header information. You could achieve that design quite simply within the zencart template system.

As for the popup image page, you can achieve what you want by having a custom page template for that (which in your case would be includes/templates/free_yellow/templates/popup_image_additional/tpl_main_page.php).
You will also need to customize the javascript that calls that popup (includes/modules/pages/product_info/jscript_main.php) so that it is is resizeable and/or scrollable, and then customize the onload resize script that is included in the popup page (includes/modules/pages/popup_image_additional/jscript_main.php), so it resizes to what you want.

Neville
An assumption is what you arrive at when you get tired of thinking...

3 Mar 2009, 5:25 PM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: Link to larger image in product view causing a bit of trouble...

The real solution is to allow Zen Cart to open in a full page and not try to confine it in a table cell. Your view source shows a complete new HTML page with <html> and <head> tags opening inside the table, which is guaranteed to cause some kind of problem.

Your design is very simple to replicate and you have apparently no content in the outer site files as yet, so the best thing would be to move your ZC to the root (redskyltd.co.uk) and have it handle all of the pages, with the forum link going to the forum in a subfolder.

Yeah, what bunyip said...