VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: rosoptovik on June 19, 2013, 15:20:39 PM

Title: askquestion
Post by: rosoptovik on June 19, 2013, 15:20:39 PM
Hello.
in shops in which many thousands of products are sometimes the goods with the same name, and when a client sends a question (a question about this product) then the admin receive a letter with a question to which only the name of the product and it is impossible to understand exactly what kind of product are asked (many goods and some have the same name).
Please Edit the files:
/ components / com_virtuemart / views / askquestion / tmpl / mail_html_question.php
changes:
<table class="html-email" cellspacing="0" cellpadding="0" border="0" width="100%">  <tr >
            <th width="100%">
                <?php echo JText::_('COM_VIRTUEMART_QUESTION_ABOUT').' '.$this->product->product_name ?>
            </th>

<th width="100%">
                <?php echo JText::_('COM_VIRTUEMART_PRODUCT_ID').' '.$this->product->virtuemart_product_id ?>
            </th>
<th width="100%">
                <?php echo JText::_('COM_VIRTUEMART_PRODUCT_SKU').' '.$this->product->product_sku ?>

            </th>

             </tr>



and in the file:
/ components / com_virtuemart / views / askquestion / tmpl / mail_raw_question.php
changes:
echo JText::sprintf('COM_VIRTUEMART_WELCOME_VENDOR', $this->vendor->vendor_store_name) . "\n" . "\n";
echo JText::_('COM_VIRTUEMART_QUESTION_ABOUT') . ' '. $this->product->product_name."\n" . "\n";
echo JText::_('COM_VIRTUEMART_PRODUCT_SKU') . ' '. $this->product->product_sku."\n" . "\n";
echo JText::_('COM_VIRTUEMART_PRODUCT_ID') . ' '. $this->product->product_id."\n" . "\n";

echo JText::sprintf('COM_VIRTUEMART_QUESTION_MAIL_FROM', $this->user->name, $this->user->email) . "\n";
Title: Re: askquestion
Post by: alatak on June 19, 2013, 17:19:24 PM
Hello

yes good idea.
I have added the product SKU to the product name and a link to the product name.
Title: Re: askquestion
Post by: AH on June 19, 2013, 17:46:45 PM
will this be in 2.0.21f

?
Title: Re: askquestion
Post by: alatak on June 19, 2013, 17:50:51 PM
Hello
Yes in the next test version:  2.0.21f
I have not added the product ID. Only the SKU, and the product link.