function getVPEtext($product, $price) { global $vamPrice; require_once DIR_FS_INC . 'vam_get_vpe_name.inc.php'; if (!is_array($product)) { $product = $this->data; } if ($product['products_vpe_status'] == 1 && $product['products_vpe_value'] != 0.0 && $price > 0) { return $vamPrice->Format($price * (1 / $product['products_vpe_value']), true) . TXT_PER . vam_get_vpe_name($product['products_vpe']); } return; }
} if (SHOW_SHIPPING == 'true') { $vamTemplate->assign('PRODUCTS_SHIPPING_LINK', ' ' . SHIPPING_EXCL . '<a href="javascript:newWin=void(window.open(\'' . vam_href_link(FILENAME_POPUP_CONTENT, 'coID=' . SHIPPING_INFOS) . '\', \'popup\', \'toolbar=0, width=640, height=600\'))"> ' . SHIPPING_COSTS . '</a>'); } $discount = 0.0; if ($_SESSION['customers_status']['customers_status_public'] == 1 && $_SESSION['customers_status']['customers_status_discount'] != '0.00') { $discount = $_SESSION['customers_status']['customers_status_discount']; if ($product_info['products_discount_allowed'] < $_SESSION['customers_status']['customers_status_discount']) { $discount = $product_info['products_discount_allowed']; } if ($discount != '0.00') { $vamTemplate->assign('PRODUCTS_DISCOUNT', $discount . '%'); } } if ($product_info['products_vpe_status'] == 1 && $product_info['products_vpe_value'] != 0.0 && $products_price['plain'] > 0) { $vamTemplate->assign('PRODUCTS_VPE', $vamPrice->Format($products_price['plain'] * (1 / $product_info['products_vpe_value']), true) . TXT_PER . vam_get_vpe_name($product_info['products_vpe'])); } $vamTemplate->assign('module_content', $module_content); $mo_images = vam_get_products_mo_images($product_info['products_id']); if ($mo_images != false) { $vamTemplate->assign('PRODUCTS_MO_IMAGES', $mo_images); foreach ($mo_images as $img) { $mo_img[] = array('PRODUCTS_MO_IMAGE' => DIR_WS_CATALOG . DIR_WS_INFO_IMAGES . $img['image_name']); $vamTemplate->assign('mo_img', $mo_img); } } //mo_images EOF // set cache ID if (!CacheCheck()) { $vamTemplate->caching = 0; } else {