Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Background panier différent suivant le nombre de produit

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: French
View previous topic :: View next topic  
Author Message
office56
Smarty n00b


Joined: 27 Feb 2014
Posts: 1

PostPosted: Thu Feb 27, 2014 2:48 pm    Post subject: Background panier différent suivant le nombre de produit Reply with quote

Bonjour,

Je souhaiterai savoir s'il était possible de changer le background du panier en fonction du nombre d'article que l'on a ajouté ?

J'essaye de faire quelque chose en SMARTY mais je ne parviens à aucun résultat.
Code:

<!-- Block user information module HEADER -->
<div id="header_user" {if $PS_CATALOG_MODE}class="header_user_catalog"{/if}>
   <ul id="header_nav">
      {if !$PS_CATALOG_MODE}

<!-- CONDITION BACKGROUND DIFFERENT -->
      <li {if $cart_qties > 0} id="shopping_cart" {else} id="shopping_cart_2 {/if}>
<!-- CONDITION BACKGROUND DIFFERENT -->

         <a href="{$link->getPageLink($order_process, true)|escape:'html'}" title="{l s='View my shopping cart' mod='blockuserinfo'}" rel="nofollow">{l s='Cart' mod='blockuserinfo'}
         <span class="ajax_cart_quantity{if $cart_qties == 0} hidden{/if}">{$cart_qties}</span>
         <span class="ajax_cart_product_txt{if $cart_qties != 1} hidden{/if}">{l s='Product' mod='blockuserinfo'}</span>
         <span class="ajax_cart_product_txt_s{if $cart_qties < 2} hidden{/if}">{l s='Products' mod='blockuserinfo'}</span>
         <span class="ajax_cart_total{if $cart_qties == 0} hidden{/if}">
            {if $cart_qties > 0}
               {if $priceDisplay == 1}
                  {assign var='blockuser_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}
                  {convertPrice price=$cart->getOrderTotal(false, $blockuser_cart_flag)}
               {else}
                  {assign var='blockuser_cart_flag' value='Cart::BOTH_WITHOUT_SHIPPING'|constant}
                  {convertPrice price=$cart->getOrderTotal(true, $blockuser_cart_flag)}
               {/if}
            {/if}
         </span>
         <span class="ajax_cart_no_product{if $cart_qties > 0} hidden{/if}">{l s='(empty)' mod='blockuserinfo'}</span>
         </a>
      </li>


Merci d'avance pour vos réponses,
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP