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.

  • Henrik Stokbro 15 posts 65 karma points
    Jun 08, 2015 @ 15:26
    Henrik Stokbro
    0

    Get product/variant custom property value

    The cart is built with the JSON data returned from mydomain.com/ucommerceapi/Json/SyncReply/GetBasket

    Every product has a variation of size (a custom field). example: 10x20 cm, 20x30 cm, and so on.

    I would like to display "10x20 cm" to the user. But this is not in the data. I only have the variation sku, name and price.

    Can I add variant custom data to the JSON cart data, and how do I do this?

    Or do I have to make ajax calls per. variation in the cart? (The idiot approach)

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jun 16, 2015 @ 09:26
    Søren Spelling Lund
    0

    Hi Henrik,

    You can extend the existing webservices to include the information you need. If you're using Avenue Clothing you'll find the services in the /Services folder.

    Check it out at https://bitbucket.org/uCommerce/ucommerce-razor-store/src/e2f4b535c423165cd4dc20810b2f817693f482dd/src/uCommerce.RazorStore/Services/Commands/GetProductVariations.cs?at=default

    Hope this helps.

  • Henrik Stokbro 15 posts 65 karma points
    Jun 17, 2015 @ 08:29
    Henrik Stokbro
    0

    Hi Søren

    I have installed the Avenue Clothing in Umbraco/Developer/Packages. This does not give me a /Services folder

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies