protected function setShippingCharges()
    {
        $this->shippingCharges = 0;
        $orderAmount = $this->subtotal - $this->discount;

        if ($orderAmount > 0 && $orderAmount < config('cart_manager.shipping_charges_threshold')) {
            $shippingCharges = config('cart_manager.shipping_charges');

            if ($shippingCharges > 0) {
                $this->shippingCharges = $shippingCharges;
            }
        }
    }
protected function setShippingCharges()
    {
        $this->shippingCharges = 0;
        $orderAmount = $this->subtotal - $this->discount;

        if ($orderAmount > 0 && $orderAmount < config('cart_manager.shipping_charges_threshold')) {
            $shippingCharges = config('cart_manager.shipping_charges');

            if ($shippingCharges > 0) {
                $this->shippingCharges = $shippingCharges;
            }
        }
    }
protected function setShippingCharges ( ) { $ this -> shippingCharges = 0 ; $ orderAmount = $ this -> subtotal - $ this -> discount ; if ( $ orderAmount > 0 && $ orderAmount < config ( 'cart_manager.shipping_charges_threshold' ) ) { $ shippingCharges = config ( 'cart_manager.shipping_charges' ) ; if ( $ shippingCharges > 0 ) { $ this -> shippingCharges = $ shippingCharges ; } } }
Sets the shipping charges of the cart.

@return void
Sets the shipping charges of the cart .