Virtuemart "ask a question problem"

GK User
Tue Apr 02, 2013 12:55 pm
Hi, i have a question for the integrated virtuemart sistem

when somebody "ask a question" for a product i recieve a mail that notify me that somebody asked more informatio for a product but inside this mail i have not the product code or link to the product
In this way is no possible to know exactly for what article the question has been made. How can i resolve this porbelm?
I recieve just that without product code or link to for the product

Salve venditore Casa amica Città di Castello
Domanda su Vino bianco
E' stata fatta una domanda da Massimiliano ([email protected])

tnx
User avatar
Gold Boarder

GK User
Tue Apr 02, 2013 1:31 pm
ok i found the solution and i write it here in case sombody has the same prblem

we need add a code in /components/com_virtuemart/views/askquestion/tmpl/mail_html_question.php)

In the code after the table row tag of the Product name you might write something like this

add this:

<tr>
<p>Product SKU: <?php echo$this->product->product_sku ?>
</p>
<p>Product short description: <?php echo $this->product->product_s_desc ?>
</p>
<p>Link: <a href="<?php echo juri::root()?>/index.php?tmpl=component&option=com_virtuemart&view=productdetails&virtuemart_product_id=<?php echo $this->product->virtuemart_product_id ?>" title="<?php echo$this->product->product_name ?>"><?php echo$this->product->product_name ?></a>
</p>
</tr>
User avatar
Gold Boarder

teitbite
Wed Apr 03, 2013 9:06 pm
Hi

Looks to be a smart solution. I wouls just add a JRoute function to this so it will be working for SEF lins also. You should report this to VM developers. This is a big issue.
User avatar
Moderator


cron