From af67516c3677c6c92bc47ab125e2a5fb35e2de81 Mon Sep 17 00:00:00 2001 From: rahul shukla Date: Thu, 6 Jun 2019 15:16:16 +0530 Subject: [PATCH 1/3] object added with event --- .../Webkul/Shop/src/Resources/views/products/index.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/Webkul/Shop/src/Resources/views/products/index.blade.php b/packages/Webkul/Shop/src/Resources/views/products/index.blade.php index 95a1b6cc0..347e23722 100755 --- a/packages/Webkul/Shop/src/Resources/views/products/index.blade.php +++ b/packages/Webkul/Shop/src/Resources/views/products/index.blade.php @@ -63,13 +63,13 @@ @endif - {!! view_render_event('bagisto.shop.products.index.pagination.before') !!} + {!! view_render_event('bagisto.shop.products.index.pagination.before', ['category' => $category]) !!}
{{ $products->appends(request()->input())->links() }}
- {!! view_render_event('bagisto.shop.products.index.pagination.after') !!} + {!! view_render_event('bagisto.shop.products.index.pagination.after', ['category' => $category]) !!} @else From f924e7ed019e49ff59ae3aa7d03388b5a0e8c1aa Mon Sep 17 00:00:00 2001 From: rahul shukla Date: Fri, 7 Jun 2019 10:06:00 +0530 Subject: [PATCH 2/3] custom price nullable in cart items --- ...custom_price_to_nullable_in_cart_items.php | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 packages/Webkul/Checkout/src/Database/Migrations/2019_06_06_195905_update_custom_price_to_nullable_in_cart_items.php diff --git a/packages/Webkul/Checkout/src/Database/Migrations/2019_06_06_195905_update_custom_price_to_nullable_in_cart_items.php b/packages/Webkul/Checkout/src/Database/Migrations/2019_06_06_195905_update_custom_price_to_nullable_in_cart_items.php new file mode 100644 index 000000000..1364f92ef --- /dev/null +++ b/packages/Webkul/Checkout/src/Database/Migrations/2019_06_06_195905_update_custom_price_to_nullable_in_cart_items.php @@ -0,0 +1,30 @@ +decimal('custom_price', 12,4)->nullable()->change(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + } +} From dc96dfb7b2e28cebfc041e5b59d5902ad99ec96b Mon Sep 17 00:00:00 2001 From: rahul shukla Date: Fri, 7 Jun 2019 11:12:40 +0530 Subject: [PATCH 3/3] custom price default to null --- ...195905_update_custom_price_to_nullable_in_cart_items.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/Webkul/Checkout/src/Database/Migrations/2019_06_06_195905_update_custom_price_to_nullable_in_cart_items.php b/packages/Webkul/Checkout/src/Database/Migrations/2019_06_06_195905_update_custom_price_to_nullable_in_cart_items.php index 1364f92ef..feef7a87d 100644 --- a/packages/Webkul/Checkout/src/Database/Migrations/2019_06_06_195905_update_custom_price_to_nullable_in_cart_items.php +++ b/packages/Webkul/Checkout/src/Database/Migrations/2019_06_06_195905_update_custom_price_to_nullable_in_cart_items.php @@ -14,7 +14,11 @@ class UpdateCustomPriceToNullableInCartItems extends Migration public function up() { Schema::table('cart_items', function (Blueprint $table) { - $table->decimal('custom_price', 12,4)->nullable()->change(); + $table->dropColumn('custom_price'); + }); + + Schema::table('cart_items', function (Blueprint $table) { + $table->decimal('custom_price', 12,4)->nullable(); }); }