Orpheo Posted June 8, 2015 Share Posted June 8, 2015 (edited) Hi, I'd like to know if it's possible to display the number of product still on sale for example : 3 items on 10. Is there a way to get the variable "10" ? Or to know the number of product sold ? (To make an addition) Thanks for your help Edited June 8, 2015 by Orpheo (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted June 8, 2015 Share Posted June 8, 2015 where you want to display it? im not quite sure what you're trying to achieve Link to comment Share on other sites More sharing options...
Orpheo Posted June 8, 2015 Author Share Posted June 8, 2015 (edited) On the front, on the product's page. Actually I have for example : 3 items. I'd like to display 3 items on 10 because originally I put 10 on quantity and I have sold 7. product.tpl : {if ($display_qties == 1 && !$PS_CATALOG_MODE && $PS_STOCK_MANAGEMENT && $product->available_for_order)} <!-- number of item in stock --> <p id="pQuantityAvailable"{if $product->quantity <= 0} style="display: none;"{/if}> <span id="quantityAvailable">{$product->quantity|intval}</span> <span {if $product->quantity > 1} style="display: none;"{/if} id="quantityAvailableTxt">{l s='Item'}</span> <span {if $product->quantity == 1} style="display: none;"{/if} id="quantityAvailableTxtMultiple">{l s='Items'}</span> </p> {/if} Edited June 8, 2015 by Orpheo (see edit history) Link to comment Share on other sites More sharing options...
Orpheo Posted June 14, 2015 Author Share Posted June 14, 2015 Anyone has an idea ? Thank you ! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now