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


PHP product::get_short_description方法代码示例

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


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

示例1: product

        $sproduct = new product($products_new['products_id']);
        $prdct[$i] = $products_new;
        if ($new_price = tep_get_products_special_price($products_new['products_id'])) {
            $prdct[$i]['price'] = '<s>' . $currencies->display_price($products_new['products_price'], tep_get_tax_rate($products_new['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($products_new['products_tax_class_id'])) . '</span>';
            //        $products_price = '<s>' . $currencies->display_price($products_new['products_price'], tep_get_tax_rate($products_new['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($products_new['products_tax_class_id'])) . '</span>';
        } else {
            $prdct[$i]['price'] = $currencies->display_price($products_new['products_price'], tep_get_tax_rate($products_new['products_tax_class_id']));
            // $products_price = $currencies->display_price($products_new['products_price'], tep_get_tax_rate($products_new['products_tax_class_id']));
        }
        if ($customer_group->getdisplaytax() == '1') {
            $prdct[$i]['price'] .= '<br>' . TEXT_VAT_INFO . ' ' . $sproduct->get_tax() . ' % ' . $sproduct->get_tax_title();
        }
        if ($customer_group->getdisplayshipment() == '1') {
            $prdct[$i]['price'] .= '<br>' . TEXT_SHIPPING_HANDLING_INFO;
        }
        $prdct[$i]['products_name'] .= '<br>' . $sproduct->get_short_description();
        $prdct[$i]['link'] = tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']);
        $prdct[$i]['image'] = tep_image($sproduct->get_image_path() . $sproduct->get_image(), $products_new['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
        $prdct[$i]['info'] = tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']);
        $prdct[$i]['buyimage'] = tep_image_button('button_in_cart.gif', IMAGE_BUTTON_IN_CART);
        $prdct[$i]['date'] = tep_date_long($products_new['products_date_added']);
        $prdct[$i]['buy'] = tep_href_link(FILENAME_PRODUCTS_NEW, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $products_new['products_id']);
        $i++;
    }
    $xoopsTpl->assign("products", $prdct);
}
if ($products_new_split->number_of_rows > 0 && (PREV_NEXT_BAR_LOCATION == '2' || PREV_NEXT_BAR_LOCATION == '3')) {
    $xoopsTpl->assign("psplit2", 1);
    $xoopsTpl->assign("new_split", $products_new_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS_NEW));
    $xoopsTpl->assign("new_split_link", $products_new_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))));
}
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:31,代码来源:products_new.php

示例2: array

 } else {
     $list_box_contents[] = array('params' => 'class="productListing-odd"');
 }
 $cur_row = sizeof($list_box_contents) - 1;
 for ($col = 0, $n = sizeof($column_list); $col < $n; $col++) {
     $lc_align = '';
     switch ($column_list[$col]) {
         case 'PRODUCT_LIST_MODEL':
             $lc_align = 'left';
             $lc_text = '&nbsp;' . $listing['products_model'] . '&nbsp;';
             break;
         case 'PRODUCT_LIST_NAME':
             $lc_align = 'left';
             if (isset($HTTP_GET_VARS['manufacturers_id'])) {
                 $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>';
                 $lc_text .= '<br>' . $sproduct->get_short_description();
             } else {
                 $lc_text = '&nbsp;<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>&nbsp;';
                 $lc_text .= '<br>' . $sproduct->get_short_description();
             }
             break;
         case 'PRODUCT_LIST_MANUFACTURER':
             $lc_align = '';
             $lc_text = '&nbsp;<a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing['manufacturers_id']) . '">' . $listing['manufacturers_name'] . '</a>&nbsp;';
             break;
         case 'PRODUCT_LIST_PRICE':
             $lc_align = 'right';
             $lc_end = '';
             if (tep_not_null($listing['specials_new_products_price'])) {
                 $lc_text = '&nbsp;<s>' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s>&nbsp;&nbsp;<span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span>';
             } else {
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:31,代码来源:product_listing.php


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