Merge pull request #6148 from jitendra-webkul/master

Issue #4959 fixed
This commit is contained in:
Jitendra Singh 2022-03-28 12:54:18 +05:30 committed by GitHub
commit b27c8609cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -2,7 +2,7 @@
{!! view_render_event('bagisto.admin.catalog.product.edit_form_accordian.categories.before', ['product' => $product]) !!}
<accordian title="'{{ __('admin::app.catalog.products.categories') }}" :active="false">
<accordian title="{{ __('admin::app.catalog.products.categories') }}" :active="false">
<div slot="body">
{!! view_render_event('bagisto.admin.catalog.product.edit_form_accordian.categories.controls.before', ['product' => $product]) !!}

View File

@ -57,7 +57,11 @@ trait CartTools
}
foreach ($guestCart->items as $guestCartItem) {
$this->addProduct($guestCartItem->product_id, $guestCartItem->additional);
try {
$this->addProduct($guestCartItem->product_id, $guestCartItem->additional);
} catch (\Exception $e) {
//Ignore exception
}
}
$this->collectTotals();