Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Masood Afzal 176 posts 522 karma points
    May 24, 2013 @ 12:49
    Masood Afzal
    0

    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

     

     

     

  • Nickolaj Lundgreen 233 posts 1132 karma points
    May 24, 2013 @ 13:10
    Nickolaj Lundgreen
    0

    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?

  • Masood Afzal 176 posts 522 karma points
    May 24, 2013 @ 14:06
    Masood Afzal
    0

    Thanks Nickolaj, I'll try this.

  • Morten Skjoldager 440 posts 1499 karma points
    May 27, 2013 @ 10:18
    Morten Skjoldager
    0

    Hi Masood,

    Did you manage to figure this out ? 

  • Masood Afzal 176 posts 522 karma points
    May 29, 2013 @ 15:16
    Masood Afzal
    0

    Hi Morten,

    Not tried yet. Looks like demo store from uCommerce has mnay bugs.

  • Morten Skjoldager 440 posts 1499 karma points
    May 31, 2013 @ 14:14
    Morten Skjoldager
    0

    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. 

     

Please Sign in or register to post replies

Write your reply to:

Draft