PrestaShop Forum

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum

Jump to content

 

[Risolto] Visualizzare 0 nel carrello

3 replies to this topic
#1
PianetaModellismo

    PrestaShop Apprentice

  • Members
  • PipPip
  • 307 posts
Ciao,
come posso fare, per visualizzare nel totale prodotti del carrello, il numero 0 quando è vuoto?

{if $cart_qties > 0}{$cart_qties }{/if}

{l s='product' mod='blocklanguages'}
{l s='products' mod='blocklanguages'}
{if $cart_qties > 0}{if $priceDisplay == 1}{convertPrice price=$cart->getOrderTotal(false, 4)}{else}{convertPrice price=$cart->getOrderTotal(true, 4)}{/if}{/if}
{l s='(empty)' mod='blocklanguages'}


Questo è il codice nel file tpl, devo fare la modifica qui?

Grazie
PianetaModellismo Shop On-Line

PrestaShop™ 1.4.7.3

#2
checco

    PrestaShop Apprentice

  • Members
  • PipPip
  • 399 posts
ma intendi il numero 0 al posto della scritta (empty)?
Posted Image

#3
PianetaModellismo

    PrestaShop Apprentice

  • Members
  • PipPip
  • 307 posts
No voglio il numero 0 proprio nel totale prodotti.
PianetaModellismo Shop On-Line

PrestaShop™ 1.4.7.3

#4
PianetaModellismo

    PrestaShop Apprentice

  • Members
  • PipPip
  • 307 posts
Ho risolto, ma non sono sicuro se così è corretto.

Questo è il codice modificato, se può essere utile a qualcuno.

{if $cart_qties < 1}{$cart_qties}{/if}

{if $cart_qties}{$cart_qties}{/if}


PianetaModellismo Shop On-Line

PrestaShop™ 1.4.7.3