Jump to content

[Résolu] Afficher la quantité du stock disponible


Steve_Chrs

Recommended Posts

					{if $smarty.server.REQUEST_URI|strstr:'promotions'}
						<p id="QuantityAvailable"{if $product->quantity <= 0} style="display: none;"{/if}>
						<span id="quantityAvailable">{$product->quantity|intval} {l s='stocks restants'}</span>
						{else}
						<p style="display:none"></p>
					{/if}

Je débute dans le smarty, mais voici la solution que j'ai trouvé pour afficher le stock restant uniquement dans la page promotion. 

  • Like 1
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...