Jump to content

Panier - afficher la dispo


Recommended Posts

Bonjour,

 

Cela ce passe dans shopping-cart-product-line.tpl

A la ligne 37 :

{if $product.active AND ($product.allow_oosp OR ($product.quantity <= $product.stock_quantity)) AND $product.available_for_order AND !$PS_CATALOG_MODE}
  <img src="{$img_dir}icon/available.gif" alt="{l s='Available'}" width="14" height="14" />
 {else}
  <img src="{$img_dir}icon/unavailable.gif" alt="{l s='Out of stock'}" width="14" height="14" />
 {/if}

 

 

Ckarone

Link to comment
Share on other sites

Bonjour il faut donc que je rajoute c'est ligne dans le tpl ?

 

a la ligne 37 j'ai

 

{if isset($empty)}

<p class="warning">{l s='Your shopping cart is empty.'}</p>

{elseif $PS_CATALOG_MODE}

<p class="warning">{l s='This store has not accepted your new order.'}</p>

 

faut le mettre avant ou après

Edited by Le-cathare (see edit history)
Link to comment
Share on other sites

Oups je me suis tromper de fichier. J'ai donc dans le bon fichier ceci sans rien modifier. mais rien s'affiche sur la dispo

 

 

<!-- <td class="cart_ref">{if $product.reference}{$product.reference|escape:'htmlall':'UTF-8'}{else}--{/if}</td>

<td class="cart_availability">

{if $product.active AND ($product.allow_oosp OR ($product.quantity <= $product.stock_quantity)) AND $product.available_for_order AND !$PS_CATALOG_MODE}

<img src="{$img_dir}icon/available.gif" alt="{l s='Available'}" width="14" height="14" />

{else}

<img src="{$img_dir}icon/unavailable.gif" alt="{l s='Out of stock'}" width="14" height="14" />

{/if}

Link to comment
Share on other sites

  • 2 weeks later...
  • 5 months later...
Bonjour, Cela ce passe dans shopping-cart-product-line.tpl A la ligne 37 :
 {if $product.active AND ($product.allow_oosp OR ($product.quantity <= $product.stock_quantity)) AND $product.available_for_order AND !$PS_CATALOG_MODE} [img={$img_dir}icon/available.gif] {else} [img={$img_dir}icon/unavailable.gif] {/if} 

Ckarone

 

Hello merci pour ton astuce, elle fonctionne nickel sur ma PS 1.5.2 ^^'

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...