HelenaJ Posted February 27, 2014 Share Posted February 27, 2014 Hi, I have some doubts to change the featured products... How do you remove "View"? How can I put the price after the name? Link to comment Share on other sites More sharing options...
vekia Posted February 27, 2014 Share Posted February 27, 2014 you have to modify homefeatured module .tpl file (homefeatured.tpl) to remove view button, just remove this code: <a class="lnk_more" href="{$product.link|escape:'html'}" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a> to change price position move code: {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} right after this: <h5 class="s_title_block"><a href="{$product.link|escape:'html'}" title="{$product.name|truncate:50:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'}</a></h5> Link to comment Share on other sites More sharing options...
Paulito Posted February 27, 2014 Share Posted February 27, 2014 Good morning Milos Can you use display none #featured-products_block_center .lnk_more { display:inline; (change to none) padding-right:10px; font-weight:bold; font-size:10px; color:#0088cc; background:url(img/arrow_right_1.png) no-repeat 100% 3px; Before: http://screencast.com/t/tcBQX5dzRLl6 After: http://screencast.com/t/EXtbXt0NFVjt Paul Link to comment Share on other sites More sharing options...
vekia Posted February 27, 2014 Share Posted February 27, 2014 sure, it is possible to hide it with display:none it will be invisible for eye, but it will be still available in code in my opinion both solutions are ok Link to comment Share on other sites More sharing options...
HelenaJ Posted February 27, 2014 Author Share Posted February 27, 2014 I managed to remove the button "view".. Thanks! But the price has not changed. =/ Link to comment Share on other sites More sharing options...
Paulito Posted February 27, 2014 Share Posted February 27, 2014 Hello again You should have this: <h5 class="s_title_block"><a href="{$product.link|escape:'html'}" 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} Which will give you this: http://screencast.com/t/VnOdOxtZ Paul Link to comment Share on other sites More sharing options...
HelenaJ Posted February 27, 2014 Author Share Posted February 27, 2014 Hi I have the code in that position. But i want the price after the name. In this momente, the price want after the description (sorry my English) Link to comment Share on other sites More sharing options...
vekia Posted February 28, 2014 Share Posted February 28, 2014 How can I put the price after the name? so you want price after product name, or after product description? Link to comment Share on other sites More sharing options...
HelenaJ Posted February 28, 2014 Author Share Posted February 28, 2014 i want the price after product name... Link to comment Share on other sites More sharing options...
vekia Posted February 28, 2014 Share Posted February 28, 2014 so can you please paste here your actual code? Link to comment Share on other sites More sharing options...
HelenaJ Posted February 28, 2014 Author Share Posted February 28, 2014 <!-- MODULE Home Featured Products --> <div id="featured-products_block_center" class="block products_block clearfix"> <h4 class="title_block">{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 style="height:{$ulHeight}px;"> {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="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|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> <h5 class="s_title_block"><a href="{$product.link|escape:'html'}" 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} <div class="product_desc"><a href="{$product.link|escape:'html'}" title="{l s='More' mod='homefeatured'}">{$product.description_short|strip_tags|truncate:65:'...'}</a></div> <div> <a class="lnk_more" href="{$product.link|escape:'html'}" title="{l s='View' mod='homefeatured'}">{l s='View' mod='homefeatured'}</a> {* {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} *} {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')|escape:'html'}?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...
vekia Posted February 28, 2014 Share Posted February 28, 2014 your code looks well, have you tried to recompile entire theme (and / or clear shop cache) ? Link to comment Share on other sites More sharing options...
HelenaJ Posted March 3, 2014 Author Share Posted March 3, 2014 how to recompile entire theme? I cleaned the shop cache... Link to comment Share on other sites More sharing options...
vekia Posted March 3, 2014 Share Posted March 3, 2014 to recompile theme you have to turn on force compile option under preferences > performance tab in your back office sometimes clearing cache is not enough Link to comment Share on other sites More sharing options...
HelenaJ Posted March 3, 2014 Author Share Posted March 3, 2014 Nothing happens =/ Link to comment Share on other sites More sharing options...
vekia Posted March 3, 2014 Share Posted March 3, 2014 strange :\ and if you remove this code for price, price just disappear? or still nothing ? Link to comment Share on other sites More sharing options...
HelenaJ Posted March 5, 2014 Author Share Posted March 5, 2014 Not disappear... This means that the code price is not this? Link to comment Share on other sites More sharing options...
vekia Posted March 5, 2014 Share Posted March 5, 2014 it mean that you probably changing wrong file what file you changed exactly? Link to comment Share on other sites More sharing options...
HelenaJ Posted March 5, 2014 Author Share Posted March 5, 2014 online-shop/public_html/modules/homefeatured The other possibility is in public_html/online store/themes/default/modules/homefeatured but there does not exist this code right after this: <h5 class="s_title_block"><a href="{$product.link|escape:'html'}" title="{$product.name|truncate:50:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:35:'...'|escape:'htmlall':'UTF-8'}</a></h5> Link to comment Share on other sites More sharing options...
vekia Posted March 5, 2014 Share Posted March 5, 2014 you have to modify file located in this direcotry /themes/default/modules/homefeatured all changess aplied to /modules/homefeatured/ will not be visible Link to comment Share on other sites More sharing options...
HelenaJ Posted March 5, 2014 Author Share Posted March 5, 2014 Ok... So in store-online/themes/default/modules/homefeatured/homefeatured.tpl code of the price has to come then what so that the price appears after the name Link to comment Share on other sites More sharing options...
HelenaJ Posted March 5, 2014 Author Share Posted March 5, 2014 SOLVED! thanks Link to comment Share on other sites More sharing options...
Recommended Posts