Developer forum

Forum » Ecommerce - Standard features » Automatically set field values

Automatically set field values

Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi,

 

I am wondering if there's an easy way to set a field value based on a product belonging to a group.

 

My use case is we're importing products from an ERP and we're placing them directly in multiple groups; so far so good. My challenge is that the customer wants certain groups to be represented with a badge (Swift badges), which basically means, to force a valuem, if it belongs to that certain group.

 

What is the best way to achieve this?

  • I can try to force it through Integration if needed
  • A ProductSave notification would problably not cover all of the scenarios because of batch data
  • I am not aware of any scheduled task or settings for this
  • The customer will not have PIM - so a set of steps to bulk edit 

 

I wonder if this should be in the Swift threads or this one, but I believe this may fit more than just Swift Badges.

 

Best Regards,

Nuno Aguiar


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

No easy way I can think of.

You can create a custom field on the group and move the value to product field using a SQL and a scheduler.

Votes for this answer: 1
 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Thanks Nicolai. 

 

You must be logged in to post in the forum