Hi @dsharma
When you place an order, first request goes to onepagecontroller's saveOrder method, from where we are calling order repository's create method in sales package , when order successfully created then we fired this event there with order data like -
Event::fire('checkout.order.save.after', $order);
then listing this event using above mentioned way and calling a function to send message of order place.
Thanks
Hi @dsharma
getVisibleCategoryTree() is returning all category in nested form, so you can create a recursive function which check each category whether they have children or not & this function will be run until they don't have children & store result.
Thanks
Hi
@dsharma , if you have already purchased marketplace module then please generate the ticket with order id .
To generate the ticket click on flowing link:
https://bagisto.uvdesk.com/en/
thanks
naresh verma
Hello deepak,
To send email variable to template, follow below steps :
1)Go to Webkul\Customer\src\Notifications\CustomerResetPassword. Replace toMail function with below code
public function toMail($notifiable)
{
if (static::$toMailCallback) {
return call_user_func(static::$toMailCallback, $notifiable, $this->token);
}
return (new MailMessage)
->subject(__('shop::app.mail.forget-password.subject') )
->view('shop::emails.customer.forget-password', [
'user_name' => $notifiable->name,
'email' => $notifiable->email,
'token' => $this->token
]);
}
Go to views\emails\customer\forget-password.blade.php of Shop package, pass email in route as below
<a href="{{ route('customer.reset-password.create', ['token' => $token, 'email' => $email]) }}" style="padding: 10px 20px;background: #0041FF;color: #ffffff;text-transform: uppercase;text-decoration: none; font-size: 16px">
{{ __('shop::app.mail.forget-password.reset-password') }}
</a>
3)Now, in your ResetPasswordController, you can get email in $request
Hi @dsharma
If you are creating your package then you need to merge your menu file with this one & can do it as -
$this->mergeConfigFrom(
dirname(__DIR__) . '/Config/menu.php', 'your file'
);
In your service providers register method & recommend you to take pull from master branch to solve above error.
Thanks