Fixed errors in providers file and composer version bag which was allowing composer to autoload even when paths in provider and composer files were not correct

This commit is contained in:
prashant-webkul 2018-09-20 19:54:33 +05:30
parent 51b4278262
commit 8f28bd162e
6 changed files with 45 additions and 15 deletions

View File

@ -36,6 +36,7 @@
"webkul/laravel-attribute": "self.version",
"webkul/laravel-cart": "self.version",
"webkul/laravel-customer": "self.version",
"webkul/laravel-inventory": "self.version",
"webkul/laravel-category": "self.version",
"webkul/laravel-product": "self.version",
"webkul/laravel-shop": "self.version",

View File

@ -180,15 +180,13 @@ return [
Webkul\User\Providers\UserServiceProvider::class,
Webkul\Admin\Providers\AdminServiceProvider::class,
Webkul\Ui\Providers\UiServiceProvider::class,
// Webkul\Category\Providers\CategoryServiceProvider::class,
Webkul\Category\Providers\CategoryServiceProvider::class,
Webkul\Attribute\Providers\AttributeServiceProvider::class,
Webkul\Core\Providers\CoreServiceProvider::class,
Webkul\Shop\Providers\ShopServiceProvider::class,
Webkul\Customer\Providers\CustomerServiceProvider::class,
Webkul\Inventory\Providers\InventoryServiceProvider::class,
Webkul\Product\Providers\ProductServiceProvider::class,
Webkul\Shop\Providers\ShopServiceProvider::class,
Webkul\Customer\Providers\CustomerServiceProvider::class,
Webkul\Theme\Providers\ThemeServiceProvider::class,
Webkul\Cart\Providers\CartServiceProvider::class,
Webkul\Shipping\Providers\ShippingServiceProvider::class,

View File

@ -22,6 +22,22 @@ class CreateCartTable extends Migration
$table->foreign('channel_id')->references('id')->on('channels');
$table->string('coupon_code')->nullable();
$table->boolean('is_gift')->nullable();
$table->integer('items_count')->nullable();
$table->decimal('items_qty', 12, 4)->nullable();
$table->string('global_currency_code')->nullable();
$table->string('base_currency_code')->nullable();
$table->string('store_currency_code')->nullable();
$table->string('quote_currency_code')->nullable();
$table->decimal('grand_total', 12, 4)->nullable();
$table->decimal('base_grand_total', 12, 4)->nullable();
$table->decimal('sub_total', 12, 4)->nullable();
$table->decimal('base_sub_total', 12, 4)->nullable();
$table->decimal('sub_total_with_discount', 12, 4)->nullable();
$table->decimal('base_sub_total_with_discount', 12, 4)->nullable();
$table->string('checkout_method')->nullable();
$table->boolean('is_guest')->nullable();
$table->string('customer_full_name')->nullable();
$table->dateTime('conversion_time')->nullable();
$table->timestamps();
});
}

View File

@ -23,6 +23,15 @@ class CreateCartProductsTable extends Migration
$table->integer('tax_category_id')->unsigned()->nullable();
$table->foreign('tax_category_id')->references('id')->on('tax_categories');
$table->string('coupon_code')->nullable();
$table->decimal('weight', 12,4)->nullable();
$table->decimal('price', 12,4)->nullable();
$table->decimal('base_price', 12,4)->nullable();
$table->decimal('custom_price', 12,4)->nullable();
$table->decimal('discount_percent', 12,4)->nullable();
$table->decimal('discount_amount', 12,4)->nullable();
$table->decimal('base_discount_amount', 12,4)->nullable();
$table->boolean('no_discount')->nullable()->default(0);
$table->json('additional')->nullable();
$table->timestamps();
});
}

View File

@ -34,7 +34,6 @@
</div>
</div>
</div>
</template>
<script>
@ -76,7 +75,6 @@ export default {
initializeDropdown: function() {
this.totalitems = this.items.length;
this.cart_items = this.items;
console.log("The cart items here are = ",cart_items);
}
}
}

File diff suppressed because one or more lines are too long