Created
January 26, 2016 23:42
-
-
Save Mozu-CS/6f054445ab5a26fc2257 to your computer and use it in GitHub Desktop.
Return a configured storefront product.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var productStorefrontResource = new Mozu.Api.Resources.Commerce.Catalog.Storefront.ProductResource(_apiContext); | |
var product = productStorefrontResource.GetProductAsync("MANDO-ARMOR-1").Result; | |
var productOptions = new Mozu.Api.Contracts.ProductRuntime.ProductOptionSelections() | |
{ | |
Options = new List<Mozu.Api.Contracts.ProductRuntime.ProductOptionSelection>() | |
{ | |
new Mozu.Api.Contracts.ProductRuntime.ProductOptionSelection() | |
{ | |
AttributeFQN = "tenant~size", | |
Value = "L" | |
}, | |
new Mozu.Api.Contracts.ProductRuntime.ProductOptionSelection() | |
{ | |
AttributeFQN = "tenant~jet-pack", | |
Value = "MANDO-JET-PACK" | |
} | |
}, | |
VariationProductCode = "MANDO-ARMOR-L" | |
}; | |
var configuedProduct = productStorefrontResource.ConfiguredProductAsync(productOptions, "MANDO-ARMOR-1").Result; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment