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
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)
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.
I have installed the Avenue Clothing in Umbraco/Developer/Packages.
This does not give me a /Services folder
Write your reply to:
Image will be uploaded when post is submitted