Update another column when publish or unpublish a product

  • Posts: 634
  • Thank you received: 16
7 years 2 months ago #261456

-- HikaShop version -- : 2.6.4
-- HikaMarket version -- : 1.7.1 Multivendor
-- Joomla version -- : 3.6.5
-- PHP version -- : 5.6.25

I want to change a column value for a product when publishing or unpublish on frontend / backend listing view.

There's a trigger to do it?

Thanks.

-- Víctor

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
7 years 2 months ago #261457

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.

  • Posts: 634
  • Thank you received: 16
7 years 2 months ago #261575

Hi Jerome,

thanks for the link, I have checked the triggers before posting this and I didn't find a trigger firing when a product is published / unpublished, and, as far as I experienced, when I change the Published Status from a product_list no ProductUpdate trigger is fired, so I don't know if I am wrong in this last appreciation or your answer is like "if you don't find it here it doesn't exist'.

Please some extra clarification will be welcome.

kind regards,

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
7 years 2 months ago #261577

Hi,

When a product is published.. The product is updated.

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.

Moderators: Obsidev
Time to create page: 0.065 seconds
Powered by Kunena Forum