Exemple #1
0
 private function getProduct($values, $text)
 {
     $html = '';
     $product_id = $values[0];
     $product_enabled = J2StorePrices::getItemEnabled($product_id);
     if (!$product_enabled) {
         return $html;
     }
     $this->_updateCurrency();
     if (in_array('price', $values)) {
         $prices = J2StorePrices::getPrice($product_id);
         $html .= '<span class="j2store-product-price">';
         $html .= J2StorePrices::number($prices->product_price);
         $html .= '</span>';
     }
     return $html;
 }