PrestaShop Forums: [tip] Modulo blockspecials - PrestaShop Forums

Jump to content


Welcome to the PrestaShop Forum! We hope you'll share your comments and suggestions with us. We ask that you please post in English to the main sections of the PrestaShop Forum. If you want to write in another language, please post in the corresponding PrestaShop Community section below.

Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

NYC

Vous parlez français ? par ici !


[tip] Modulo blockspecials


[tip] Modulo blockspecials

#1 vinoalvino

    PrestaShop Addict

  • 10 Aug 2008
  • Members
  • PipPipPip
  • 841 posts

Posted 29 January 2009 - 05:42 PM

Per nascondere il blocco quando non ci sono offerte speciali (stupida insignificante modifica)

in testa al file bolckspecials.tpl (prima riga)

{if $special}


ultima riga:
{/if}

Al mondo ci sono 11 tipi di persone: quelli che capiscono/non capiscono il codice binario e quelli che trovano tutti i moduli su prestamodules :P
-- Realizzo moduli e personalizzazioni per prestashop --

#2 Amigamerlin

    PrestaShop Apprentice

  • 17 Jan 2009
  • Members
  • PipPip
  • 33 posts

Posted 29 January 2009 - 07:42 PM

From 1233247352:

Per nascondere il blocco quando non ci sono offerte speciali (stupida insignificante modifica)

in testa al file bolckspecials.tpl (prima riga)

{if $special}


ultima riga:
{/if}



Sei un grande !!!
Grazie

#3 vinoalvino

    PrestaShop Addict

  • 10 Aug 2008
  • Members
  • PipPipPip
  • 841 posts

Posted 30 January 2009 - 07:00 PM

... per un if definirmi un grande mi sembra troppo ;-P ma se avessi avuto 50 centesimi per ogni if scritto in vita mia ora sarei miliardario!
Al mondo ci sono 11 tipi di persone: quelli che capiscono/non capiscono il codice binario e quelli che trovano tutti i moduli su prestamodules :P
-- Realizzo moduli e personalizzazioni per prestashop --

#4 PianetaModellismo

    PrestaShop Apprentice

  • 21 Oct 2008
  • Members
  • PipPip
  • 301 posts

Posted 10 April 2009 - 02:29 PM

è possibile farlo anche per il blockcart? Farlo apparire solo quando ci sino prodotti all'interno?
PianetaModellismo Shop On-Line

PrestaShop™ 1.4.6.2

#5 PianetaModellismo

    PrestaShop Apprentice

  • 21 Oct 2008
  • Members
  • PipPip
  • 301 posts

Posted 10 April 2009 - 02:35 PM

:-) credo che così possa funzionare

Prima riga:

{if $cart_qties > 0}


Ultima riga:

{/if}

PianetaModellismo Shop On-Line

PrestaShop™ 1.4.6.2

#6 vinoalvino

    PrestaShop Addict

  • 10 Aug 2008
  • Members
  • PipPipPip
  • 841 posts

Posted 10 April 2009 - 02:35 PM

Sembrerebbe di si: prova a mettere nel file blockcart.tpl in testa:
{if $products}

e in coda
{/if}

facci sapere ...
Al mondo ci sono 11 tipi di persone: quelli che capiscono/non capiscono il codice binario e quelli che trovano tutti i moduli su prestamodules :P
-- Realizzo moduli e personalizzazioni per prestashop --

#7 PianetaModellismo

    PrestaShop Apprentice

  • 21 Oct 2008
  • Members
  • PipPip
  • 301 posts

Posted 10 April 2009 - 02:47 PM

From 1239370554:

Sembrerebbe di si: prova a mettere nel file blockcart.tpl in testa:
{if $products}

e in coda
{/if}

facci sapere ...


anche così funziona....forse è più corretto questo :)

Sarebbe bello implementare questa funzione se attivare o no dal BO del modulo.
PianetaModellismo Shop On-Line

PrestaShop™ 1.4.6.2

#8 disarci

    PrestaShop Fanatic

  • 08 Sep 2008
  • Moderators
  • 1982 posts
  • Location:Dijon

Posted 10 April 2009 - 03:04 PM

c'è già uno studio per fare una cosa simile per tutti i moduli....





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users