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:
{capture name=dialog} Create a new file called nostock.php within yur provider/ folder containing the following: Code:
<?php Add the following to your common_templates file: Code:
{elseif $main eq "nostock"} Add the following code to your /skin1/provider/menu.tpl file: [/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, |
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:
{capture name=dialog} nostock.php: Code:
|
All times are GMT -8. The time now is 12:04 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.