Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Umbraco 4.11.5
I have products with different sizes. I want to display the price for each size when user selects a size from the dropdown list.
I am struggling to find an api call / easy way to get price of selected variant item. can anyone please help?
Thanks
Masood
I would pass the variants Id (saved as an data attribute in the frontend) to at webservice.
The webservice would then fetch a product with that id (var variant = Product.Get() ),
and return the CatalogLibrary.CalculatePrice(variant).YourPrice.Amount
Does that make sense?
Thanks Nickolaj, I'll try this.
Hi Masood,
Did you manage to figure this out ?
Hi Morten,
Not tried yet. Looks like demo store from uCommerce has mnay bugs.
That depends how the default behaviour works. I think it was kept simple in order for new uCommerce people to get an easy overview of what is possible. Also, it cannot behave the way that every person would like it to.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How can I get Variant item price using API call?
Umbraco 4.11.5
I have products with different sizes. I want to display the price for each size when user selects a size from the dropdown list.
I am struggling to find an api call / easy way to get price of selected variant item. can anyone please help?
Thanks
Masood
I would pass the variants Id (saved as an data attribute in the frontend) to at webservice.
The webservice would then fetch a product with that id (var variant = Product.Get() ),
and return the CatalogLibrary.CalculatePrice(variant).YourPrice.Amount
Does that make sense?
Thanks Nickolaj, I'll try this.
Hi Masood,
Did you manage to figure this out ?
Hi Morten,
Not tried yet. Looks like demo store from uCommerce has mnay bugs.
That depends how the default behaviour works. I think it was kept simple in order for new uCommerce people to get an easy overview of what is possible. Also, it cannot behave the way that every person would like it to.
is working on a reply...