2

Layout handle in email_template.phtml

{{layout handle="email_product_list" order=$order product=$product check=$check area="frontend"}}

I need to know how can i get the value of $check variable in phtml file.

1 Answer 1

5

I didn't test yet but that is same as magento1. try to get it by.

$this->getCheck(); 

or

$block->getCheck();
6
  • 1
    ok let me check @Quaisar. Sep 23, 2016 at 5:39
  • King__Satti , good job..... Sep 23, 2016 at 7:02
  • 1
    @BabyinMagento thanks for appreciating my work. you words mean lot to me Sep 23, 2016 at 7:24
  • Sorry @QaisarSatti Sep 23, 2016 at 9:03
  • @QaisarSatti, I am getting NULL when iuse $this->getCheck(); in my phtml file. Please help. Apr 25, 2019 at 8:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.