@php /** * @name Pagina prodotto\Dettagli\Aggiungi al carrello * @version 1.0.0 */ @endphp @php $only_instock = false; if(!is_agent()){ $only_instock = call_setting('settings.product.only_instock'); } @endphp
@if($only_instock && $product->is_outofstock() && !$product->in_cart())
{{ __t('Prodotto esaurito') }}
@else @if(current_cart() !== false) {!! Form::open(['url' => Request::url(), 'method' => 'post', 'id' => 'frm-product-' . $product->get_id(), 'class' => 'product-form form-horizontal']) !!} {!! Form::hidden('product_id', $product->get_id() ) !!} {!! Form::hidden('product_quickview', $product->is_quickview() ) !!} @if($restock) {!! Form::hidden('restock', '1' ) !!} @endif @endif
@if ($product->is_simple()) @get_template_part('page.product.parts.product', 'simple', ['product' => $product]) @endif @if ($product->is_variable()) @get_template_part('page.product.parts.product', 'variable', ['product' => $product]) @endif
@if(current_cart() !== false)
{!! Form::button(__t('Aggiungi al carrello'), ['type' => 'submit', 'class' => 'btn btn-block btn-primary btn-loader btn-loading-no-disable btn-confirm']) !!}
{!! Form::close() !!} @endif @endif