2018-07-12 07:12:48 +00:00
|
|
|
<?php
|
|
|
|
|
|
2019-04-07 01:00:55 +00:00
|
|
|
Route::group(['middleware' => ['web', 'locale', 'theme', 'currency']], function () {
|
2018-10-28 13:23:20 +00:00
|
|
|
//Store front home
|
2019-04-18 10:20:03 +00:00
|
|
|
Route::get('/', 'Webkul\Shop\Http\Controllers\HomeController@index')->defaults('_config', [
|
2018-08-21 10:58:55 +00:00
|
|
|
'view' => 'shop::home.index'
|
2019-04-18 10:20:03 +00:00
|
|
|
])->name('shop.home.index');
|
2018-08-10 09:28:35 +00:00
|
|
|
|
2018-11-16 11:51:10 +00:00
|
|
|
//subscription
|
|
|
|
|
//subscribe
|
|
|
|
|
Route::get('/subscribe', 'Webkul\Shop\Http\Controllers\SubscriptionController@subscribe')->name('shop.subscribe');
|
|
|
|
|
|
|
|
|
|
//unsubscribe
|
2018-11-28 07:29:08 +00:00
|
|
|
Route::get('/unsubscribe/{token}', 'Webkul\Shop\Http\Controllers\SubscriptionController@unsubscribe')->name('shop.unsubscribe');
|
2018-11-16 11:51:10 +00:00
|
|
|
|
2018-10-29 06:09:09 +00:00
|
|
|
//Store front search
|
|
|
|
|
Route::get('/search', 'Webkul\Shop\Http\Controllers\SearchController@index')->defaults('_config', [
|
|
|
|
|
'view' => 'shop::search.search'
|
|
|
|
|
])->name('shop.search.index');
|
|
|
|
|
|
2020-06-11 13:04:16 +00:00
|
|
|
//Upload image for search product
|
|
|
|
|
Route::post('/upload-search-image', 'Webkul\Shop\Http\Controllers\HomeController@upload')->name('shop.image.search.upload');
|
|
|
|
|
|
2018-11-05 04:55:05 +00:00
|
|
|
//Country State Selector
|
|
|
|
|
Route::get('get/countries', 'Webkul\Core\Http\Controllers\CountryStateController@getCountries')->defaults('_config', [
|
|
|
|
|
'view' => 'shop::test'
|
|
|
|
|
])->name('get.countries');
|
|
|
|
|
|
|
|
|
|
//Get States When Country is Passed
|
|
|
|
|
Route::get('get/states/{country}', 'Webkul\Core\Http\Controllers\CountryStateController@getStates')->defaults('_config', [
|
|
|
|
|
'view' => 'shop::test'
|
|
|
|
|
])->name('get.states');
|
|
|
|
|
|
2018-10-04 14:16:23 +00:00
|
|
|
//checkout and cart
|
2018-10-28 13:23:20 +00:00
|
|
|
//Cart Items(listing)
|
2018-10-04 10:28:44 +00:00
|
|
|
Route::get('checkout/cart', 'Webkul\Shop\Http\Controllers\CartController@index')->defaults('_config', [
|
2018-09-26 04:21:14 +00:00
|
|
|
'view' => 'shop::checkout.cart.index'
|
|
|
|
|
])->name('shop.checkout.cart.index');
|
|
|
|
|
|
2019-12-21 07:31:16 +00:00
|
|
|
Route::post('checkout/cart/coupon', 'Webkul\Shop\Http\Controllers\CartController@applyCoupon')->name('shop.checkout.cart.coupon.apply');
|
2019-06-10 07:49:05 +00:00
|
|
|
|
2019-12-21 07:31:16 +00:00
|
|
|
Route::delete('checkout/cart/coupon', 'Webkul\Shop\Http\Controllers\CartController@removeCoupon')->name('shop.checkout.coupon.remove.coupon');
|
2020-01-23 05:12:09 +00:00
|
|
|
|
2018-10-28 13:23:20 +00:00
|
|
|
//Cart Items Add
|
2019-04-07 01:00:55 +00:00
|
|
|
Route::post('checkout/cart/add/{id}', 'Webkul\Shop\Http\Controllers\CartController@add')->defaults('_config', [
|
2019-01-18 11:10:40 +00:00
|
|
|
'redirect' => 'shop.checkout.cart.index'
|
|
|
|
|
])->name('cart.add');
|
2018-10-04 10:28:44 +00:00
|
|
|
|
2018-10-28 13:23:20 +00:00
|
|
|
//Cart Items Remove
|
2018-10-04 10:28:44 +00:00
|
|
|
Route::get('checkout/cart/remove/{id}', 'Webkul\Shop\Http\Controllers\CartController@remove')->name('cart.remove');
|
|
|
|
|
|
2018-10-28 13:23:20 +00:00
|
|
|
//Cart Update Before Checkout
|
2019-04-07 01:00:55 +00:00
|
|
|
Route::post('/checkout/cart', 'Webkul\Shop\Http\Controllers\CartController@updateBeforeCheckout')->defaults('_config', [
|
2018-10-04 10:28:44 +00:00
|
|
|
'redirect' => 'shop.checkout.cart.index'
|
|
|
|
|
])->name('shop.checkout.cart.update');
|
|
|
|
|
|
2018-10-28 13:23:20 +00:00
|
|
|
//Cart Items Remove
|
2019-04-07 01:00:55 +00:00
|
|
|
Route::get('/checkout/cart/remove/{id}', 'Webkul\Shop\Http\Controllers\CartController@remove')->defaults('_config', [
|
2018-10-04 10:28:44 +00:00
|
|
|
'redirect' => 'shop.checkout.cart.index'
|
|
|
|
|
])->name('shop.checkout.cart.remove');
|
|
|
|
|
|
2018-10-28 13:23:20 +00:00
|
|
|
//Checkout Index page
|
2018-09-28 12:54:26 +00:00
|
|
|
Route::get('/checkout/onepage', 'Webkul\Shop\Http\Controllers\OnepageController@index')->defaults('_config', [
|
2018-09-19 06:58:15 +00:00
|
|
|
'view' => 'shop::checkout.onepage'
|
2018-09-26 04:21:14 +00:00
|
|
|
])->name('shop.checkout.onepage.index');
|
2018-09-13 11:10:45 +00:00
|
|
|
|
2019-05-30 13:02:01 +00:00
|
|
|
//Checkout Save Order
|
|
|
|
|
Route::get('/checkout/summary', 'Webkul\Shop\Http\Controllers\OnepageController@summary')->name('shop.checkout.summary');
|
|
|
|
|
|
2018-10-28 13:23:20 +00:00
|
|
|
//Checkout Save Address Form Store
|
2018-10-04 06:42:06 +00:00
|
|
|
Route::post('/checkout/save-address', 'Webkul\Shop\Http\Controllers\OnepageController@saveAddress')->name('shop.checkout.save-address');
|
2018-08-21 13:14:48 +00:00
|
|
|
|
2018-10-28 13:23:20 +00:00
|
|
|
//Checkout Save Shipping Address Form Store
|
2018-10-04 06:42:06 +00:00
|
|
|
Route::post('/checkout/save-shipping', 'Webkul\Shop\Http\Controllers\OnepageController@saveShipping')->name('shop.checkout.save-shipping');
|
2018-09-20 10:01:51 +00:00
|
|
|
|
2018-10-28 13:23:20 +00:00
|
|
|
//Checkout Save Payment Method Form
|
2018-10-04 06:42:06 +00:00
|
|
|
Route::post('/checkout/save-payment', 'Webkul\Shop\Http\Controllers\OnepageController@savePayment')->name('shop.checkout.save-payment');
|
|
|
|
|
|
2020-11-27 05:40:04 +00:00
|
|
|
/* check minimum order */
|
|
|
|
|
Route::post('/checkout/check-minimum-order', 'Webkul\Shop\Http\Controllers\OnepageController@checkMinimumOrder')->name('shop.checkout.check-minimum-order');
|
|
|
|
|
|
2018-10-28 13:23:20 +00:00
|
|
|
//Checkout Save Order
|
2018-10-04 06:42:06 +00:00
|
|
|
Route::post('/checkout/save-order', 'Webkul\Shop\Http\Controllers\OnepageController@saveOrder')->name('shop.checkout.save-order');
|
|
|
|
|
|
2018-10-28 13:23:20 +00:00
|
|
|
//Checkout Order Successfull
|
2018-10-04 06:42:06 +00:00
|
|
|
Route::get('/checkout/success', 'Webkul\Shop\Http\Controllers\OnepageController@success')->defaults('_config', [
|
|
|
|
|
'view' => 'shop::checkout.success'
|
|
|
|
|
])->name('shop.checkout.success');
|
2018-09-20 10:01:51 +00:00
|
|
|
|
2018-10-30 04:31:01 +00:00
|
|
|
//Shop buynow button action
|
2018-10-30 11:22:36 +00:00
|
|
|
Route::get('move/wishlist/{id}', 'Webkul\Shop\Http\Controllers\CartController@moveToWishlist')->name('shop.movetowishlist');
|
2018-10-30 04:31:01 +00:00
|
|
|
|
2019-06-28 14:18:52 +00:00
|
|
|
Route::get('/downloadable/download-sample/{type}/{id}', 'Webkul\Shop\Http\Controllers\ProductController@downloadSample')->name('shop.downloadable.download_sample');
|
|
|
|
|
|
2018-10-28 13:23:20 +00:00
|
|
|
// Show Product Review Form
|
2018-09-19 06:58:15 +00:00
|
|
|
Route::get('/reviews/{slug}', 'Webkul\Shop\Http\Controllers\ReviewController@show')->defaults('_config', [
|
2018-08-30 13:22:15 +00:00
|
|
|
'view' => 'shop::products.reviews.index'
|
|
|
|
|
])->name('shop.reviews.index');
|
|
|
|
|
|
2018-10-28 13:23:20 +00:00
|
|
|
// Show Product Review(listing)
|
2018-09-08 08:41:36 +00:00
|
|
|
Route::get('/product/{slug}/review', 'Webkul\Shop\Http\Controllers\ReviewController@create')->defaults('_config', [
|
2018-08-30 13:22:15 +00:00
|
|
|
'view' => 'shop::products.reviews.create'
|
|
|
|
|
])->name('shop.reviews.create');
|
|
|
|
|
|
2018-10-28 13:23:20 +00:00
|
|
|
// Show Product Review Form Store
|
2018-09-08 08:41:36 +00:00
|
|
|
Route::post('/product/{slug}/review', 'Webkul\Shop\Http\Controllers\ReviewController@store')->defaults('_config', [
|
2019-02-21 11:06:27 +00:00
|
|
|
'redirect' => 'shop.home.index'
|
2018-09-08 08:41:36 +00:00
|
|
|
])->name('shop.reviews.store');
|
|
|
|
|
|
2019-06-29 09:53:34 +00:00
|
|
|
// Download file or image
|
|
|
|
|
Route::get('/product/{id}/{attribute_id}', 'Webkul\Shop\Http\Controllers\ProductController@download')->defaults('_config', [
|
|
|
|
|
'view' => 'shop.products.index'
|
|
|
|
|
])->name('shop.product.file.download');
|
|
|
|
|
|
2018-10-25 07:46:45 +00:00
|
|
|
//customer routes starts here
|
|
|
|
|
Route::prefix('customer')->group(function () {
|
|
|
|
|
// forgot Password Routes
|
2018-10-28 13:23:20 +00:00
|
|
|
// Forgot Password Form Show
|
2018-10-25 07:46:45 +00:00
|
|
|
Route::get('/forgot-password', 'Webkul\Customer\Http\Controllers\ForgotPasswordController@create')->defaults('_config', [
|
|
|
|
|
'view' => 'shop::customers.signup.forgot-password'
|
|
|
|
|
])->name('customer.forgot-password.create');
|
2018-10-10 10:41:33 +00:00
|
|
|
|
2018-10-28 13:23:20 +00:00
|
|
|
// Forgot Password Form Store
|
2018-10-25 07:46:45 +00:00
|
|
|
Route::post('/forgot-password', 'Webkul\Customer\Http\Controllers\ForgotPasswordController@store')->name('customer.forgot-password.store');
|
2018-10-10 10:41:33 +00:00
|
|
|
|
2018-10-28 13:23:20 +00:00
|
|
|
// Reset Password Form Show
|
2018-10-25 07:46:45 +00:00
|
|
|
Route::get('/reset-password/{token}', 'Webkul\Customer\Http\Controllers\ResetPasswordController@create')->defaults('_config', [
|
|
|
|
|
'view' => 'shop::customers.signup.reset-password'
|
|
|
|
|
])->name('customer.reset-password.create');
|
2018-08-21 13:14:48 +00:00
|
|
|
|
2018-10-28 13:23:20 +00:00
|
|
|
// Reset Password Form Store
|
2018-10-25 07:46:45 +00:00
|
|
|
Route::post('/reset-password', 'Webkul\Customer\Http\Controllers\ResetPasswordController@store')->defaults('_config', [
|
2018-11-28 07:29:08 +00:00
|
|
|
'redirect' => 'customer.profile.index'
|
2018-10-25 07:46:45 +00:00
|
|
|
])->name('customer.reset-password.store');
|
2018-08-22 07:27:41 +00:00
|
|
|
|
|
|
|
|
// Login Routes
|
2018-10-28 13:23:20 +00:00
|
|
|
// Login form show
|
2018-08-22 07:27:41 +00:00
|
|
|
Route::get('login', 'Webkul\Customer\Http\Controllers\SessionController@show')->defaults('_config', [
|
|
|
|
|
'view' => 'shop::customers.session.index',
|
|
|
|
|
])->name('customer.session.index');
|
|
|
|
|
|
2018-10-28 13:23:20 +00:00
|
|
|
// Login form store
|
2018-08-22 07:27:41 +00:00
|
|
|
Route::post('login', 'Webkul\Customer\Http\Controllers\SessionController@create')->defaults('_config', [
|
2018-10-25 07:46:45 +00:00
|
|
|
'redirect' => 'customer.profile.index'
|
2018-08-22 07:27:41 +00:00
|
|
|
])->name('customer.session.create');
|
|
|
|
|
|
|
|
|
|
// Registration Routes
|
2018-10-28 13:23:20 +00:00
|
|
|
//registration form show
|
2018-08-22 07:27:41 +00:00
|
|
|
Route::get('register', 'Webkul\Customer\Http\Controllers\RegistrationController@show')->defaults('_config', [
|
2018-10-28 13:23:20 +00:00
|
|
|
'view' => 'shop::customers.signup.index'
|
2018-08-22 07:27:41 +00:00
|
|
|
])->name('customer.register.index');
|
|
|
|
|
|
2018-10-28 13:23:20 +00:00
|
|
|
//registration form store
|
2018-08-22 07:27:41 +00:00
|
|
|
Route::post('register', 'Webkul\Customer\Http\Controllers\RegistrationController@create')->defaults('_config', [
|
2018-11-27 10:55:23 +00:00
|
|
|
'redirect' => 'customer.session.index',
|
2018-10-28 13:23:20 +00:00
|
|
|
])->name('customer.register.create');
|
2018-08-22 07:27:41 +00:00
|
|
|
|
2018-11-22 12:43:03 +00:00
|
|
|
//verify account
|
2018-11-27 10:55:23 +00:00
|
|
|
Route::get('/verify-account/{token}', 'Webkul\Customer\Http\Controllers\RegistrationController@verifyAccount')->name('customer.verify');
|
|
|
|
|
|
|
|
|
|
//resend verification email
|
|
|
|
|
Route::get('/resend/verification/{email}', 'Webkul\Customer\Http\Controllers\RegistrationController@resendVerificationEmail')->name('customer.resend.verification-email');
|
2018-11-22 12:43:03 +00:00
|
|
|
|
2019-10-18 13:13:38 +00:00
|
|
|
// for customer login checkout
|
2019-10-21 10:07:51 +00:00
|
|
|
Route::post('/customer/exist', 'Webkul\Shop\Http\Controllers\OnepageController@checkExistCustomer')->name('customer.checkout.exist');
|
2019-10-18 13:13:38 +00:00
|
|
|
|
2019-10-23 07:36:34 +00:00
|
|
|
// for customer login checkout
|
|
|
|
|
Route::post('/customer/checkout/login', 'Webkul\Shop\Http\Controllers\OnepageController@loginForCheckout')->name('customer.checkout.login');
|
|
|
|
|
|
2018-08-22 07:27:41 +00:00
|
|
|
// Auth Routes
|
|
|
|
|
Route::group(['middleware' => ['customer']], function () {
|
|
|
|
|
|
2018-10-28 13:23:20 +00:00
|
|
|
//Customer logout
|
2018-08-22 07:27:41 +00:00
|
|
|
Route::get('logout', 'Webkul\Customer\Http\Controllers\SessionController@destroy')->defaults('_config', [
|
|
|
|
|
'redirect' => 'customer.session.index'
|
|
|
|
|
])->name('customer.session.destroy');
|
|
|
|
|
|
2018-10-28 13:23:20 +00:00
|
|
|
//Customer Wishlist add
|
2018-10-04 14:16:23 +00:00
|
|
|
Route::get('wishlist/add/{id}', 'Webkul\Customer\Http\Controllers\WishlistController@add')->name('customer.wishlist.add');
|
|
|
|
|
|
2018-10-28 13:23:20 +00:00
|
|
|
//Customer Wishlist remove
|
2018-10-04 14:16:23 +00:00
|
|
|
Route::get('wishlist/remove/{id}', 'Webkul\Customer\Http\Controllers\WishlistController@remove')->name('customer.wishlist.remove');
|
|
|
|
|
|
2018-11-16 11:51:10 +00:00
|
|
|
//Customer Wishlist remove
|
|
|
|
|
Route::get('wishlist/removeall', 'Webkul\Customer\Http\Controllers\WishlistController@removeAll')->name('customer.wishlist.removeall');
|
|
|
|
|
|
2018-10-28 13:23:20 +00:00
|
|
|
//Customer Wishlist move to cart
|
2018-10-15 14:48:58 +00:00
|
|
|
Route::get('wishlist/move/{id}', 'Webkul\Customer\Http\Controllers\WishlistController@move')->name('customer.wishlist.move');
|
|
|
|
|
|
2018-08-22 07:27:41 +00:00
|
|
|
//customer account
|
|
|
|
|
Route::prefix('account')->group(function () {
|
2018-10-28 13:23:20 +00:00
|
|
|
//Customer Dashboard Route
|
2018-08-31 06:03:11 +00:00
|
|
|
Route::get('index', 'Webkul\Customer\Http\Controllers\AccountController@index')->defaults('_config', [
|
|
|
|
|
'view' => 'shop::customers.account.index'
|
2018-08-23 13:11:56 +00:00
|
|
|
])->name('customer.account.index');
|
|
|
|
|
|
2018-10-28 13:23:20 +00:00
|
|
|
//Customer Profile Show
|
2018-08-23 13:11:56 +00:00
|
|
|
Route::get('profile', 'Webkul\Customer\Http\Controllers\CustomerController@index')->defaults('_config', [
|
2019-04-07 01:00:55 +00:00
|
|
|
'view' => 'shop::customers.account.profile.index'
|
2018-08-23 13:11:56 +00:00
|
|
|
])->name('customer.profile.index');
|
2018-08-22 07:27:41 +00:00
|
|
|
|
2018-10-28 13:23:20 +00:00
|
|
|
//Customer Profile Edit Form Show
|
2019-04-01 07:13:44 +00:00
|
|
|
Route::get('profile/edit', 'Webkul\Customer\Http\Controllers\CustomerController@edit')->defaults('_config', [
|
2018-08-23 13:11:56 +00:00
|
|
|
'view' => 'shop::customers.account.profile.edit'
|
|
|
|
|
])->name('customer.profile.edit');
|
|
|
|
|
|
2018-10-28 13:23:20 +00:00
|
|
|
//Customer Profile Edit Form Store
|
2019-04-01 07:13:44 +00:00
|
|
|
Route::post('profile/edit', 'Webkul\Customer\Http\Controllers\CustomerController@update')->defaults('_config', [
|
2019-05-08 12:22:54 +00:00
|
|
|
'redirect' => 'customer.profile.index'
|
2020-06-11 13:04:16 +00:00
|
|
|
])->name('customer.profile.store');
|
2019-09-12 08:36:38 +00:00
|
|
|
|
|
|
|
|
//Customer Profile Delete Form Store
|
|
|
|
|
Route::post('profile/destroy', 'Webkul\Customer\Http\Controllers\CustomerController@destroy')->defaults('_config', [
|
|
|
|
|
'redirect' => 'customer.profile.index'
|
|
|
|
|
])->name('customer.profile.destroy');
|
|
|
|
|
|
2018-08-23 13:11:56 +00:00
|
|
|
/* Profile Routes Ends Here */
|
|
|
|
|
|
|
|
|
|
/* Routes for Addresses */
|
2018-10-28 13:23:20 +00:00
|
|
|
//Customer Address Show
|
2018-11-01 13:48:59 +00:00
|
|
|
Route::get('addresses', 'Webkul\Customer\Http\Controllers\AddressController@index')->defaults('_config', [
|
|
|
|
|
'view' => 'shop::customers.account.address.index'
|
2018-08-23 13:11:56 +00:00
|
|
|
])->name('customer.address.index');
|
|
|
|
|
|
2018-10-28 13:23:20 +00:00
|
|
|
//Customer Address Create Form Show
|
2018-11-01 13:48:59 +00:00
|
|
|
Route::get('addresses/create', 'Webkul\Customer\Http\Controllers\AddressController@create')->defaults('_config', [
|
2018-08-23 13:11:56 +00:00
|
|
|
'view' => 'shop::customers.account.address.create'
|
|
|
|
|
])->name('customer.address.create');
|
|
|
|
|
|
2018-10-28 13:23:20 +00:00
|
|
|
//Customer Address Create Form Store
|
2018-11-01 13:48:59 +00:00
|
|
|
Route::post('addresses/create', 'Webkul\Customer\Http\Controllers\AddressController@store')->defaults('_config', [
|
2018-08-24 05:18:53 +00:00
|
|
|
'view' => 'shop::customers.account.address.address',
|
|
|
|
|
'redirect' => 'customer.address.index'
|
2020-06-11 13:04:16 +00:00
|
|
|
])->name('customer.address.store');
|
2018-08-23 13:11:56 +00:00
|
|
|
|
2018-10-28 13:23:20 +00:00
|
|
|
//Customer Address Edit Form Show
|
2018-11-01 13:48:59 +00:00
|
|
|
Route::get('addresses/edit/{id}', 'Webkul\Customer\Http\Controllers\AddressController@edit')->defaults('_config', [
|
2018-08-24 05:18:53 +00:00
|
|
|
'view' => 'shop::customers.account.address.edit'
|
2018-08-23 13:11:56 +00:00
|
|
|
])->name('customer.address.edit');
|
|
|
|
|
|
2018-10-28 13:23:20 +00:00
|
|
|
//Customer Address Edit Form Store
|
2018-11-01 13:48:59 +00:00
|
|
|
Route::put('addresses/edit/{id}', 'Webkul\Customer\Http\Controllers\AddressController@update')->defaults('_config', [
|
2018-09-10 09:31:34 +00:00
|
|
|
'redirect' => 'customer.address.index'
|
2020-06-11 13:04:16 +00:00
|
|
|
])->name('customer.address.update');
|
2018-10-27 11:13:57 +00:00
|
|
|
|
2018-10-28 13:23:20 +00:00
|
|
|
//Customer Address Make Default
|
2018-11-01 13:48:59 +00:00
|
|
|
Route::get('addresses/default/{id}', 'Webkul\Customer\Http\Controllers\AddressController@makeDefault')->name('make.default.address');
|
2018-10-27 11:13:57 +00:00
|
|
|
|
2018-10-28 13:23:20 +00:00
|
|
|
//Customer Address Delete
|
2021-07-06 07:41:59 +00:00
|
|
|
Route::delete('addresses/delete/{id}', 'Webkul\Customer\Http\Controllers\AddressController@destroy')->name('address.delete');
|
2018-08-23 13:11:56 +00:00
|
|
|
|
|
|
|
|
/* Wishlist route */
|
2018-10-28 13:23:20 +00:00
|
|
|
//Customer wishlist(listing)
|
2018-10-05 12:00:48 +00:00
|
|
|
Route::get('wishlist', 'Webkul\Customer\Http\Controllers\WishlistController@index')->defaults('_config', [
|
2018-08-23 13:11:56 +00:00
|
|
|
'view' => 'shop::customers.account.wishlist.wishlist'
|
|
|
|
|
])->name('customer.wishlist.index');
|
|
|
|
|
|
|
|
|
|
/* Orders route */
|
2018-10-28 13:23:20 +00:00
|
|
|
//Customer orders(listing)
|
2019-04-09 08:35:57 +00:00
|
|
|
Route::get('orders', 'Webkul\Shop\Http\Controllers\OrderController@index')->defaults('_config', [
|
2018-10-17 07:21:47 +00:00
|
|
|
'view' => 'shop::customers.account.orders.index'
|
2018-08-23 13:11:56 +00:00
|
|
|
])->name('customer.orders.index');
|
|
|
|
|
|
2019-06-28 14:18:52 +00:00
|
|
|
//Customer downloadable products(listing)
|
|
|
|
|
Route::get('downloadable-products', 'Webkul\Shop\Http\Controllers\DownloadableProductController@index')->defaults('_config', [
|
|
|
|
|
'view' => 'shop::customers.account.downloadable_products.index'
|
|
|
|
|
])->name('customer.downloadable_products.index');
|
|
|
|
|
|
|
|
|
|
//Customer downloadable products(listing)
|
|
|
|
|
Route::get('downloadable-products/download/{id}', 'Webkul\Shop\Http\Controllers\DownloadableProductController@download')->defaults('_config', [
|
|
|
|
|
'view' => 'shop::customers.account.downloadable_products.index'
|
|
|
|
|
])->name('customer.downloadable_products.download');
|
|
|
|
|
|
2018-10-28 13:23:20 +00:00
|
|
|
//Customer orders view summary and status
|
2019-04-09 08:35:57 +00:00
|
|
|
Route::get('orders/view/{id}', 'Webkul\Shop\Http\Controllers\OrderController@view')->defaults('_config', [
|
2018-10-17 07:21:47 +00:00
|
|
|
'view' => 'shop::customers.account.orders.view'
|
|
|
|
|
])->name('customer.orders.view');
|
|
|
|
|
|
2018-11-01 13:48:59 +00:00
|
|
|
//Prints invoice
|
2019-04-09 08:35:57 +00:00
|
|
|
Route::get('orders/print/{id}', 'Webkul\Shop\Http\Controllers\OrderController@print')->defaults('_config', [
|
2018-11-01 13:48:59 +00:00
|
|
|
'view' => 'shop::customers.account.orders.print'
|
|
|
|
|
])->name('customer.orders.print');
|
|
|
|
|
|
2021-07-06 07:59:41 +00:00
|
|
|
Route::post('/orders/cancel/{id}', 'Webkul\Shop\Http\Controllers\OrderController@cancel')->name('customer.orders.cancel');
|
2020-04-27 07:26:09 +00:00
|
|
|
|
2018-08-23 13:11:56 +00:00
|
|
|
/* Reviews route */
|
2018-12-14 12:06:49 +00:00
|
|
|
//Customer reviews
|
2018-08-23 13:11:56 +00:00
|
|
|
Route::get('reviews', 'Webkul\Customer\Http\Controllers\CustomerController@reviews')->defaults('_config', [
|
2018-10-15 08:22:27 +00:00
|
|
|
'view' => 'shop::customers.account.reviews.index'
|
2018-08-23 13:11:56 +00:00
|
|
|
])->name('customer.reviews.index');
|
2018-10-30 06:37:07 +00:00
|
|
|
|
|
|
|
|
//Customer review delete
|
2021-07-06 08:30:06 +00:00
|
|
|
Route::delete('reviews/delete/{id}', 'Webkul\Shop\Http\Controllers\ReviewController@destroy')->defaults('_config', [
|
2018-10-30 06:37:07 +00:00
|
|
|
'redirect' => 'customer.reviews.index'
|
|
|
|
|
])->name('customer.review.delete');
|
2018-12-14 12:06:49 +00:00
|
|
|
|
2019-04-07 01:00:55 +00:00
|
|
|
//Customer all review delete
|
2018-12-14 12:06:49 +00:00
|
|
|
Route::get('reviews/all-delete', 'Webkul\Shop\Http\Controllers\ReviewController@deleteAll')->defaults('_config', [
|
|
|
|
|
'redirect' => 'customer.reviews.index'
|
|
|
|
|
])->name('customer.review.deleteall');
|
2018-08-22 07:27:41 +00:00
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
//customer routes end here
|
2019-04-18 10:20:03 +00:00
|
|
|
|
2019-08-29 14:13:53 +00:00
|
|
|
Route::get('page/{slug}', 'Webkul\CMS\Http\Controllers\Shop\PagePresenterController@presenter')->name('shop.cms.page');
|
2019-08-01 23:00:19 +00:00
|
|
|
|
2020-01-03 12:09:06 +00:00
|
|
|
Route::fallback(\Webkul\Shop\Http\Controllers\ProductsCategoriesProxyController::class . '@index')
|
2019-11-21 16:14:53 +00:00
|
|
|
->defaults('_config', [
|
|
|
|
|
'product_view' => 'shop::products.view',
|
|
|
|
|
'category_view' => 'shop::products.index'
|
|
|
|
|
])
|
|
|
|
|
->name('shop.productOrCategory.index');
|
2018-07-12 07:12:48 +00:00
|
|
|
});
|