Sickboards Posted June 20, 2015 Share Posted June 20, 2015 Hi I want to change the display of the number of items, in a way that is show 10+ when there are more than 10 items in stock, also when a product has attributes. So if product_attribute_quantity <= 10 display 'stock' else display '10+' But for some reason I cannot get an if statement working with the stock of the attribute. in product.tpl this gives: <span id="quantityAvailable">{$product->quantity|intval}</span> the number of items of the attribute, but this {$product->quantity|intval} the sum of all attributes. Yet later on this is used to switch between 'item' and 'items' {if $product->quantity == 1} does this give the total or just the attribute stock count? 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