page produit Imprimer produit
This commit is contained in:
parent
90082f08eb
commit
2fca0ca8b4
2 changed files with 7 additions and 1 deletions
5
resources/js/pages/product.js
vendored
5
resources/js/pages/product.js
vendored
|
|
@ -146,4 +146,9 @@ if (document.querySelector('.content.product')) {
|
|||
for (let button of document.querySelectorAll('a.set-cart')) {
|
||||
button.addEventListener('click', setCart);
|
||||
}
|
||||
|
||||
document.getElementById('printProduct').addEventListener('click', function (e) {
|
||||
e.preventDefault();
|
||||
window.print();
|
||||
});
|
||||
}
|
||||
|
|
@ -200,7 +200,8 @@
|
|||
@elseif (!Auth::guard('customer')->check())
|
||||
<a href="{{ route('connexion') }}" title="{{ __('Ajouter au panier') }}"><i class="icon-cart"></i></a>
|
||||
@endif
|
||||
<a href="#" title="" onclick="window.print();"><i class="icon-print"></i></a>
|
||||
{{-- TODO: CSS PRINT --}}
|
||||
<a id="printProduct" href="#" title="{{ __('Imprimer la page') }}"><i class="icon-print"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue