Пример #1
0
 public function update()
 {
     if ($this->viewAccess() && JeproshopTools::checkProductToken()) {
         $app = JFactory::getApplication();
         $product_id = $app->input->get('product_id');
         if (isset($product_id) && $product_id > 0) {
             $productModel = new JeproshopProductModelProduct($product_id);
             $productModel->updateProduct();
         }
     }
 }