Philip Anderton Posted November 13, 2011 Share Posted November 13, 2011 Hi, Wondering if anyone can help? I seem to be having a problem. Basically, I'm trying to automate a 'sold out' image on my product-list, but can't seem to find the appropriate code. At the moment, I'm using: {if $product.quantity == 0 AND $quantity == 0}<img class="sold_out_float" src="{$img_dir}/sold-out-50-50.png" />{/if} You can see the page here http://www.scenepreston.com/47-supra This works fine if the product only has one combo, or if you have stock of the 'default' combination. However, when the stock of the default combo reaches zero, the image shows and I only want it to show when ALL combinations are on zero. Any ideas? Please not that the code needs to work for products that have no combinations as well as ones that do. Thanks in advance, Philip. Link to comment Share on other sites More sharing options...
lechat Posted May 16, 2012 Share Posted May 16, 2012 Hi, Wondering if anyone can help? I seem to be having a problem. Basically, I'm trying to automate a 'sold out' image on my product-list, but can't seem to find the appropriate code. At the moment, I'm using: {if $product.quantity == 0 AND $quantity == 0}<img class="sold_out_float" src="{$img_dir}/sold-out-50-50.png" />{/if} You can see the page here http://www.scenepreston.com/47-supra This works fine if the product only has one combo, or if you have stock of the 'default' combination. However, when the stock of the default combo reaches zero, the image shows and I only want it to show when ALL combinations are on zero. Any ideas? Please not that the code needs to work for products that have no combinations as well as ones that do. Thanks in advance, Philip. I have got the same problem. Did you somehow manage to fix this issue ? 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