• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

  • Register
  • Login
  • Search
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups

New Email template view is not reading the php code

Bug Report
2
2
908
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    mohammad hamayel last edited by 5 Jun 2022, 10:16

    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

    1 Reply Last reply Reply Quote 0
    • sanjay-webkul
      sanjay-webkul last edited by 10 Jun 2022, 12:07

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

      1 Reply Last reply Reply Quote 0
      1 out of 2
      • First post
        1/2
        Last post