Open sidebar
********************************************************************************************************* {{ Cart::getTotalQuantity() }} --> Invokes the static total quantity on cart ********************************************************************************************************* FILE: /resources/views/restorants/show.blade.php On file 183. @if( !(isset($canDoOrdering)&&!$canDoOrdering) ) <div onClick="openNav()" class="callOutShoppingButtonBottom icon icon-shape bg-gradient-red text-white rounded-circle shadow mb-4"> <i class="ni ni-cart"> <span style="font-family: 'Open Sans',sans-serif" class="total-qunantity badge badge-pill badge-secondary">{{ Cart::getTotalQuantity() }}</span> </i> </div> @endif ********************************************************************************************************* FILE: /vendor/darryldecode/cart/src/Darryldecode/Cart/Cart.php On line 650. /** * get total quantity of items in the cart * * @return int */ public function getTotalQuantity() { $items = $this->getContent(); if ($items->isEmpty()) return 0; $count = $items->sum(function ($item) { return $item['quantity']; }); return $count; } ********************************************************************************************************* FILE: public/custom/js/cartFunctions.js On line 99. function getCartContentAndTotalPrice(){ axios.get('/cart-getContent').then(function (response) { cartContent.items=response.data.data; //cartContentMobile.items=response.data.data; updateSubTotalPrice(response.data.total,true); }) .catch(function (error) { }); }; *********************************************************************************************************
Close sidebar
Back
Please note that all pasted data is publicly available.
X (fomerly Twitter)
GitHub
Use setting
Back
Please note that all pasted data is publicly available.
X (fomerly Twitter)
GitHub
Use setting