cancel
Showing results for 
Search instead for 
Did you mean: 

How to add calculate field to Product repository

SOLVED
   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

How to add calculate field to Product repository

I would like to add new field call discount that calculate from product's price - product's special price and make it able to filter by search criteria.

 

I think I should use Extension Attributes but I not sure how to implement it.

 

Can anyone help suggest?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to add calculate field to Product repository

Hi @Damian Culotta,

 

I have done by collection already. it's working well for me. Thank you.

View solution in original post

2 REPLIES 2

Re: How to add calculate field to Product repository

Hi @jirawat_pattanayutanachot,

 

Isn't possible for you to use a custom attribute with a custom backend model to get the price difference?

Re: How to add calculate field to Product repository

Hi @Damian Culotta,

 

I have done by collection already. it's working well for me. Thank you.