| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
sub cat div height? | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
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 |
|||||||||
#2
|
|||||||||
|
|||||||||
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 |
|||||||||
|
#3
|
|||||||||
|
|||||||||
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) |
|||||||||
|
#4
|
|||||||||
|
|||||||||
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 |
|||||||||
#5
|
|||||||||
|
|||||||||
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 |
|||||||||
#6
|
|||||||||
|
|||||||||
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 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|