Dirty Butter Posted December 2, 2020 Share Posted December 2, 2020 I do not remove sold items from the store listings on our plushmemories store, as helping people find lovies is part of our business plan. So I have always had the stock level that triggers a warning set to negative one. 6.4.2 ignores that negative number and shows stock warnings for all out of stock items. Any suggestions as to how to fix this? Link to comment Share on other sites More sharing options...
Debyink Posted December 2, 2020 Share Posted December 2, 2020 I'm going to follow this thread as I also use that method too for our back catalogue, normally seasonal items which we put on hold until later in the year when we put them back in to production. I don't want them showing in my out of stock list. Link to comment Share on other sites More sharing options...
bsmither Posted December 2, 2020 Share Posted December 2, 2020 What was the last version of CC you had running that this approach worked? Link to comment Share on other sites More sharing options...
Dirty Butter Posted December 2, 2020 Author Share Posted December 2, 2020 6.4.1 Link to comment Share on other sites More sharing options...
bsmither Posted December 2, 2020 Share Posted December 2, 2020 I've compared CC641 against CC642 and find no differences that affect stock levels. Do you think the upgrade may have overwritten a customization? Link to comment Share on other sites More sharing options...
Debyink Posted December 2, 2020 Share Posted December 2, 2020 Found only way to do it is in Store Settings: Stock settings - Admin stock warning method: Use product specific level. My negative stock items still show in shop as out of stock and unable to buy and they don't get added to the Stock warning in dashboard. Link to comment Share on other sites More sharing options...
bsmither Posted December 2, 2020 Share Posted December 2, 2020 "My negative stock items still show in shop as out of stock and unable to buy" This is not what you want to happen? And you are saying that in CC641, they did not show? What customization did you have in CC641 that excluded products with negative stock items from being returned in database queries? I need to make a reminder that when logged in as an admin, out-of-stock items will be shown. In admin, Store Settings, Stock tab, "Hide out-of-stock product", even when checked, will not hide from a logged-in admin. Link to comment Share on other sites More sharing options...
Dirty Butter Posted December 2, 2020 Author Share Posted December 2, 2020 I found this in dashboard.index.inc.php just now in the test site on 6.4.3 commit: $stock_warn_level = ((int)$GLOBALS['config']->get('config', 'stock_warn_level')>0) ? $GLOBALS['config']->get('config', 'stock_warn_level') : '0'; $condition = $GLOBALS['config']->get('config', 'stock_warn_type') == '1' ? 'I.stock_warning' : $stock_warn_level; Link to comment Share on other sites More sharing options...
bsmither Posted December 2, 2020 Share Posted December 2, 2020 So, I think I misread your OP -- you are saying you do want out-of-stock items to not be hidden from customers. But you do not want to be notified of this condition on the admin Dashboard. Correct? Ok, so the concern is the admin Dashboard Stock Warnings list. Yes, there is a change for that between CC641 and CC642. Link to comment Share on other sites More sharing options...
Dirty Butter Posted December 3, 2020 Author Share Posted December 3, 2020 I want customers to see the zero ones (front end shows Sold), but I do not want a warning about stock level of zero ones. I can't think of any custom edits I have in place that would affect this. Link to comment Share on other sites More sharing options...
bsmither Posted December 3, 2020 Share Posted December 3, 2020 Your admin Store Setting for Stock, "Admin stock warning method" is "Global"? Try this: The admin script /sources/dashboard.index.inc.php, near line 338: From: $stock_warn_level = ((int)$GLOBALS['config']->get('config', 'stock_warn_level')>0) ? $GLOBALS['config']->get('config', 'stock_warn_level') : '0'; To: $stock_warn_level = ($GLOBALS['config']->isEmpty('config', 'stock_warn_level')) ? '0' : $GLOBALS['config']->get('config', 'stock_warn_level'); Link to comment Share on other sites More sharing options...
Debyink Posted December 3, 2020 Share Posted December 3, 2020 Must be the way I wrote it. I haven't used any code changes, just used the setting available in admin, there is a choice of Global or per product. If stock is set to 0 it will show notification in admin dashboard as out of stock, if set to -1 stock isn't hidden from admin or store, customers can still view it in the store but it will show as 'out of stock' so they can't buy it . With the per product setting you won't get the 'out of stock' admin dashboard notification which is what I want for some products. Thought that was what Dirty Butter wanted for one-off products that had been sold but wanted to keep them on his shop for customers to view but didn't want them showing in admin dash notifications as out of stock. Link to comment Share on other sites More sharing options...
Dirty Butter Posted December 3, 2020 Author Share Posted December 3, 2020 Your edit fixed it for me as far as I can tell. Will test some more when I have time. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.