guest* Posted February 10, 2012 Share Posted February 10, 2012 Can somebody please help me to debug the default blockcart of the theme Prestashop 1.4. alternative ? Other bugs I've just debugged, but I'm not an expert in CSS-Styles... Please find attached the file and picture of the problem. This theme is 2 rows all expands to this new lay-out, but not the cart on some items. Link to comment Share on other sites More sharing options...
Mehdi72 Posted February 11, 2012 Share Posted February 11, 2012 Change the width here : #cart_block dt { width: 175px; text-align: right to : #cart_block dt { width: 265px; text-align: right If you figure out how to expand the text for the item added to the cart so it expands to the edge let me know. Also I strongly recommend downloading google chrome and using that to inspect elements. You can adjust values on the fly. Link to comment Share on other sites More sharing options...
Mehdi72 Posted February 11, 2012 Share Posted February 11, 2012 To bring the check out button in line with the cart button change : #cart_block p#cart-buttons a#button_order_cart { float: right;margin-right:20px } to : #cart_block p#cart-buttons a#button_order_cart { float: right;margin-right:19px; margin-top:1px } Link to comment Share on other sites More sharing options...
guest* Posted February 11, 2012 Author Share Posted February 11, 2012 Hi, thank you very much. It was so quite easy, if you know where and how. Now it's perfect. Link to comment Share on other sites More sharing options...
guest* Posted February 11, 2012 Author Share Posted February 11, 2012 Sorry but again I need your help. IE9 ist making me crazy, all css are broken. Now I have homefeatured totally broken. What is wrong in this file ?? Homefaetured has no css ? All other browsers, Opera, FF, Chrome and Safari (all latest versions) have no problems... I hate IE.. <!-- MODULE Home Featured Products --> <div id="featured-products_block_center" class="block products_block"> <h4>{l s='Featured products' mod='homefeatured'}</h4> {if isset($products) AND $products} <div class="block_content"> {assign var='liHeight' value=215} {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 style="height:{$ulHeight}px;"> {foreach from=$products item=product name=homeFeaturedProducts} <li class="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}clear{/if} {if $smarty.foreach.homeFeaturedProducts.iteration > ($smarty.foreach.homeFeaturedProducts.total - ($smarty.foreach.homeFeaturedProducts.total % $nbItemsPerLine))}last_line{/if}"> <h5><a href="{$product.link}" title="{$product.name|truncate:48:'...'|escape:'htmlall':'UTF-8'} style="height:24px">{$product.name|truncate:48:'...'|escape:'htmlall':'UTF-8'}</a></h5> <div class="product_desc"><a href="{$product.link}" title="{l s='More' mod='homefeatured'}">{$product.description_short|strip_tags|truncate:130:'...'}</a></div> <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')}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.name|escape:html:'UTF-8'}" /></a> <div> {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} <a class="button" href="{$product.link}" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a> {if ($product.id_product_attribute == 0 OR (isset($add_prod_display) AND ($add_prod_display == 1))) AND $product.available_for_order AND !isset($restricted_country_mode) AND $product.minimal_quantity == 1 AND $product.customizable != 2 AND !$PS_CATALOG_MODE} {if ($product.quantity > 0 OR $product.allow_oosp)} <a class="exclusive ajax_add_to_cart_button" rel="ajax_id_product_{$product.id_product}" href="{$link->getPageLink('cart.php')}?qty=1&id_product={$product.id_product}&token={$static_token}&add" title="{l s='Add to cart' mod='homefeatured'}">{l s='Add to cart' mod='homefeatured'}</a> {else} <span class="exclusive">{l s='Add to cart' mod='homefeatured'}</span> {/if} {else} <div style="height:23px;"></div> {/if} </div> </li> {/foreach} </ul> </div> {else} <p>{l s='No featured products' mod='homefeatured'}</p> {/if} </div> <!-- /MODULE Home Featured Products --> Link to comment Share on other sites More sharing options...
Mehdi72 Posted February 11, 2012 Share Posted February 11, 2012 homefeatured.tpl is in /store/modules/homefeatured. I'm not familiar with the file so am not sure where the problem is. I had a similar issue and fixed it by regenerating the thumbnails. Back office > preferences > images As you only have 8 items in homefeatured it might be quicker to reset the module from the back office and start again. Always make a back-up of a file before you start editing it. Link to comment Share on other sites More sharing options...
Mehdi72 Posted February 11, 2012 Share Posted February 11, 2012 Here are some more fixes for this theme. Align the cart button with Cart text From css\modules\blockcart\blockcart.css Change : #cart_block p#cart-buttons a.button_small { float: left;margin-left:20px } to : #cart_block p#cart-buttons a.button_small { float: left;margin-left:3px } Change the length of the product name In the Cart From module > blockcart > blockcart.tpl Change : {$product.name|truncate:13:'...'|escape:html:'UTF-8'}</a> to : {$product.name|truncate:34:'...'|escape:html:'UTF-8'}</a> Link to comment Share on other sites More sharing options...
guest* Posted February 11, 2012 Author Share Posted February 11, 2012 Hi,. thanks. Blockcart is already fixed. Homefeatured is a mess. There is no css. You must make changes in tpl. No I don't have only 8 products. It is random of 8.000. The problem is when the product has features oder minimum per item. So the complet block is destroyed.... Do you know another homefeatured random module ? This one is not possible to fix without a specific css for it. Link to comment Share on other sites More sharing options...
Mehdi72 Posted February 11, 2012 Share Posted February 11, 2012 Hi,. thanks. Blockcart is already fixed. Homefeatured is a mess. There is no css. You must make changes in tpl. No I don't have only 8 products. It is random of 8.000. The problem is when the product has features oder minimum per item. So the complet block is destroyed.... Do you know another homefeatured random module ? This one is not possible to fix without a specific css for it. I have never edited homefeatured.tpl so don't know how it works. Have you tried resetting the module from the back office? Link to comment Share on other sites More sharing options...
panzerca Posted June 8, 2012 Share Posted June 8, 2012 homefeatured module visualitation problem: Not ordered products in the line 31 homefeatured.tpl of theme alternative (/themes/prestashop_alt/modules/homefeatured) original is: <div class="float" style="width:150px;margin-right:10px;"> change for <div class="float" style="width:150px;margin-right:10px;height:300px;"> the parameter height is a integer value, in my case use 300px, after enable in BO>>preferences>>Performance the option "force compiling". Tienda INALDE 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