function show_reviews($product_id) { echo ps_reviews::product_reviews($product_id); }
} $product_availability_data = $ps_product->get_availability_data($product_id); /** Ask seller a question **/ $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>"; }