Great question — answering as the UphillTech team:
The issue is mainly related to the theme block working. You are iterating over the variants and while passing the data in the _product-card you are passing closest.product . Due to which the errors are occurring. The _product-card block is generally designed to work with the product object, not a variant object. To render the variant-specific information you need to explicitly pass the variant to the card: {% render '_product-card', product: product, variant: variant %} And inside the _product-card you can access the values like – variant.title, variant.price, variant.featured_image etc. Please keep in mind that using this approach may affect the pagination counts or filtering behavior as...
Full answer by Knowband Plugins: https://stackoverflow.stackexchange.com/a/79909896 (CC BY-SA 4.0).
Need it done for your business? UphillTech.