public void ProductVariant(ProductVariantQuery variant, Dictionary <string, int> imageResolutions) { variant .id() .availableForSale() .image(pnvi => pnvi .altText() .transformedSrc() ) .price() .title() .weight() .selectedOptions(pnvso => pnvso .name() .value() ) .weightUnit(); foreach (string alias in imageResolutions.Keys) { variant.image( pnvi => pnvi .altText() .transformedSrc(), maxWidth: imageResolutions[alias], maxHeight: imageResolutions[alias], alias: alias ); } }
public void ProductVariant(ProductVariantQuery variant, Dictionary <string, int> imageResolutions) { variant .id() .availableForSale() .image(i => AliasedTransformedSrcImages(i.altText().transformedSrc(), imageResolutions)) .price() .title() .weight() .selectedOptions(pnvso => pnvso .name() .value() ) .weightUnit(); }
public void ProductVariant(ProductVariantQuery variant, Dictionary <string, int> imageResolutions) { variant .id() .availableForSale() .metafields( ff => MetafieldConnectionDelegate(ff, imageResolutions), first: DefaultQueries.MaxPageSize ) .image(i => AliasedTransformedSrcImages(i.altText().transformedSrc(), imageResolutions)) .price() .title() .weight() .selectedOptions(pnvso => pnvso .name() .value() ) .weightUnit(); }