templates/bundles/SyliusShopBundle/Product/Show/_addToCart.html.twig line 1
{% set product = order_item.variant.product %}{% form_theme form 'bootstrap_4_layout.html.twig' %}<div class="ui segment" id="sylius-product-selecting-variant" {{ sylius_test_html_attribute('product-selecting-variant') }}>{{ sylius_template_event('sylius.shop.product.show.before_add_to_cart', {'product': product, 'order_item': order_item}) }}{{ form_start(form, {'action': path('sylius_shop_ajax_cart_add_item', {'productId': product.id}), 'attr': {'id': 'sylius-product-adding-to-cart', 'class': 'form product-form', 'novalidate': 'novalidate', 'data-redirect': path(configuration.getRedirectRoute('summary'))}}) }}{{ form_errors(form) }}<div class="ui red label bottom pointing hidden sylius-validation-error" id="sylius-cart-validation-error" {{ sylius_test_html_attribute('cart-validation-error') }}></div><table border="0" width="100%"><tr><td>{% if not product.simple %}{% if product.variantSelectionMethodChoice %}{% include '@SyliusShop/Product/Show/_variants.html.twig' %}{% else %}{% include '@SyliusShop/Product/Show/_options.html.twig' %}{% endif %}{% endif %}</td></tr><tr><td><br/></td></tr></table><div class="product-details__quantity"><h3 class="product-details__quantity-title">Choose quantity</h3><div class="quantity-box"><button type="button" class="sub text-white"><i class="fa fa-minus"></i></button><input type="number" id="1" value="1"/><button type="button" class="add text-white"><i class="fa fa-plus"></i></button></div></div>{# <div class="form__count"><span class="form__minus"></span>{{ form_widget(form.cartItem.quantity, {'attr':{'class':'form__field'}}) }}<span class="form__plus"></span></div> #}{# <div class="product-form__favorite"><svg class="icon"><use xlink:href="#heart"></use></svg></div> #}{# <button class="button button--green" type="submit" style="margin-left:5px;"><span>{{ 'sylius.ui.add_to_cart'|trans }}</span><svg class="icon"><use xlink:href="#arrow"></use></svg></button> #}{{ sylius_template_event('sylius.shop.product.show.add_to_cart_form', {'product': product, 'order_item': order_item, 'form': form}) }}{{ form_row(form._token) }}{{ form_end(form, {'render_rest': false}) }}<div class="product-details__buttons"><div class="product-details__buttons-1"><a href="shop-cart.html" class="theme-btn btn-style-one"><span class="btn-title">Add to Wishlist</span></a></div><div class="product-details__buttons-2"><a href="shop-product-details.html" class="theme-btn btn-style-one"><span class="btn-title">Add to Wishlist</span></a></div></div><a class="button button--account" href="{{ path('app_frontend_quote_request_new', { 'product': product.id, '_locale':product.translation.locale })}}" style="color:yellow;"> <span><b>{{'app.ui.quote_request'|trans|upper}}</b></span><svg class="icon"><use xlink:href="#arrow"></use></svg></a></div>