Optimizing Your Price-Test Integration
Optimization Mode (Beta)
assign lowest_variant = product.first_available_variant
for variant in product.variants
if variant.available
if variant.price < lowest_variant.price
assign lowest_variant = variant
endif
endif
endfor Last updated