Jump to content

A couple of changes I need (image size and no description)


Recommended Posts

Hi people, I need your help:
I've been modifying a free theme and came out quite ok. Now I've been asked to change a couple of things (actually 3 :cheese: )

I've attached an image: to the right you'll see what I have, to the left you'll see what I want.

1- Instead of 4 columns in the featured products in the home page, I need 3 columns.

2- Instead of square images I'd like them to be width 1x and height 1.5x or so.

3- I don't want the description text to appear over the picture, because I'll be needing the space.

Thanks in advanced. I need this asap. %-P
I know how much we all love Prestashop.

Analia

8704_q62AOaHmjZr567VqbWqO_t

Share this post


Link to post
Share on other sites
  • 2 weeks later...

Hey San Diego,

I've made the amendments you suggested but no change.... preview images still appear in size 129x129px.

Any idea why? Can you please help?

<!-- MODULE Home Featured Products -->

{l s='featured products' mod='homefeatured'}
   {if isset($products) AND $products}

           {assign var='liHeight' value=360}
           {assign var='nbItemsPerLine' value=4}
           {assign var='nbLi' value=$products|@count}
           {assign var='nbLines' value=$nbLi/$nbItemsPerLine|ceil}
           {assign var='ulHeight' value=$nbLines*$liHeight}

           {foreach from=$products item=product name=homeFeaturedProducts}
               {assign var='productLink' value=$link->getProductLink($product.id_product, $product.link_rewrite)}

{$product.name|escape:htmlall:'UTF-8'|truncate:35}

{$product.description_short|strip_tags:'UTF-8'|truncate:130}





                       {if $displayprice}
{displayWtPrice p=$product.price}
                       {/if}

                       {if $view}
{l s='View' mod='homefeatured'}
                       {/if}

                       {if $addcart}
                           {if $allow_buy_when_out_of_stock OR ($product.quantity AND $product.quantity > 0) OR $product.allow_oosp}
{l s='Add to cart' mod='homefeatured'}
                           {else}
{l s='Add to cart' mod='homefeatured'}
                           {/if}
                       {/if}


           {/foreach}


   {else}

{l s='No featured products' mod='homefeatured'}
   {/if}

<!-- /MODULE Home Featured Products -->

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More