My Design Posted April 25, 2014 Share Posted April 25, 2014 Hello, I am writing to get a little help ... I insert into the site (www.gusticalabresi.com) a space to the right with special offers module and wanted to put the word under special background as I did with the categories modules, but I don't know. Attached the CSS module file. Thank you. blockspecials.css Link to comment Share on other sites More sharing options...
vekia Posted April 25, 2014 Share Posted April 25, 2014 to enter any text you want you have to modify module .tpl file in this case blockspecials.tpl at the end of this file put text you want to display. Link to comment Share on other sites More sharing options...
webdev0008 Posted April 26, 2014 Share Posted April 26, 2014 (edited) Hi In your module blockspecials.tpl, put the <p> tag of title (specials) in <div> and add class re to this div. <div class="re" style="height: 50px;"> <p class="title_block" style="padding-top: 15px;"> <a href="http://www.gusticalabresi.com/en/riduzione-prezzi" title="Specials">Specials</a> </p> </div> Edited April 26, 2014 by webdev0008 (see edit history) 1 Link to comment Share on other sites More sharing options...
My Design Posted April 26, 2014 Author Share Posted April 26, 2014 I don't know ... Help me This is my TPL files in tema/modules/blockspecials: {** 2007-2013 PrestaShop** NOTICE OF LICENSE** This source file is subject to the Academic Free License (AFL 3.0)* that is bundled with this package in the file LICENSE.txt.* It is also available through the world-wide-web at this URL:* http://opensource.org/licenses/afl-3.0.php* If you did not receive a copy of the license and are unable to* obtain it through the world-wide-web, please send an email* to [email protected] so we can send you a copy immediately.** DISCLAIMER** Do not edit or add to this file if you wish to upgrade PrestaShop to newer* versions in the future. If you wish to customize PrestaShop for your* needs please refer to http://www.prestashop.com for more information.** @author PrestaShop SA <[email protected]>* @copyright 2007-2013 PrestaShop SA* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)* International Registered Trademark & Property of PrestaShop SA*}<!-- MODULE Block specials --><div id="special_block_right" class="block products_block exclusive blockspecials"> <p class="title_block"><a href="{$link->getPageLink('prices-drop')}" title="{l s='Specials' mod='blockspecials'}">{l s='Specials' mod='blockspecials'}</a></p> <div class="block_content">{if $special} <ul class="products clearfix"> <li class="product_image"> <a href="{$special.link}"><img src="{$link->getImageLink($special.link_rewrite, $special.id_image, 'medium_default')}" alt="{$special.legend|escape:html:'UTF-8'}" height="{$mediumSize.height}" width="{$mediumSize.width}" title="{$special.name|escape:html:'UTF-8'}" /></a> </li> <li> {if !$PS_CATALOG_MODE} {if $special.specific_prices} {assign var='specific_prices' value=$special.specific_prices} {if $specific_prices.reduction_type == 'percentage' && ($specific_prices.from == $specific_prices.to OR ($smarty.now|date_format:'%Y-%m-%d %H:%M:%S' <= $specific_prices.to && $smarty.now|date_format:'%Y-%m-%d %H:%M:%S' >= $specific_prices.from))} <span class="reduction"><span>-{$specific_prices.reduction*100|floatval}%</span></span> {/if} {/if} {/if} <p class="s_title_block"><a href="{$special.link}" title="{$special.name|escape:html:'UTF-8'}">{$special.name|escape:html:'UTF-8'}</a></p> {if !$PS_CATALOG_MODE} <span class="price-discount">{if !$priceDisplay}{displayWtPrice p=$special.price_without_reduction}{else}{displayWtPrice p=$priceWithoutReduction_tax_excl}{/if}</span> <span class="price">{if !$priceDisplay}{displayWtPrice p=$special.price}{else}{displayWtPrice p=$special.price_tax_exc}{/if}</span> {/if} </li> </ul> <p> <a href="{$link->getPageLink('prices-drop')}" title="{l s='All specials' mod='blockspecials'}">» {l s='All specials' mod='blockspecials'}</a> </p>{else} <p>{l s='No specials at this time' mod='blockspecials'}</p>{/if} </div></div><!-- /MODULE Block specials --> Where insert modify of background image of " Speciali " word ? Thank you. Link to comment Share on other sites More sharing options...
vekia Posted April 26, 2014 Share Posted April 26, 2014 you said that: as I did with the categories modules do the same for this code: <p class="title_block"><a href="{$link->getPageLink('prices-drop')}" title="{l s='Specials' mod='blockspecials'}">{l s='Specials' mod='blockspecials'}</a></p> Link to comment Share on other sites More sharing options...
My Design Posted April 27, 2014 Author Share Posted April 27, 2014 you said that: do the same for this code: <p class="title_block"><a href="{$link->getPageLink('prices-drop')}" title="{l s='Specials' mod='blockspecials'}">{l s='Specials' mod='blockspecials'}</a></p> But where and how do you insert a link in TPL file for make a background image of Specials word ? (as cart, see you site) Thanks. Link to comment Share on other sites More sharing options...
webdev0008 Posted April 27, 2014 Share Posted April 27, 2014 Hi Change this <p class="title_block"><a href="{$link->getPageLink('prices-drop')}" title="{l s='Specials' mod='blockspecials'}">{l s='Specials' mod='blockspecials'}</a></p> to <div class="re" style="height: 50px;"> <p class="title_block" style="padding-top: 15px;"> <a href="{$link->getPageLink('prices-drop')}" title="{l s='Specials' mod='blockspecials'}">{l s='Specials' mod='blockspecials'}</a> </p> </div> 1 Link to comment Share on other sites More sharing options...
My Design Posted April 27, 2014 Author Share Posted April 27, 2014 Hi Change this <p class="title_block"><a href="{$link->getPageLink('prices-drop')}" title="{l s='Specials' mod='blockspecials'}">{l s='Specials' mod='blockspecials'}</a></p> to <div class="re" style="height: 50px;"> <p class="title_block" style="padding-top: 15px;"> <a href="{$link->getPageLink('prices-drop')}" title="{l s='Specials' mod='blockspecials'}">{l s='Specials' mod='blockspecials'}</a> </p> </div> Thanks, but where and how do you insert image of background for only title Specials ? Link to comment Share on other sites More sharing options...
webdev0008 Posted April 27, 2014 Share Posted April 27, 2014 Hi Class "re" have the background image. 1 Link to comment Share on other sites More sharing options...
My Design Posted April 27, 2014 Author Share Posted April 27, 2014 Hi Class "re" have the background image. For example, after 50px I insert img= .... ? Link to comment Share on other sites More sharing options...
webdev0008 Posted April 27, 2014 Share Posted April 27, 2014 just use image tag after the anchor link <p class="title_block" style="padding-top: 15px;"> <a href="{$link->getPageLink('prices-drop')}" title="{l s='Specials' mod='blockspecials'}">{l s='Specials' mod='blockspecials'}</a> <img src="YOUR_IMAGE_SRC" /> </p> 1 Link to comment Share on other sites More sharing options...
My Design Posted April 27, 2014 Author Share Posted April 27, 2014 just use image tag after the anchor link <p class="title_block" style="padding-top: 15px;"> <a href="{$link->getPageLink('prices-drop')}" title="{l s='Specials' mod='blockspecials'}">{l s='Specials' mod='blockspecials'}</a> <img src="YOUR_IMAGE_SRC" /> </p> I write: <!-- MODULE Block specials --> <div id="special_block_right" class="block products_block exclusive blockspecials"> <div class="re" style="height: 50px;"> <p class="title_block" style="padding-top: 15px;"> <a href="{$link->getPageLink('prices-drop')}" title="{l s='Specials' mod='blockspecials'}">{l s='Specials' mod='blockspecials'}</a> <img src="parte_bg_categorie.jpg" /></p> <div class="block_content"> Not function ... Link to comment Share on other sites More sharing options...
webdev0008 Posted April 27, 2014 Share Posted April 27, 2014 Hi not find this code on your website.please try with removing cache. and make sure that you put this code in blockspecials.tpl of the themes/yourthemefolder/modules/blockspecials folder. 1 Link to comment Share on other sites More sharing options...
My Design Posted April 27, 2014 Author Share Posted April 27, 2014 Hi not find this code on your website.please try with removing cache. and make sure that you put this code in blockspecials.tpl of the themes/yourthemefolder/modules/blockspecials folder. OK ! Thanksssssssssssss ... It's very difficult to center text and how do you change text " Specials " to " Specials Offer " ? Link to comment Share on other sites More sharing options...
My Design Posted April 28, 2014 Author Share Posted April 28, 2014 Hello, how do you change text of title name to " Specials Offer " ? Thank you very much. Link to comment Share on other sites More sharing options...
My Design Posted April 29, 2014 Author Share Posted April 29, 2014 No reply ? Link to comment Share on other sites More sharing options...
webdev0008 Posted April 29, 2014 Share Posted April 29, 2014 (edited) Hi <a href="{$link->getPageLink('prices-drop')}" title="{l s='Specials Offer' mod='blockspecials'}">{l s='Specials Offer' mod='blockspecials'}</a> Edited April 29, 2014 by webdev0008 (see edit history) 1 Link to comment Share on other sites More sharing options...
My Design Posted April 30, 2014 Author Share Posted April 30, 2014 (edited) Hi <a href="{$link->getPageLink('prices-drop')}" title="{l s='Specials Offer' mod='blockspecials'}">{l s='Specials Offer' mod='blockspecials'}</a> Hello, if I write an Italian title not translate into English if I click on the flag of the English site ... Edited May 1, 2014 by My Design (see edit history) Link to comment Share on other sites More sharing options...
cz_petr Posted May 19, 2014 Share Posted May 19, 2014 (edited) - Edited May 19, 2014 by cz_petr (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts