How to avoid customfield from being copied to color/size inv  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

How to avoid customfield from being copied to color/size inv

Postby sameermoin » Mon Oct 23, 2023 12:55 am

Hello Everyone,

I am facing an issue with color/size matrix items. I have some specific custom fields that I use to differentiate between color/size inventory items, such as store IDs. When I initially created these items using the inventory maintenance form. It works fine because it takes some time to push them to the store, and once they are pushed, another application updates the Jiwa inventory custom fields using the custom endpoints defined on the Jiwa API service. In this scenario, everything works correctly as the IDs are populated.

However, when I update any of these items again via the inventory maintenance form, it copies all the custom fields to others, which is not what I want. Is there any way to avoid it ?

What I have found is that it already copies the custom field during the save start event.

Additionally, is it possible to restrict specific custom fields from being copied?


Thanks
sameermoin
Regular Contributor
Regular Contributor
 
Posts: 75
Joined: Wed Jun 15, 2022 4:02 am
Topics Solved: 1

Re: How to avoid customfield from being copied to color/size  Topic is solved

Postby SBarnes » Mon Oct 23, 2023 10:08 am

There is a copy end event attach a handler to that and then set the custom setting values as you wish.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 34 guests

cron