VirtueMart Forum

VirtueMart 2 + 3 => Templating & Layouts => Topic started by: servlet on April 19, 2019, 15:19:23 pm

Title: MPN in ask a question confirmation email
Post by: servlet on April 19, 2019, 15:19:23 pm
Hello
How to display MPN in ask a question confirmation email

In order confirmation email I display it with
            <?php
               if (!empty($item->product_mpn)) {
                  echo 'MPN: '.$item->product_mpn;
               }
            ?>
But it doesnt work in ask a question confirmation email
Title: Re: MPN in ask a question confirmation email
Post by: Studio 42 on April 21, 2019, 22:50:17 pm
What is your current code to display it in ask question email?
Title: Re: MPN in ask a question confirmation email
Post by: StefanSTS on April 22, 2019, 11:15:33 am
Hi,

replace your

$item->product_mpn (in askquestion view's mail_html_question.php)
with
$this->product->product_mpn

Stefan