Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / additional image location/placement

additional image location/placement

Locked

Views: 1,103

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
19 Mar 2009, 12:19 AM
#1
jay1981 avatar

jay1981

New Zenner

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

additional image location/placement

Hi,

I am trying to move the additional image straight up above the description box. My site is https://www.cashvisionco.com. I know i need to rearrange the code on the TPL_product_info_display.php file but i do not know which part of the code or where to put it. All attempts have resulted in the pages not displaying properly. If i could just remove the product description box this would work too. Any help is appreciated. Thanks

19 Mar 2009, 3:38 AM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,176
Plugin Contributions:
0

Re: additional image location/placement

jay1981:

Hi,

I am trying to move the additional image straight up above the description box. My site is www.cashvisionco.com. I know i need to rearrange the code on the TPL_product_info_display.php file but i do not know which part of the code or where to put it. All attempts have resulted in the pages not displaying properly. If i could just remove the product description box this would work too. Any help is appreciated. Thanks

Ja,
Please post your tpl.product_info_display.php file so we can see what your problem is..

This will help.
https://www.zen-cart.com/tutorials/index.php?article=5

19 Mar 2009, 5:10 AM
#3
jay1981 avatar

jay1981

New Zenner

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

Re: additional image location/placement

I figured it out. Thanks for your help.

19 Mar 2009, 5:12 AM
#4
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,176
Plugin Contributions:
0

Re: additional image location/placement

Ja,
Just curious on what the fix was, for me and other zenners who read this thread..

19 Apr 2010, 11:54 AM
#5
abs007 avatar

abs007

Zen Follower

Join Date:
Mar 2009
Location:
Peterborough UK
Posts:
330
Plugin Contributions:
0

Re: additional image location/placement

Hi Haredo
I have just positioned my additional images next to the main image - I done this by altering the includes?templates>MYTEMPLATE>templates>tpl_product_info_display.php file

Towards the bottom there is a piece of coding that reads

<!--bof Additional Product Images --> <?php /** * display the products additional images */ require($template->get_template_dir('/tpl_modules_additional_images.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_additional_images.php'); ?> <!--eof Additional Product Images -->

I cut the coding and pasted it after

<!--bof Main Product Image --> <?php if (zen_not_null($products_image)) { ?> <?php /** * display the main product image */ require($template->get_template_dir('/tpl_modules_main_product_image.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_main_product_image.php'); ?> <?php } ?> <!--eof Main Product Image-->

I saved then uploaded - this has now given me the desired look.

There is one slight issue however - if you look at the following page you will see that as i have 2 addiditional images the layout is a little off

http://zainabscollection.com/index.php?main_page=product_info&cPath=1&products_id=22

not too sure if anyone can help

thanks

19 Apr 2010, 1:03 PM
#6
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,176
Plugin Contributions:
0

Re: additional image location/placement

Ab,
Thanks for posting the solution, benefits the zen community for others who read this thread..