function show_reviewform($product_id) { echo ps_reviews::reviewform($product_id); }
$ask_seller_href = $sess->url($_SERVER['PHP_SELF'] . '?page=shop.ask&flypage=' . @$_REQUEST['flypage'] . "&product_id={$product_id}&category_id={$category_id}"); $ask_seller_text = $VM_LANG->_('VM_PRODUCT_ENQUIRY_LBL'); $ask_seller = '<a class="button" href="' . $ask_seller_href . '">' . $ask_seller_text . '</a>'; /* SHOW RATING */ $product_rating = ""; if (PSHOP_ALLOW_REVIEWS == '1') { $product_rating = ps_reviews::allvotes($product_id); } $product_reviews = $product_reviewform = ""; /* LIST ALL REVIEWS **/ if (PSHOP_ALLOW_REVIEWS == '1') { /*** Show all reviews available ***/ $product_reviews = ps_reviews::product_reviews($product_id); /*** Show a form for writing a review ***/ if ($auth['user_id'] > 0) { $product_reviewform = ps_reviews::reviewform($product_id); } } /* LINK TO VENDOR-INFO POP-UP **/ $vend_id = $ps_product->get_vendor_id($product_id); $vend_name = $ps_product->get_vendorname($product_id); $link = "{$mosConfig_live_site}/index2.php?page=shop.infopage&vendor_id={$vend_id}&output=lite&option=com_virtuemart&Itemid=" . $Itemid; $text = $VM_LANG->_('PHPSHOP_VENDOR_FORM_INFO_LBL'); $vendor_link = vmPopupLink($link, $text); // Avoid JavaScript on PDF Output if (@$_REQUEST['output'] == "pdf") { $vendor_link = "<a href=\"{$link}\" target=\"_blank\" title=\"{$text}\">{$text}</a>"; } if ($product_parent_id != 0 && !$ps_product_type->product_in_product_type($product_id)) { $product_type = $ps_product_type->list_product_type($product_parent_id); } else {