Eutanasio Posted June 15, 2015 Share Posted June 15, 2015 Hi, I need to have a text "On pre-order" to show when the stock of a product is 0. The thing is that this text has to be entered manually for each product on Admin -> Products -> Product -> Quantity Tab. What I need is to make it standard for all products, so I don't have to write it again for each product I create. Thanks! Link to comment Share on other sites More sharing options...
irrelevant Posted June 16, 2015 Share Posted June 16, 2015 Simplest way would be to do this in the template... (product.tpl) Replace {$product->available_later} with {if $product->available_later}{$product->available_later}{else}{l s="On pre-order"}{/if} Then if the product doesn't have a specific message set, it will use "On pre-order". 1 Link to comment Share on other sites More sharing options...
Eutanasio Posted June 17, 2015 Author Share Posted June 17, 2015 Thanks for answering! nobody seems to know or take time to answer. The solution you gave it's actually in the code on the front, but it wont show this message neither the "Available" sign either. It only shows the "On pre-order" when I write it for each product on the admin. So I think the solution would be to make a static value for this in: / admin / themes / default / template / controllers / products / quantity.tpl by changing this line: input_value=$product->available_later Someone knows? thanks! 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