Jump to content

Special Offers Module


Recommended Posts

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 by webdev0008 (see edit history)
  • Like 1
Link to comment
Share on other sites

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

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

 

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

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>
  • Like 1
Link to comment
Share on other sites

 

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

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>
  • Like 1
Link to comment
Share on other sites

 

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

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

 

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 by My Design (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...
×
×
  • Create New...