当前位置: 首页>>代码示例>>PHP>>正文


PHP product::getVPEtext方法代码示例

本文整理汇总了PHP中product::getVPEtext方法的典型用法代码示例。如果您正苦于以下问题:PHP product::getVPEtext方法的具体用法?PHP product::getVPEtext怎么用?PHP product::getVPEtext使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在product的用法示例。


在下文中一共展示了product::getVPEtext方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: round

                if (OL_COMMERCE) {
                    $olPrice = round($price, CURRENCY_DECIMAL_PLACES);
                    include_once DIR_FS_INC . 'olc_get_vpe_and_baseprice_info.inc.php';
                    $vpe = array();
                    olc_get_vpe_and_baseprice_info($vpe, $best_sellers, $olPrice);
                    $vpe = $vpe['PRODUCTS_VPE'];
                    include DIR_FS_INC . 'olc_get_price_disclaimer.inc.php';
                    $tax_info = $price_disclaimer;
                    if (CUSTOMER_SHOW_PRICE_TAX) {
                        $price = olc_add_tax($price, $tax_class);
                    }
                    $price = olc_format_price($price, true, true);
                } else {
                    if (!is_object($product)) {
                        $product = new product();
                    }
                    $vpe = $product->getVPEtext($best_sellers, $price);
                    $price = $xtPrice->xtcFormat($price, true, $tax_class, true, false);
                    $tax_info = $main->getTaxInfo(olc_get_tax_rate($tax_class));
                    $picture_disclaimer = EMPTY_STRING;
                }
            }
            $box_content[] = array('ID' => olc_row_number_format($rows), 'NAME' => $best_sellers['products_name'], 'PRICE' => $price, 'VPE' => $vpe, 'TAX_INFO' => $tax_info, 'SHORT_DESCRIPTION' => $products_short_description, 'PICTURE_DISCLAIMER' => $picture_disclaimer, 'IMAGE' => $image, 'LINK' => olc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $best_sellers['products_id']));
        }
    }
    $box_smarty->assign('SHOW_MARQUEE', $show_marquee);
    $box_smarty->assign('entries_count', sizeof($box_content));
    $box_smarty->assign('box_content', $box_content);
    $box_best_sellers = $box_smarty->fetch(CURRENT_TEMPLATE_BOXES . 'box_bestsellers' . HTML_EXT, $cacheid);
    $smarty->assign('box_BESTSELLERS', $box_best_sellers);
}
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:best_sellers.php

示例2: round

         $olPrice = round($random_products_price, CURRENCY_DECIMAL_PLACES);
         include_once DIR_FS_INC . 'olc_get_vpe_and_baseprice_info.inc.php';
         $vpe = array();
         olc_get_vpe_and_baseprice_info($vpe, $random_product, $olPrice);
         $vpe = $vpe['PRODUCTS_VPE'];
         include DIR_FS_INC . 'olc_get_price_disclaimer.inc.php';
         $tax_info = $price_disclaimer;
         if (CUSTOMER_SHOW_PRICE_TAX) {
             $random_products_price = olc_add_tax($random_products_price, $tax_class);
         }
     } else {
         $random_products_price_real = $random_products_price;
         if (!is_object($product)) {
             $product = new product();
         }
         $vpe = $product->getVPEtext($random_product, $random_products_price);
         $random_products_price = $xtPrice->xtcFormat($random_products_price, true, $tax_class, true, false);
         $tax_info = $main->getTaxInfo(olc_get_tax_rate($tax_class));
         $picture_disclaimer = EMPTY_STRING;
     }
 }
 $categories_id = $random_product['categories_id'];
 $products_name = $random_product['products_name'];
 if ($products_name) {
     $category_path = olc_get_path($categories_id);
     $categories_name = $random_product['categories_name'];
     $image = $random_product['products_image'];
     if ($image) {
         $image = olc_image(DIR_WS_THUMBNAIL_IMAGES . $image, $products_name);
     }
     $products_id_par = 'products_id=' . $products_id;
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:last_viewed.php


注:本文中的product::getVPEtext方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。