You are here

basic-cart-cart-template.html.twig in Basic cart 8.4

<div class="basic_cart-grid basic-cart-block">
  {%if basic_cart.empty.status %}
    {% trans %}
      {{ basic_cart.empty.text }}
    {% endtrans %}

  {% else %}


    {% for key,value in basic_cart.data.contents %}
      <div class="basic_cart-cart-contents row">
        <div class="basic_cart-cart-node-title cell">{{ value.link }} </div>
            {%if basic_cart.config.quantity_enabled %}
              <div class="basic_cart-cart-quantity cell">{{ value.quantity }}</div>
              <div class="basic_cart-cart-x cell">x</div>
            {%endif%}  
        <div class="basic_cart-cart-unit-price cell">
        <strong>{{ value.price_value }}</strong>    
        </div>
    </div>
    {% endfor %}
  
  <div class="basic_cart-cart-total-price-contents row">
        <div class="basic_cart-total-price cell">
            {{ basic_cart.config.total_price_label }} : <strong> {{ basic_cart.config.total_price }} </strong>
        </div>
      </div> 


         {%if basic_cart.config.vat_enabled %}
          <div class="basic_cart-block-total-vat-contents row">
          <div class="basic_cart-total-vat cell"> {{ basic_cart.config.vat_label }} : <strong>{{ basic_cart.config.total_price_vat }}</strong></div>
        </div>
        {%endif%}



       <div class="basic_cart-cart-checkout-button basic_cart-cart-checkout-button-block row">
        <a href='{{ basic_cart.config.view_cart_url }}' class='button'>{{ basic_cart.config.view_cart_button }} </a>
      </div>


  {%endif%}
</div>

File

templates/basic-cart-cart-template.html.twig
View source
  1. <div class="basic_cart-grid basic-cart-block">
  2. {%if basic_cart.empty.status %}
  3. {% trans %}
  4. {{ basic_cart.empty.text }}
  5. {% endtrans %}
  6. {% else %}
  7. {% for key,value in basic_cart.data.contents %}
  8. <div class="basic_cart-cart-contents row">
  9. <div class="basic_cart-cart-node-title cell">{{ value.link }} </div>
  10. {%if basic_cart.config.quantity_enabled %}
  11. <div class="basic_cart-cart-quantity cell">{{ value.quantity }}</div>
  12. <div class="basic_cart-cart-x cell">x</div>
  13. {%endif%}
  14. <div class="basic_cart-cart-unit-price cell">
  15. <strong>{{ value.price_value }}</strong>
  16. </div>
  17. </div>
  18. {% endfor %}
  19. <div class="basic_cart-cart-total-price-contents row">
  20. <div class="basic_cart-total-price cell">
  21. {{ basic_cart.config.total_price_label }} : <strong> {{ basic_cart.config.total_price }} </strong>
  22. </div>
  23. </div>
  24. {%if basic_cart.config.vat_enabled %}
  25. <div class="basic_cart-block-total-vat-contents row">
  26. <div class="basic_cart-total-vat cell"> {{ basic_cart.config.vat_label }} : <strong>{{ basic_cart.config.total_price_vat }}</strong></div>
  27. </div>
  28. {%endif%}
  29. <div class="basic_cart-cart-checkout-button basic_cart-cart-checkout-button-block row">
  30. <a href='{{ basic_cart.config.view_cart_url }}' class='button'>{{ basic_cart.config.view_cart_button }} </a>
  31. </div>
  32. {%endif%}
  33. </div>