Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Moving Description Under Product Image

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 08-06-2010, 06:48 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Moving Description Under Product Image

There are heights being set in a couple of divs around your image - all those need to be cleared. If you remove those height settings, and your description still moves up over the image - set clear:both in the description's div.
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #12  
Old 08-06-2010, 10:33 PM
 
h_griego h_griego is offline
 

Member
  
Join Date: Jun 2010
Posts: 20
 

Default Re: Moving Description Under Product Image

Thanks! When I look at it in Firebug.. I can see the image and image box divs are set with a width and height.. when I remove these in Firebug and add the clear: both it all seems to line up okay. But when I look into the product.tpl file I know where the height setting is for the image div since we added that there but for the image box div I am not seeing where the height setting is at to remove it. This is the code that is for the image box div in the product.tpl file...

Code:
<div class="image-box" style="{if $max_image_width gt 0}width: {math equation="x+14" x=$max_image_width}px;{/if}"> {include file="product_thumbnail.tpl" productid=$product.image_id image_x=$product.image_x image_y=$product.image_y product=$product.product|escape tmbn_url=$product.image_url id="product_thumbnail" type=$product.image_type} </div>

I have looked around everywhere but I am not seeing where the height setting is for the image box div.
__________________
X-Cart 4.3.2

Using the following mods:
On Sale|Magic Thumbs
Reply With Quote
  #13  
Old 08-07-2010, 12:56 AM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Moving Description Under Product Image

You can use webmaster mode to find the template where the image-box div is set. In this case, when you hover over the template names in webmaster mode, I suspect it will point you to the modules/Detailed_Product_Images/popup_image.tpl
If so - delete or comment out the height setting. You do have to execute care when doing this. If all your detailed images are the same height or less than the product thumb, you should be okay. If any are taller - you need to modify the css to allow for the height when you use the mouse-over of the detailed image thumbs. That is why QT coded this height into the template.
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote

The following user thanks gb2world for this useful post:
ScrapProfessor (08-19-2010)
  #14  
Old 08-09-2010, 03:58 PM
 
h_griego h_griego is offline
 

Member
  
Join Date: Jun 2010
Posts: 20
 

Default Re: Moving Description Under Product Image

Thank you! This seems to have worked! We appreciate your help in this!
__________________
X-Cart 4.3.2

Using the following mods:
On Sale|Magic Thumbs
Reply With Quote
  #15  
Old 08-09-2010, 04:28 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Moving Description Under Product Image

You are welcome.

One more thing I noticed on your site - the method you are using for the background image can become problematic when the browser window is narrow. If you make the browser narrower than how you normally view it - you can see that the divs inside your page-container can be outside of the white space you are using to define the center area in your background image.

One possible solution you can try and see if it still meets the requirements of your design is to set the background-color of #page-container to #ffffff.
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:49 AM.

   

 
X-Cart forums © 2001-2020