cancel
Showing results for 
Search instead for 
Did you mean: 

how to push products items to add to cart using odata services in sapui5

Former Member
0 Kudos

I have doubt on add to cart in shopping cart using sapui5 i dont know how to push product items to cart in odata services....

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

If you are using WEB IDE you can do File -> New -> Project From Sample Apllication -> Shop. It is a sample FIORI app for shopping which has a shopping cart as an odata model. I didn't investigate in full but they have a ShoppingCart and ShoppingCartItem entity and are using function imports to add the product to the shopping cart.

Former Member
0 Kudos

Thank you sir...

former_member340030
Contributor
0 Kudos

Hi ,

Check out this example of demo apps in Sapui5 SDK Demo kit

thanks

Viplove

Former Member
0 Kudos

I need in odata services is there any difference between local json and odata services...beacuse already i worked on same example in local json but i need in odata services.

former_member340030
Contributor
0 Kudos

Hi Kallesh KS ,

It will be same just where ever in the example you are calling local json you need to call odata services.

And the Json output of odata service needs to be same as that of local json ..

thanks

Viplove

Former Member
0 Kudos

Thank you sir..