У продавщицы магазина продавольственного,
Жопа, метр на метр!
Если б был у меня с километр,
Я б доставил ей удовольствие!

Ну не маленький, сам разгребешь надеюсь, если ошибки будут

<?php
function product_snapshot( $product_sku, $show_price=true, $show_addtocart=true ) {
global $sess, $VM_LANG, $mm_action_url;
$db = new ps_DB;
require_once(CLASSPATH.'ps_product_category.php');
$ps_product_category = new ps_product_category;
$q = "SELECT product_id, product_name, product_parent_id, product_thumb_image FROM #__{vm}_product WHERE product_sku='$product_sku'";
$db->query( $q );
$html = "";
if ($db->next_record()) {
$cid = $ps_product_category->get_cid( $db->f("product_id" ) );
$url = "?page=shop.product_details&category_id=$cid&flypage=".$this->get_flypage($db->f("product_id"));
if ($db->f("product_parent_id")) {
$url = "?page=shop.product_details&flypage=".$this->get_flypage($db->f("product_parent_id"));
$url .= "&product_id=" . $db->f("product_parent_id");
} else {
$url = "?page=shop.product_details&flypage=".$this->get_flypage($db->f("product_id"));
$url .= "&product_id=" . $db->f("product_id");
}
$html = '
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
<tr>
<td width="30%">
<p align="center">
<span lang="ru">
<a title="'.$db->f("product_name").'" href="'.$sess->url($mm_action_url.'index.php'.$url).'">
'.$this->image_tag($db->f("product_thumb_image"), 'alt="'.$db->f("product_name").'"').'
</a>
</span>
</p>
</td>
<td width="50%">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
<tr>
<td width="100%">
<b>
<u>
<span lang="ru">
<a title="'.$db->f("product_name").'" href="'.$sess->url($mm_action_url.'index.php'.$url).'">
'.$db->f("product_sku").' - '.$db->f("product_name").'
</a>
</span>
</u>
</b>
</td>
</tr>
<tr>
<td width="100%">
<p align="right"><span lang="ru"><font style="font-size: 16pt"><b>'.$this->show_price( $db->f("product_id"), true ).'</b></font></span></td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%">
<p align="right"><b><span lang="ru"><a title="'.$VM_LANG->_PHPSHOP_CART_ADD_TO.'": "'.$db->f("product_name").'" href="'. $sess->url($mm_action_url . $url).'">'.$VM_LANG->_PHPSHOP_CART_ADD_TO.'</a></span></b></td>
</tr>
</table>
</td>
</tr>
</table>
';
}
return $html;
}
?>