Category: shopware

How do I use twig variables in my Vue.js app

My twig file looks like this: <select name=”lineItems[{{ product.id }}][quantity]” class=”custom-select product-detail-quantity-select”> {% for quantity in range(product.minPurchase, product.calculatedMaxPurchase, product.purchaseSteps) %} <option value=”{{ quantity }}”> {{ quantity }}{% if product.packUnit %} {{ product.packUnit }}{% endif %} </option> {% endfor %} </select>…