minimal-stocklevel Mass action

  • Posts: 206
  • Thank you received: 10
  • Hikashop Multisite
6 years 9 months ago #288270

-- HikaShop version -- : 3.3.0
-- Joomla version -- : 3.8.5

I would like to send a weekly list of products below minimal-stocklevel.
This stocklevel should be set per product and i have created a customfield for it minimal_level_value

The mass action says wrong value (see attachment)



What can i do to make it work?
Thanks in advance.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82967
  • Thank you received: 13393
  • MODERATOR
6 years 9 months ago #288296

hi,

You can't use a custom field name in a filter condition. So that won't work.
We'll add that capability to the out of stock plugin for the next version of HikaShop as that's a good idea.
So you'll be able to use it then.
Until then, you can modify the code of the out of stock plugin (plugins/hikashop/out_of_stock/out_of_stock.php) and remove the (int) before the $this->stock_limit
and then enter the column name of your custom field in the stock limit setting of the plugin and it should do what you want.

The following user(s) said Thank You: Joomill

Please Log in or Create an account to join the conversation.

  • Posts: 206
  • Thank you received: 10
  • Hikashop Multisite
6 years 9 months ago #288297

Great news!

Thank you nicolas.

Please Log in or Create an account to join the conversation.

Time to create page: 0.055 seconds
Powered by Kunena Forum