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

sub cat div height?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-26-2010, 07:30 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default sub cat div height?

<span class="subcategories" style="min-width: {$subcat_div_width}px; width: {$subcat_div_width}px; min-height: {$subcat_div_height}px;">

this code controls the height of the div containing the subcat thumb. where is this height calculated?

and why is it adding 44 px to the height of the div?
__________________
xcart 5.1.2
Reply With Quote
  #2  
Old 03-27-2010, 05:45 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: sub cat div height?

I think it is assigned in one of the function php files, can't remember which one right now. Not sure why it is done this way
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
Ashley (03-27-2010)
  #3  
Old 03-27-2010, 12:48 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

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

Default Re: sub cat div height?

These are the files (in 4.2.x):
include/categories.php
include/func/func.category.php
which is also looking at hight/width data from the xcart_images_C table
__________________
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:
Ashley (03-27-2010)
  #4  
Old 03-27-2010, 07:34 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: sub cat div height?

weird way to do this, isn't it? Why are layout elements being assigned in PHP?
__________________
xcart 5.1.2
Reply With Quote
  #5  
Old 03-28-2010, 06:26 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: sub cat div height?

The reason may be because of the calculations and smarty is not good for something like this. Still I think is not a good practice to do this
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #6  
Old 03-30-2010, 01:27 PM
  inkcarts's Avatar 
inkcarts inkcarts is offline
 

Advanced Member
  
Join Date: Sep 2008
Location: Crowley Louisiana
Posts: 45
 

Default Re: sub cat div height?

Funny. This is exactly what is driving me nuts today.

Lyn
__________________
Lyn Askin
X-Cart 4.2.3
MICR Toner
Toner Cartridges
X-Cart Search Engine Optimization
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 12:58 PM.

   

 
X-Cart forums © 2001-2020