Skip to content

Commit

Permalink
Guest Checkout sucess add register bagisto#4356
Browse files Browse the repository at this point in the history
is necessary convert .scss file to .css -> file shared.scss
  • Loading branch information
domko17 committed Oct 26, 2021
1 parent c9d3c8b commit d459430
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
Expand Up @@ -12,6 +12,7 @@
use Webkul\Customer\Mail\VerificationEmail;
use Webkul\Customer\Repositories\CustomerGroupRepository;
use Webkul\Customer\Repositories\CustomerRepository;
use Webkul\Sales\Models\Order;
use Webkul\Shop\Mail\SubscriptionEmail;

class RegistrationController extends Controller
Expand Down Expand Up @@ -162,6 +163,8 @@ public function create(CustomerRegistrationRequest $request)
session()->flash('info', trans('shop::app.customer.signup-form.success-verify-email-unsent'));
}

Order::where('customer_email', $customer->email)->update(['customer_id' => $customer->id]);

session()->flash('success', trans('shop::app.customer.signup-form.success'));
}

Expand Down
1 change: 1 addition & 0 deletions packages/Webkul/Shop/src/Resources/lang/en/app.php
Expand Up @@ -486,6 +486,7 @@
'empty' => 'Your shopping cart is empty',
'update-cart' => 'Update Cart',
'continue-shopping' => 'Continue Shopping',
'continue-registration' => 'Continue Registration',
'proceed-to-checkout' => 'Proceed To Checkout',
'remove' => 'Remove',
'remove-link' => 'Remove',
Expand Down
Expand Up @@ -699,6 +699,10 @@ a {
text-decoration: none !important;
}
}

&.registration-btn{
margin-left: 10px;
}
}

.dropdown-icon::after {
Expand Down
Expand Up @@ -23,6 +23,11 @@
<a href="{{ route('shop.home.index') }}" class="theme-btn remove-decoration">
{{ __('shop::app.checkout.cart.continue-shopping') }}
</a>
@guest('customer')
<a href="{{ route('customer.register.index') }}" class="theme-btn registration-btn remove-decoration">
{{ __('shop::app.checkout.cart.continue-registration') }}
</a>
@endguest
</div>

{{ view_render_event('bagisto.shop.checkout.continue-shopping.after', ['order' => $order]) }}
Expand Down

0 comments on commit d459430

Please sign in to comment.