PrestaShop Forums: [Risolto] Visualizzare 0 nel carrello - 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 !


[Risolto] Visualizzare 0 nel carrello


[Risolto] Visualizzare 0 nel carrello

#1 Guest_PianetaModellismo_*

  • --
  • Guests

Posted 27 July 2010 - 10:05 PM

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

#2 Guest__*

  • --
  • Guests

Posted 28 July 2010 - 04:45 AM

ma intendi il numero 0 al posto della scritta (empty)?

#3 Guest__*

  • --
  • Guests

Posted 28 July 2010 - 09:27 AM

No voglio il numero 0 proprio nel totale prodotti.

#4 Guest__*

  • --
  • Guests

Posted 28 July 2010 - 03:01 PM

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}







1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users