News:

Looking for documentation? Take a look on our wiki

Main Menu

askquestion

Started by rosoptovik, June 19, 2013, 15:20:39 PM

Previous topic - Next topic

rosoptovik

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";

alatak

Hello

yes good idea.
I have added the product SKU to the product name and a link to the product name.

AH

will this be in 2.0.21f

?
Regards
A

Joomla 4.4.5
php 8.1

alatak

Hello
Yes in the next test version:  2.0.21f
I have not added the product ID. Only the SKU, and the product link.