Recent Topics

New Email template view is not reading the php code



  • I created a new email view and the whole follow is going very well but the view doesn't read the data from php code

    here is the email received

    @component('shop::emails.layouts.master')
    @if (core()->getConfigData('general.design.admin_logo.logo_image')) @else @endif
    {{ __('shop::app.mail.order.attachment.heading') }} {{ __('shop::app.mail.order.attachment.test') }}
    {{ __('shop::app.mail.order.attachment.dear', ['customer_name' => config('mail.from.name')]) }},
    {!! __('shop::app.mail.order.attachment.greeting', [ 'order_id' => '#' . $order->increment_id . '', 'created_at' => $order->created_at ]) !!}
    {{ __('shop::app.mail.order.attachment.summary') }}
    {{ __('shop::app.mail.order.attachment.shipping-address') }}
    {{ $order->shipping_address->company_name ?? '' }}
    {{ $order->shipping_address->name }}
    {{ $order->shipping_address->address1 }}, {{ $order->shipping_address->state }}
    {{ core()->country_name($order->shipping_address->country) }} {{ $order->shipping_address->postcode }}

    {{ __('shop::app.mail.order.attachment.contact') }} : {{ $order->shipping_address->phone }}
    {{ __('shop::app.mail.order.attachment.shipping') }}
    {{ $order->shipping_title }}
    {{ __('shop::app.mail.order.attachment.billing-address') }}
    {{ $order->billing_address->company_name ?? '' }}
    {{ $order->billing_address->name }}
    {{ $order->billing_address->address1 }}, {{ $order->billing_address->state }}
    {{ core()->country_name($order->billing_address->country) }} {{ $order->billing_address->postcode }}

    {{ __('shop::app.mail.order.attachment.contact') }} : {{ $order->billing_address->phone }}
    {{ __('shop::app.mail.order.attachment.payment') }}
    {{ core()->getConfigData('sales.paymentmethods.' . $order->payment->method . '.title') }}

    please your help

    regards



  • Hi there,
    The view file which you are creating should be a blade file


Log in to reply