Question

Total of products amount at order section

Hi,

There is a placeholder for printing the total of all product amount in the order section as shown in image below,

I have the similar requirement to be built in my project please suggest the configurations for the same

Like 0

Like

6 comments

Hi,

 

You need to debug the logic of this placeholder and implement a similar logic for the detail that you need. The methods you are interested is updateSummary from the OrderProductDetailV2 schema and diff objects are all that contain summaryCount and summaryAmount in their names.

 

Best regards,

Oscar

Oscar Dylan,

Hi,

I tried with the same suggested but the detail is not loading and the console shows the following error.

Janhavi Tanna,

 

Hi,

 

Cannot read property count of null means that some element that should return the count or count something tried to count something out of null. You need to debug the code and check which object returns null.

 

Best regards,

Oscar

Oscar Dylan,

Hi,

I found that there is no Id being passed in the "updatesummary" function for my configuration.

Please suggest any configuration passing a Id to this function.

Janhavi Tanna,

 

And why do you need an Id here and which Id do you need?

Oscar Dylan,

Hi,

I was trying to find the id of the object which returns null value but was unable to find any.

Show all comments