Author Topic: MPN in ask a question confirmation email  (Read 434 times)

servlet

  • Jr. Member
  • **
  • Posts: 348
  • Business optimization
    • Фототапети
  • VirtueMart Version: 3.2.2
MPN in ask a question confirmation email
« 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
I am using: Joomla 3.7.2 VM 3.2.2
Он-лайн магазин за фототапети http://mishelfoster.com

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4046
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: MPN in ask a question confirmation email
« Reply #1 on: April 21, 2019, 22:50:17 pm »
What is your current code to display it in ask question email?

StefanSTS

  • Global Moderator
  • Full Member
  • *
  • Posts: 516
  • VirtueMart Version: VM 4.2 on Joomla 4.5
Re: MPN in ask a question confirmation email
« Reply #2 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
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.