Hi
Some of my stock is not counted i.e. its made to order and never runs out. For these items I don't want to display the amount, I just want to say "In Stock" regardless of what the products stock is set to, even 0.
Also I wanted to round stock for items I do track into certain bands for example 12 would be 10+, etc
This mod does just that. Its for 1.5.1.3.1 although may well work in earlier versions.
should be fairly obvious how to tweak to get the desired 'bands' .
At the moment its set as follows..
<10 displays the actual stock
then its 10+, 20+, 50+ and 100+
If stock is not subtracted then it uses your default "in stock" message.
Don't forget to enable stock status display in the back-end.
Probably a better way of doing this, but I was quite proud of myself for managing to do something productive today so I thought I'd share. Improvements are welcome.
Thanks
Rob
Edit, might not be desirable to everyone and its a bit of a hack as it doesn't use the language file, but I just tweaked my mod so that it puts the words 'in stock' after the quantity. A number alone could be taken as lead-time rather than stock level.
Attachments
adding the words in stock too
just need this! work like a charm! thank you very much!
"We help each other to grow". That's the opencart community!
All free mods
Home Based Ebay business Opportunity(not ads)
Who is online
Users browsing this forum: No registered users and 6 guests