| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Listing all out of stocks | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Listing all out of stocks
I don't know if this is of any use to anyone, but here it is.
This works on my version of xcart - 3.5.10, but I make no guarantees that it will work on yours, or that it is safe to use. All it does is read data and display it, but use at you own risk. Create a new file called nostock.tpl within your skin1/provider/ folder containing the following: Code:
Create a new file called nostock.php within yur provider/ folder containing the following: Code:
Add the following to your common_templates file: Code:
Add the following code to your /skin1/provider/menu.tpl file: Code:
[/code] This adds a 'products with zero stock' option to your products menu. hth Note: I would like to add a qty column so you can quickly update xcart_products.avail but I am not sure how to implement the update yet. I can read the data and display it, but adding the update button is a bit more complicated and i don't have the time to do it yet. I would also like to add an available/disabled option to disable discontinued products. If anyone knows how to modify the files, please post here. Many Thanks,
__________________
X-Cart version 5 (Previously 3.5-4) Previous Versions included BCSE Reward Points Mod Altered Cart On Sale Mod Wordpress Plugin Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there. Shout me a Coffee! |
|||||||||
#2
|
|||||||||
|
|||||||||
I've updated this with a checkbox next to each item and a disable button at the bottom. If you tick the tick boxes and click the button it will set the prod_avail to N making the product disabled.
I was going to use a similar system to update the quantities as i thought it would be useful then a delivery came in, but I have the back in stock notification mod which i would need to tie in, so I haven't done this, although there is a textbox in the template ready for this when i get round to it, might might be never as i'm probably going to upgrade to 4.0.18. I did this a while ago so i thought i would post the update here as I do find it handy to go through and disable products that are out of stock and will not be re-ordered. nostock.tpl: Code:
nostock.php: Code:
__________________
X-Cart version 5 (Previously 3.5-4) Previous Versions included BCSE Reward Points Mod Altered Cart On Sale Mod Wordpress Plugin Please don't PM me for support. I help where I can on the forum and your question will more likely be answered there. Shout me a Coffee! |
|||||||||
|
|||
X-Cart forums © 2001-2020
|