Whenever i try to run npm run production and npm run watch in pacakages/webkul/admin, packages/webkul/ui and packages/webkul/shop, The following error occurs.How to solve it
Undefined variable $__env (View: /var/www/html/public) (View: /var/www/html/resources/themes/velocity/views/home/index.blade.php)
Email notification for new order and cancel order failing.
chemisax last edited by
Bagisto version: Latest at time of writing this report.
Hello, some email notifications are failing with the following error:
TypeError: Argument 1 passed to Webkul/Tax/Helpers/Tax::getTaxRatesWithAmount() must implement interface Webkul/Checkout/Contracts/Cart, instance of Webkul/Sales/Models/Order given on line 1
I've debugged the problem and found that the email template is calling
Webkul\Tax\Helpers\Tax::getTaxRatesWithAmount, which expects receiving an instance of
Cartbut the template is sending an instance of
The templates affected are:
Example template: https://github.com/bagisto/bagisto/blob/master/packages/Webkul/Shop/src/Resources/views/emails/sales/new-order.blade.php#L159
Vaishali Agarwal last edited by
Please mention the framework version along with steps to reproduce, as we are not getting this type of issue.
Emails are working fine.