Mass Action only works manual

  • Posts: 585
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
7 years 4 months ago #272807

-- url of the page with the problem -- : test.remedybank.com
-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.2
-- PHP version -- : 7

Hi Hikashop team,

I have created this issue to refocus on the real issue, it's a update from this issue:
www.hikashop.com/forum/mass-actions/8887...ly-works-manual.html

Our goal is to import products with no price information and that all created and updated products with no price information will be depublished.

The automated import with the cron works fine (except that the option delete file after the import isn't working, but that's not a big issue)

See here the products after an automated import after I delete all the products before.
As you can see all the products are published but have no price.

See attachment for the CSV file which we imported automated.





Before we imported the products we have created a mass action. But as you can see the products are still published after the import and we want to depublish all the products with no price information.



To prove that the Mass Action is working I will show you a movie.
But this mass action is only working when you process it manualy.

See MOVIE

Hope you can help us.

Kind regards,
Lumiga


Kind regards,
Lumiga
Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
7 years 4 months ago #272821

Hi,

The import system is made to be as efficient as possible and insert/update the products in bulk in the database, without going through the standard process and thus without triggering any plugin.
So if your issue is that your mass action is not triggered during the import, that's actually normal and the expected behavior.
You would have to add the trigger "every minutes" in your mass action in order to run the check separately (and configure your cron task on your server to trigger HikaShop's cront ask every minute)
That way, you'll have maximum a 1 minute delay between the import and the free products being unpublished.

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

  • Posts: 585
  • Thank you received: 23
  • Hikaserial Subscription Hikashop Multisite
7 years 4 months ago #272901

Thanks Nicolas,

That's not really a good alternative because in that minute someone could order this product for free.
Is it possible for you to create the same option like the one at the manual import?
And what should it cost?



Kind regards,
Lumiga


Kind regards,
Lumiga
Attachments:
Last edit: 7 years 4 months ago by Lumiga.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 4 months ago #272902

Hello,

The option you highlighted is an option to force a "default value".
If "product_published" is not available ; by default PHP will consider the value as "false", but that option allow to have the opposite behavior.
Your request is not in the same logical and can be easily avoided by simply provide the column "product_published" in your CSV.
Thanks to that, your import will see a free price and unpublish the product in the same time. No delay, no side effect.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.083 seconds
Powered by Kunena Forum