mama2many Posted March 8, 2010 Share Posted March 8, 2010 I've been working on this site and can't figure out why there are blank product spaces, easier to show than explain - page is here:http://themeltingpotcandleco.net/category.php?id_category=6As you can see, the 1st row shows 3 products, but the 2nd row only shows 1 all the way to the right. Not understanding why. Link to comment Share on other sites More sharing options...
muktadir Posted March 8, 2010 Share Posted March 8, 2010 can you check your product details in BO? make an export and attach it here. Link to comment Share on other sites More sharing options...
mama2many Posted March 8, 2010 Author Share Posted March 8, 2010 can you check your product details in BO? make an export and attach it here. Not sure I understand what you mean. All the products are showing, they're just not 3 to a row like they should be. Link to comment Share on other sites More sharing options...
muktadir Posted March 8, 2010 Share Posted March 8, 2010 ok... do it...go to homefeatured module's folder. open the homefeatured.tpl file. in the line no. 7 you will see this line: {assign var='nbItemsPerLine' value=4}replace with {assign var='nbItemsPerLine' value=3}if it doesn't work, you can hire me to diagnose your problem and solve it.See ya Link to comment Share on other sites More sharing options...
mama2many Posted March 8, 2010 Author Share Posted March 8, 2010 ok... do it...go to homefeatured module's folder. open the homefeatured.tpl file. in the line no. 7 you will see this line: {assign var='nbItemsPerLine' value=4}replace with {assign var='nbItemsPerLine' value=3}if it doesn't work, you can hire me to diagnose your problem and solve it.See ya That would work great if it was the featured products I'm having problems with but those are fine and changing that to 3 only changes the featured products and nowhere else. The problem is shown in the link in the first post. I will keep looking, thanks for trying to help. Link to comment Share on other sites More sharing options...
muktadir Posted March 8, 2010 Share Posted March 8, 2010 oh...sorry...it's the category page. Attach your category.tpl file from your theme. I will check it. Link to comment Share on other sites More sharing options...
mama2many Posted March 8, 2010 Author Share Posted March 8, 2010 Thank you. Here is the file.(it wouldn't attatch) {include file=$tpl_dir./breadcrumb.tpl} {include file=$tpl_dir./errors.tpl} {if $category->id AND $category->active} {if $scenes} <!-- Scenes --> {include file=$tpl_dir./scenes.tpl scenes=$scenes} {else} <!-- Category image --> {if $category->id_image} getCatImageLink($category->link_rewrite, $category->id_image, 'category')}" alt="{$category->name|escape:'htmlall':'UTF-8'}" title="{$category->name|escape:'htmlall':'UTF-8'}" id="categoryImage" /> {/if} {/if} {if $category->description} {$category->description} {/if} {if isset($subcategories)} <!-- Subcategories --> {l s='Subcategories'} {foreach from=$subcategories item=subcategory} getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}"> {if $subcategory.id_image} getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium')}" alt="" /> {else} {/if} getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}">{$subcategory.name|escape:'htmlall':'UTF-8'} {/foreach} {/if} {if $products} {include file=$tpl_dir./product-sort.tpl} {include file=$tpl_dir./product-list.tpl products=$products} {include file=$tpl_dir./pagination.tpl} {elseif !isset($subcategories)} {l s='There is no product in this category.'} {/if} {elseif $category->id} {l s='This category is currently unavailable.'} {/if} Link to comment Share on other sites More sharing options...
muktadir Posted March 8, 2010 Share Posted March 8, 2010 send me the product-list.tpl file Link to comment Share on other sites More sharing options...
mama2many Posted March 8, 2010 Author Share Posted March 8, 2010 product-list.tpl >{if isset($products)} <!-- Products list --> </pre> <ul> {foreach from=$products item=product name=products} {if ($product.allow_oosp OR $product.quantity > 0)}{l s='Available'}{else}{l s='Out of stock'}{/if} {if $product.new == 1}{l s='new'}{/if}{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'} getImageLink($product.link_rewrite, $product.id_image, 'home')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" /> {$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'} {if $product.on_sale} {l s='On sale!'} {elseif ($product.reduction_price != 0 || $product.reduction_percent != 0) && ($product.reduction_from == $product.reduction_to OR ($smarty.now|date_format:'%Y-%m-%d' <= $product.reduction_to && $smarty.now|date_format:'%Y-%m-%d' >= $product.reduction_from))} {l s='Price lowered!'} {/if} {if !$priceDisplay || $priceDisplay == 2}{convertPrice price=$product.price}{if $priceDisplay == 2} {l s='+Tx'}{/if}{/if} {if $priceDisplay}{convertPrice price=$product.price_tax_exc}{if $priceDisplay == 2} {l s='-Tx'}{/if}{/if} {if ($product.allow_oosp OR $product.quantity > 0) && $product.customizable != 2} {l s='Add to cart'} {else} {l s='Add to cart'} {/if} {l s='View'} {/foreach} </ul> <br> <!-- /Products list --><br Link to comment Share on other sites More sharing options...
muktadir Posted March 8, 2010 Share Posted March 8, 2010 ok mate. I am editing the fifth line I am introducing a width attribute for a product box style='width:130px' tells the block to be 130 pixel wide. Adjust the value until you get a nice layout increase or decrease by 10's . Let me know if it helps you Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now