[Skip to main content](#vessel-content)

#   onAfterProductUpdate save method

##

- **[DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")**
- [![DeeEmm's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar26410.jpg)](/forum/user/26410-deeemm "View DeeEmm's Profile") Topic Author
- [ Offline](/forum/user/26410-deeemm)

Less More

- Posts: 114
- Thank you received: 14
-
- [](http://deeemm.com)
-

13 years 1 month ago -  13 years 1 month ago [\#127729](#127729) by [DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")  *[onAfterProductUpdate save method](/forum/19-hikamarket/862772-onafterproductupdate-save-method#127729 "I'm writing a plugin to do some processing tasks on uploaded products. One of the things that I am trying to achieve is to modify the values of custom fields using the onAfterProductUpdate trigger.  I have successfully carried this out with the onBeforeProductcreate trigger but cannot figure out what the correct method is for onAfterProductUpdate  Here is the code I am testing  Obviously I need to add the correctly formatted save method but I cannot find / figure out what it should be.  Any help greatly appreciated.  TIA  /DM")* was created by *[DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")*

I'm writing a plugin to do some processing tasks on uploaded products. One of the things that I am trying to achieve is to modify the values of custom fields using the onAfterProductUpdate trigger.

I have successfully carried this out with the onBeforeProductcreate trigger but cannot figure out what the correct method is for onAfterProductUpdate

Here is the code I am testing
Code:

public function onAfterProductUpdate(&amp;$product) { $product-&gt;my_field = 'test'; //I need to add correct $this-&gt;save($product) method here }

Obviously I need to add the correctly formatted save method but I cannot find / figure out what it should be.

Any help greatly appreciated.

TIA

/DM

---

[ deeemm.com](http://deeemm.com)

Last edit: 13 years 1 month ago by [DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile"). Reason: clarity

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODYyNzcyLW9uYWZ0ZXJwcm9kdWN0dXBkYXRlLXNhdmUtbWV0aG9kP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 1 month ago [\#127730](#127730) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[onAfterProductUpdate save method](/forum/19-hikamarket/862772-onafterproductupdate-save-method#127730 "I'm writing a plugin to do some processing tasks on uploaded products. One of the things that I am trying to achieve is to modify the values of custom fields using the onAfterProductUpdate trigger.  I have successfully carried this out with the onBeforeProductcreate trigger but cannot figure out what the correct method is for onAfterProductUpdate  Here is the code I am testing  Obviously I need to add the correctly formatted save method but I cannot find / figure out what it should be.  Any help greatly appreciated.  TIA  /DM")*

Hi,

Why not using onBeforeProductUpdate ?

Quite better and not possibility of looping (it not good to save the product in the onAfterProductUpdate, you will call yourself and create an infinity trigger loop)?

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODYyNzcyLW9uYWZ0ZXJwcm9kdWN0dXBkYXRlLXNhdmUtbWV0aG9kP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")**
- [![DeeEmm's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar26410.jpg)](/forum/user/26410-deeemm "View DeeEmm's Profile") Topic Author
- [ Offline](/forum/user/26410-deeemm)

Less More

- Posts: 114
- Thank you received: 14
-
- [](http://deeemm.com)
-

13 years 1 month ago [\#127779](#127779) by [DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")  Replied by *[DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")* on topic *[onAfterProductUpdate save method](/forum/19-hikamarket/862772-onafterproductupdate-save-method#127779 "I'm writing a plugin to do some processing tasks on uploaded products. One of the things that I am trying to achieve is to modify the values of custom fields using the onAfterProductUpdate trigger.  I have successfully carried this out with the onBeforeProductcreate trigger but cannot figure out what the correct method is for onAfterProductUpdate  Here is the code I am testing  Obviously I need to add the correctly formatted save method but I cannot find / figure out what it should be.  Any help greatly appreciated.  TIA  /DM")*

Hi Jerome, thanks for the prompt reply.

Ahh yes, of course I can see how I might end up in a loop. ![:-S](/worry.gif ":-S")

I am not sure if I can use onBeforeProductUpdate as ultimately I need to process some information from an uploaded file and if I understand correctly the file will not have been uploaded at this point.

I will outline what I am trying to achieve. Perhaps you could advise the best way for me to do it.

Outline...
- I am using HikaMarket to allow users to sell downloadable files.
- All files (products) are exactly the same type.
- Products have several custom fields. These are not visible to the front end vendor when they create a new product but are displayed in the product listing
- The Custom field data is extracted from source of uploaded file.

So my basic idea is something like this...
- User uploads a product for download.
- Plugin detects onAfterProductUpdate trigger and gets product id from $product -&gt; product_id
- Plugin cross references the database #__hikashop_file table to get the filename
- Plugin passes filename to method to extract data for custom fields
- Plugin updates the custom fields.

I guess ultimately I could update the database direct but It would be good to use a built in method to do this and keep things tidy.

If you have any ideas it would be very much appreciated.

Regards

/DM

---

[ deeemm.com](http://deeemm.com)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODYyNzcyLW9uYWZ0ZXJwcm9kdWN0dXBkYXRlLXNhdmUtbWV0aG9kP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 1 month ago [\#127821](#127821) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[onAfterProductUpdate save method](/forum/19-hikamarket/862772-onafterproductupdate-save-method#127821 "I'm writing a plugin to do some processing tasks on uploaded products. One of the things that I am trying to achieve is to modify the values of custom fields using the onAfterProductUpdate trigger.  I have successfully carried this out with the onBeforeProductcreate trigger but cannot figure out what the correct method is for onAfterProductUpdate  Here is the code I am testing  Obviously I need to add the correctly formatted save method but I cannot find / figure out what it should be.  Any help greatly appreciated.  TIA  /DM")*

Hi,

In HikaMarket, the product upload is made asynchronously, even if the product does not exists.
So when you submit a new product with a file attached, this file is already in your server and already have a specific "file_id" (but no product_id).

So in the onBeforeProductUpdate, you will have the files.

Regards,

---

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

The following user(s) said Thank You: [DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODYyNzcyLW9uYWZ0ZXJwcm9kdWN0dXBkYXRlLXNhdmUtbWV0aG9kP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")**
- [![DeeEmm's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar26410.jpg)](/forum/user/26410-deeemm "View DeeEmm's Profile") Topic Author
- [ Offline](/forum/user/26410-deeemm)

Less More

- Posts: 114
- Thank you received: 14
-
- [](http://deeemm.com)
-

13 years 1 month ago [\#127837](#127837) by [DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")  Replied by *[DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")* on topic *[onAfterProductUpdate save method](/forum/19-hikamarket/862772-onafterproductupdate-save-method#127837 "I'm writing a plugin to do some processing tasks on uploaded products. One of the things that I am trying to achieve is to modify the values of custom fields using the onAfterProductUpdate trigger.  I have successfully carried this out with the onBeforeProductcreate trigger but cannot figure out what the correct method is for onAfterProductUpdate  Here is the code I am testing  Obviously I need to add the correctly formatted save method but I cannot find / figure out what it should be.  Any help greatly appreciated.  TIA  /DM")*

Thanks Jerome,

I had just implemented JFactory DB methods to update the data but being able to use onBeforeProductUpdate now makes the whole thing very much easier.

/DM

---

[ deeemm.com](http://deeemm.com)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODYyNzcyLW9uYWZ0ZXJwcm9kdWN0dXBkYXRlLXNhdmUtbWV0aG9kP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")**
- [![DeeEmm's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar26410.jpg)](/forum/user/26410-deeemm "View DeeEmm's Profile") Topic Author
- [ Offline](/forum/user/26410-deeemm)

Less More

- Posts: 114
- Thank you received: 14
-
- [](http://deeemm.com)
-

13 years 1 month ago [\#128085](#128085) by [DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")  Replied by *[DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")* on topic *[onAfterProductUpdate save method](/forum/19-hikamarket/862772-onafterproductupdate-save-method#128085 "I'm writing a plugin to do some processing tasks on uploaded products. One of the things that I am trying to achieve is to modify the values of custom fields using the onAfterProductUpdate trigger.  I have successfully carried this out with the onBeforeProductcreate trigger but cannot figure out what the correct method is for onAfterProductUpdate  Here is the code I am testing  Obviously I need to add the correctly formatted save method but I cannot find / figure out what it should be.  Any help greatly appreciated.  TIA  /DM")*

Just a quick update on this.

As I opted to not display the custom fields in the front end form, what I found was that when the product was updated all of the custom fields were overwritten with NULL / Blank values. Basically the data in the custom fields was deleted.

To get over this I opted to show the fields in the front end form but to hide them with the CSS display:none attribute. This was pretty easy as each custom field has its own CSS class. I just added the relevant definitions to my templates CSS file.

Hope this helps someone out in the future.

/DM

---

[ deeemm.com](http://deeemm.com)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODYyNzcyLW9uYWZ0ZXJwcm9kdWN0dXBkYXRlLXNhdmUtbWV0aG9kP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 1 month ago [\#128119](#128119) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[onAfterProductUpdate save method](/forum/19-hikamarket/862772-onafterproductupdate-save-method#128119 "I'm writing a plugin to do some processing tasks on uploaded products. One of the things that I am trying to achieve is to modify the values of custom fields using the onAfterProductUpdate trigger.  I have successfully carried this out with the onBeforeProductcreate trigger but cannot figure out what the correct method is for onAfterProductUpdate  Here is the code I am testing  Obviously I need to add the correctly formatted save method but I cannot find / figure out what it should be.  Any help greatly appreciated.  TIA  /DM")*

Hi,

You shouldn't happen.
Which version of HikaShop/HikaMarket are you using ?

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODYyNzcyLW9uYWZ0ZXJwcm9kdWN0dXBkYXRlLXNhdmUtbWV0aG9kP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")**
- [![DeeEmm's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar26410.jpg)](/forum/user/26410-deeemm "View DeeEmm's Profile") Topic Author
- [ Offline](/forum/user/26410-deeemm)

Less More

- Posts: 114
- Thank you received: 14
-
- [](http://deeemm.com)
-

13 years 1 month ago [\#128156](#128156) by [DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")  Replied by *[DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")* on topic *[onAfterProductUpdate save method](/forum/19-hikamarket/862772-onafterproductupdate-save-method#128156 "I'm writing a plugin to do some processing tasks on uploaded products. One of the things that I am trying to achieve is to modify the values of custom fields using the onAfterProductUpdate trigger.  I have successfully carried this out with the onBeforeProductcreate trigger but cannot figure out what the correct method is for onAfterProductUpdate  Here is the code I am testing  Obviously I need to add the correctly formatted save method but I cannot find / figure out what it should be.  Any help greatly appreciated.  TIA  /DM")*

Hi Jerome. I am using HS 2.2.1 and HM 1.3.0.

/DM

---

[ deeemm.com](http://deeemm.com)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODYyNzcyLW9uYWZ0ZXJwcm9kdWN0dXBkYXRlLXNhdmUtbWV0aG9kP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 1 month ago [\#128338](#128338) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[onAfterProductUpdate save method](/forum/19-hikamarket/862772-onafterproductupdate-save-method#128338 "I'm writing a plugin to do some processing tasks on uploaded products. One of the things that I am trying to achieve is to modify the values of custom fields using the onAfterProductUpdate trigger.  I have successfully carried this out with the onBeforeProductcreate trigger but cannot figure out what the correct method is for onAfterProductUpdate  Here is the code I am testing  Obviously I need to add the correctly formatted save method but I cannot find / figure out what it should be.  Any help greatly appreciated.  TIA  /DM")*

Hi,

Would it be possible to update to HikaShop 2.2.2 ?
I think that the problem is linked with the mass-action system because it is clearly not logical that the data are present (and null).
If the custom field is not available in the front-end, the data shouldn't be present in the object used for the save.

Can you send me a screenshot of your custom field configuration (the one which give you the problem).
I want to be sure that I have the same configuration on my side and the problem is right solve using the latest versions.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODYyNzcyLW9uYWZ0ZXJwcm9kdWN0dXBkYXRlLXNhdmUtbWV0aG9kP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")**
- [![DeeEmm's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar26410.jpg)](/forum/user/26410-deeemm "View DeeEmm's Profile") Topic Author
- [ Offline](/forum/user/26410-deeemm)

Less More

- Posts: 114
- Thank you received: 14
-
- [](http://deeemm.com)
-

13 years 1 month ago [\#128340](#128340) by [DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")  Replied by *[DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")* on topic *[onAfterProductUpdate save method](/forum/19-hikamarket/862772-onafterproductupdate-save-method#128340 "I'm writing a plugin to do some processing tasks on uploaded products. One of the things that I am trying to achieve is to modify the values of custom fields using the onAfterProductUpdate trigger.  I have successfully carried this out with the onBeforeProductcreate trigger but cannot figure out what the correct method is for onAfterProductUpdate  Here is the code I am testing  Obviously I need to add the correctly formatted save method but I cannot find / figure out what it should be.  Any help greatly appreciated.  TIA  /DM")*

Hi Jerome, I will look at upgrading.

I actually wasn't aware that there was a more current version. Guess I should pay more attention ![:D](/media/kunena/emoticons/1.png ":D")

The settings are below, the only difference is that now I have the setting Display-&gt; Front End set to yes instead of no.

[ ![h5434d47.png](/forum/attachment/12930) ](/forum/attachment/12930 "h5434d47.png")

---

[ deeemm.com](http://deeemm.com)

- [ ![h5434d47.png](/forum/attachment/12930) ](/forum/attachment/12930 "h5434d47.png") [ ](/forum/attachment/12930?download=1 "h5434d47.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODYyNzcyLW9uYWZ0ZXJwcm9kdWN0dXBkYXRlLXNhdmUtbWV0aG9kP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")**
- [![DeeEmm's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar26410.jpg)](/forum/user/26410-deeemm "View DeeEmm's Profile") Topic Author
- [ Offline](/forum/user/26410-deeemm)

Less More

- Posts: 114
- Thank you received: 14
-
- [](http://deeemm.com)
-

13 years 1 month ago [\#128341](#128341) by [DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")  Replied by *[DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")* on topic *[onAfterProductUpdate save method](/forum/19-hikamarket/862772-onafterproductupdate-save-method#128341 "I'm writing a plugin to do some processing tasks on uploaded products. One of the things that I am trying to achieve is to modify the values of custom fields using the onAfterProductUpdate trigger.  I have successfully carried this out with the onBeforeProductcreate trigger but cannot figure out what the correct method is for onAfterProductUpdate  Here is the code I am testing  Obviously I need to add the correctly formatted save method but I cannot find / figure out what it should be.  Any help greatly appreciated.  TIA  /DM")*

Jerome,

A bit off topic but just to let you know. My installation is showing as up to date even though version 2.2.1 is installed.

The Admin dashboard says 'All extensions are up-to-date'
The Hikashop &gt; documentation &gt; update / about says 'You have the latest stable version of HikaShop Business: 2.2.1'

I am using Joomla! 3.1.5

Seems to be an issue with the auto updater

/DM

---

[ deeemm.com](http://deeemm.com)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODYyNzcyLW9uYWZ0ZXJwcm9kdWN0dXBkYXRlLXNhdmUtbWV0aG9kP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 1 month ago [\#128451](#128451) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[onAfterProductUpdate save method](/forum/19-hikamarket/862772-onafterproductupdate-save-method#128451 "I'm writing a plugin to do some processing tasks on uploaded products. One of the things that I am trying to achieve is to modify the values of custom fields using the onAfterProductUpdate trigger.  I have successfully carried this out with the onBeforeProductcreate trigger but cannot figure out what the correct method is for onAfterProductUpdate  Here is the code I am testing  Obviously I need to add the correctly formatted save method but I cannot find / figure out what it should be.  Any help greatly appreciated.  TIA  /DM")*

Hi,

There is no issue for the auto updater, the 2.2.2 release is not pushed in auto-update.
It is explained in the change log:
[ www.hikashop.com/support/documentation/5...ashop-changelog.html](http://www.hikashop.com/support/documentation/56-hikashop-changelog.html)

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODYyNzcyLW9uYWZ0ZXJwcm9kdWN0dXBkYXRlLXNhdmUtbWV0aG9kP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")**
- [![DeeEmm's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar26410.jpg)](/forum/user/26410-deeemm "View DeeEmm's Profile") Topic Author
- [ Offline](/forum/user/26410-deeemm)

Less More

- Posts: 114
- Thank you received: 14
-
- [](http://deeemm.com)
-

13 years 1 month ago [\#128469](#128469) by [DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")  Replied by *[DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")* on topic *[onAfterProductUpdate save method](/forum/19-hikamarket/862772-onafterproductupdate-save-method#128469 "I'm writing a plugin to do some processing tasks on uploaded products. One of the things that I am trying to achieve is to modify the values of custom fields using the onAfterProductUpdate trigger.  I have successfully carried this out with the onBeforeProductcreate trigger but cannot figure out what the correct method is for onAfterProductUpdate  Here is the code I am testing  Obviously I need to add the correctly formatted save method but I cannot find / figure out what it should be.  Any help greatly appreciated.  TIA  /DM")*

See, told you I should pay more attention :lol: :lol: :lol: :lol:

---

[ deeemm.com](http://deeemm.com)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODYyNzcyLW9uYWZ0ZXJwcm9kdWN0dXBkYXRlLXNhdmUtbWV0aG9kP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.074 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
