Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add default status for cash on delivery payment method. #94

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/Models/Cart.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace Webkul\BookingProduct\Models;

use Webkul\Checkout\Models\Cart as BaseCart;

class Cart extends BaseCart
{
/**
* Checks if cart have stockable items.
*/
public function haveStockableItems(): bool
{
return true;
}
}
4 changes: 4 additions & 0 deletions src/Providers/BookingProductServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
use Webkul\Admin\DataGrids\Catalog\ProductDataGrid as BaseProductDataGrid;
use Webkul\BookingProduct\Console\Commands\Booking as BookingCommand;
use Webkul\BookingProduct\DataGrids\Admin\Catalog\ProductDataGrid;
use Webkul\BookingProduct\Models\Cart;
use Webkul\Checkout\Models\Cart as BaseCart;

class BookingProductServiceProvider extends ServiceProvider
{
Expand All @@ -27,6 +29,8 @@ public function boot(): void

$this->app->bind(BaseProductDataGrid::class, ProductDataGrid::class);

$this->app->bind(BaseCart::class, Cart::class);

$this->app->register(EventServiceProvider::class);

$this->app->register(ModuleServiceProvider::class);
Expand Down