Jump to content

[solved] Need to modifiy a div in Home Featured Products


bow316

Recommended Posts

Hi all, and how are you guys on here and out there?

 

Well I am getting a display error. I need to modify the sixteen columns and call it sixteen columnsHPF. I have added a 2px white border around my pages. But on the home featured products the sixteen columns is adding it's border too. Sixteen columns is on most of the pages.

 

As you can see on the prestashop I am working on. (Does take time to load as this is just for testing purposes before it goes out on the proper site).

 

http://inbreathe.co....ction/index.php

 

 

I have checked on homefeatured.tpl, but couldn't find the div "<div class="sixteen columns">". So does anyone know where it could be?

 

The code below is from the Firebug that I am using to help me modify the theme, but just can't seem to find the sixteen columns.

 

<!-- MODULE Home Featured Products -->
<div id="featured-products_block_center" class="block products_block clearfix container">
[color=#0000ff][b]<div class="sixteen columns">[/b][/color]
</div>
<!-- /MODULE Home Featured Products -->
</div>

 

Hope to hear from anyone on here.

 

Kind Regards and thank you for any help provided on this matter.

 

bow316

 

To the Administrator this post is now solved

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

The colution was that in my themes I created another folder called "modules" and then created another folder called "homefeatured", then placed the "homefeatured" files within there and then edited the "homefeatured.tpl" file.

 

Syntax below:

 

<!-- MODULE Home Featured Products -->
<div id="featured-products_block_center" class="block products_block clearfix container">
<div class="sixteenhf columns">
<h4>{l s='Featured products' mod='homefeatured'}</h4>
{if isset($products) AND $products}
 <div class="block_content">
  {assign var='liHeight' value=250}
  {assign var='nbItemsPerLine' value=4}
  {assign var='nbLi' value=$products|@count}
  {math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines}
  {math equation="nbLines*liHeight" nbLines=$nbLines|ceil liHeight=$liHeight assign=ulHeight}
  <ul>
  {foreach from=$products item=product name=homeFeaturedProducts}
   {math equation="(total%perLine)" total=$smarty.foreach.homeFeaturedProducts.total perLine=$nbItemsPerLine assign=totModulo}
   {if $totModulo == 0}{assign var='totModulo' value=$nbItemsPerLine}{/if}
   <li class="alpha four columns ajax_block_product {if $smarty.foreach.homeFeaturedProducts.first}first_item{elseif $smarty.foreach.homeFeaturedProducts.last}last_item{else}item{/if} {if $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 0}last_item_of_line{elseif $smarty.foreach.homeFeaturedProducts.iteration%$nbItemsPerLine == 1} {/if} {if $smarty.foreach.homeFeaturedProducts.iteration > ($smarty.foreach.homeFeaturedProducts.total - $totModulo)}last_line{/if}

   ">
 <a href="{$product.link}" title="{$product.name|escape:html:'UTF-8'}" class="product_image"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.name|escape:html:'UTF-8'}" /></a>

 {if isset($product.new) && $product.new == 1}<span class="new">{l s='New' mod='homefeatured'}</span>{/if}
 <h5><a href="{$product.link}" title="{$product.name|truncate:50:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'}</a></h5>
 {if $product.show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}<p class="price_container"><span class="price">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span></p>{else}<div style="height:21px;"></div>{/if}
   </li>
  {/foreach}
  </ul>
 </div>
{else}
 <p>{l s='No featured products' mod='homefeatured'}</p>
{/if}
</div>
</div>
<!-- /MODULE Home Featured Products -->

  • Like 1
Link to comment
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...