Jump to content

[SOLVED]Problem with 3 products/row on homefeatured


Recommended Posts

Hello,

I've been reading this forum for a while, but i still have a problem with my website that i don't know how to solve.

 

On my website, http://vanzari-hvac.ro/index.php, on homefeatured (Produse Recomandate) i want 3 products/row , but i want the images to be wider than 124 x 124 ,  as they are right now.

 

I've try to modify them from Preferences -> Images but no result. 

 

Here is the homefeatured.css : http://pastebin.com/DGBVV7AC

 

Please help, thank you!

Edited by mitzanu (see edit history)
Link to comment
Share on other sites

Thanks for the screen shots. It looks like you have something else going on with your theme. I see an additional image group -- home_featured -- this is not default. I suspect that this is the image dimension that is supposed to be used in home featured but there must be some problem in your homefeatured.tpl. That is just my guess. Can you post for us the contents of your homefeatured.tpl? Maybe that will reveal what the problem is.

 

Marty Shue

Link to comment
Share on other sites

Sorry I forgot about your thread. The simplest way I see to fix this is by modifying your tpl as follows:

<a href="{$product.link|escape:'html'}" title="{$product.name|escape:html:'UTF-8'}" class="product_image"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')|escape:'html'}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.name|escape:html:'UTF-8'}" />{if isset($product.new) && $product.new == 1}<span class="new">{l s='New' mod='homefeatured'}</span>{/if}</a>

Change to

<a href="{$product.link|escape:'html'}" title="{$product.name|escape:html:'UTF-8'}" class="product_image"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_featured')|escape:'html'}" height="224" width="225" alt="{$product.name|escape:html:'UTF-8'}" />{if isset($product.new) && $product.new == 1}<span class="new">{l s='New' mod='homefeatured'}</span>{/if}</a>

Regenerate home_featured images if necessary.

 

Marty Shue

Link to comment
Share on other sites

I just did that, but no effect......but they are still the same. 

 

It appears you did not modify the correct tpl.

 

I am still seeing

<img width="124" height="124" alt="Buderus U052" src="http://vanzari-hvac.ro/img/p/2/9/29-home_default.jpg">

this would not be possible if you edited the proper tpl. Exactly which file did you edit?

 

Marty Shue

Edited by Carolina Custom Designs (see edit history)
Link to comment
Share on other sites

Hey thank's, it worked!

 

Of course it did ;) You are welcome!

 

 

But now i have a problem with the text.... it doesnt show anymore :( i think i'll have to edit the css file, but i don't know what

 

 

Yes, you have a fixed height of 240px in

modules/homefeatured/homefeatured.css

#featured-products_block_center li {
    height: 240px;
    margin-right: 10px;
    padding: 10px 0;
    width: 220px;
}

Increase this to 340px to solve the problem.

 

Don't forget to edit your original post and marked the thread as [sOLVED].

 

Marty Shue

Link to comment
Share on other sites

×
×
  • Create New...