Esempio n. 1
0
 public static function execute(ApplicationAbstract $application)
 {
     $OSCOM_Service = Registry::get('Service');
     $OSCOM_Breadcrumb = Registry::get('Breadcrumb');
     $review_check = false;
     if (is_numeric($_GET['View'])) {
         if (Reviews::exists($_GET['View'])) {
             $review_check = true;
             Registry::set('Product', new Product(Reviews::getProductID($_GET['View'])));
             $OSCOM_Product = Registry::get('Product');
             $application->setPageTitle($OSCOM_Product->getTitle());
             $application->setPageContent('reviews_view.php');
             if ($OSCOM_Service->isStarted('Breadcrumb')) {
                 $OSCOM_Breadcrumb->add($OSCOM_Product->getTitle(), OSCOM::getLink(null, null, 'Reviews&View=' . $_GET['View'] . '&' . $OSCOM_Product->getKeyword()));
             }
         }
     }
     if ($review_check === false) {
         $application->setPageContent('reviews_not_found.php');
     }
 }
Esempio n. 2
0
  refreshVariants();
</script>

<?php 
}
?>

<div>
  <?php 
echo $OSCOM_Product->getDescription();
?>
</div>

<?php 
if ($OSCOM_Service->isStarted('Reviews') && Reviews::exists(osc_get_product_id($OSCOM_Product->getID()), true)) {
    ?>

<p><?php 
    echo OSCOM::getDef('number_of_product_reviews') . ' ' . Reviews::getTotal(osc_get_product_id($OSCOM_Product->getID()));
    ?>
</p>

<?php 
}
if ($OSCOM_Product->hasURL()) {
    ?>

<p><?php 
    echo sprintf(OSCOM::getDef('go_to_external_products_webpage'), OSCOM::getLink(null, 'Redirect', 'action=url&goto=' . urlencode($OSCOM_Product->getURL()), 'NONSSL', null, false));
    ?>
Esempio n. 3
0
  refreshVariants();
</script>

<?php 
}
?>

<div>
  <?php 
echo $OSCOM_Product->getDescription();
?>
</div>

<?php 
if ($OSCOM_Service->isStarted('Reviews') && Reviews::exists(Products::getProductID($OSCOM_Product->getID()), true)) {
    ?>

<p><?php 
    echo OSCOM::getDef('number_of_product_reviews') . ' ' . Reviews::getTotal(Products::getProductID($OSCOM_Product->getID()));
    ?>
</p>

<?php 
}
if ($OSCOM_Product->hasURL()) {
    ?>

<p><?php 
    echo sprintf(OSCOM::getDef('go_to_external_products_webpage'), OSCOM::getLink(null, 'Redirect', 'action=url&goto=' . urlencode($OSCOM_Product->getURL()), 'NONSSL', null, false));
    ?>