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


PHP zen_has_product_attributes_values函数代码示例

本文整理汇总了PHP中zen_has_product_attributes_values函数的典型用法代码示例。如果您正苦于以下问题:PHP zen_has_product_attributes_values函数的具体用法?PHP zen_has_product_attributes_values怎么用?PHP zen_has_product_attributes_values使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: zen_get_products_display_price

<h1 id="productName" class="docProduct"><?php 
echo $products_name;
?>
</h1>
<!--eof Product Name-->

<!--bof Product Price block -->
<h2 id="productPrices" class="docProduct">
<?php 
// base price
if ($show_onetime_charges_description == 'true') {
    $one_time = '<span >' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br />';
} else {
    $one_time = '';
}
echo $one_time . ((zen_has_product_attributes_values((int) $_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int) $_GET['products_id']);
?>
</h2>
<!--eof Product Price block -->

<!--bof free ship icon  -->
<?php 
if (zen_get_product_is_always_free_shipping($products_id_current) && $flag_show_product_info_free_shipping) {
    ?>
<div id="freeShippingIcon"><?php 
    echo TEXT_PRODUCT_FREE_SHIPPING_ICON;
    ?>
</div>
<?php 
}
?>
开发者ID:zenmagick,项目名称:zencart,代码行数:31,代码来源:tpl_document_product_info_display.php

示例2: zen_image

            echo $display_button;
        }
        ?>
	</div>
		<!-- product data -->
		<h3><?php 
        echo $products->fields['products_name'];
        ?>
</h3>
		<?php 
        echo zen_image(DIR_WS_IMAGES . $products->fields['products_image'], $products->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'class="productlist"');
        ?>

		<ul>			
		<li class="price"><?php 
        echo ((zen_has_product_attributes_values((int) $products->fields['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . $products_price;
        ?>
</li>

		<?php 
        if (SHOW_PRODUCT_INFO_DATE_AVAILABLE && $products->fields['products_date_available'] > date('Y-m-d H:i:s')) {
            ?>
		<li class="notabene"><?php 
            echo sprintf(UN_TEXT_DATE_AVAILABLE, zen_date_short($products->fields['products_date_available']));
            ?>
</li>
		<?php 
        }
        ?>
		
		<li><?php 
开发者ID:quangn92,项目名称:visualyou,代码行数:31,代码来源:tpl_wishlist_find_default.php

示例3: price

 public static function price()
 {
     global $show_onetime_charges_description, $flag_show_product_info_starting_at;
     global $_GET;
     $one_time_text = '';
     if ($show_onetime_charges_description == 'true') {
         $one_time_text = ' <div> Your Price: ' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</div>';
     }
     $base_price_text = '';
     if (zen_has_product_attributes_values((int) $_GET['products_id']) && $flag_show_product_info_starting_at == 1) {
         $base_price_text = TEXT_BASE_PRICE;
     }
     $display_price = zen_get_products_display_price((int) $_GET['products_id']);
     return '<h4 id="product-price" class="text-center">' . $one_time_text . $base_price_text . $display_price . '</h4>';
 }
开发者ID:Southern-Exposure-Seed-Exchange,项目名称:Zencart-Bootstrap-Theme,代码行数:15,代码来源:tpl_product_info_display.php

示例4: zen_get_products_display_price

if (zen_not_null($products_image)) {
    require DIR_WS_MODULES . 'pages/' . $current_page_base . '/main_template_vars_images.php';
} else {
    echo '&nbsp;';
}
?>
    </td>
    <td align="center" class="pageHeading">
<?php 
// base price
if ($show_onetime_charges_description == 'true') {
    $one_time = '<span class="smallText">' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br />';
} else {
    $one_time = '';
}
echo $one_time . ((zen_has_product_attributes_values((int) $_GET['products_id']) and SHOW_PRODUCT_INFO_STARTING_AT == '1') ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int) $_GET['products_id']);
?>
    </td>
  </tr>

  <tr>
    <td class="main" align="center" valign="top">
      <?php 
echo (SHOW_PRODUCT_INFO_MODEL == '1' and $products_model != '') ? TEXT_PRODUCT_MODEL . $products_model : '&nbsp;';
?>
    </td>
  </tr>
  <tr>
    <td class="main" align="center"><?php 
echo (SHOW_PRODUCT_INFO_WEIGHT == '1' and $products_weight != 0) ? TEXT_PRODUCT_WEIGHT . $products_weight . TEXT_PRODUCT_WEIGHT_UNIT : '&nbsp;';
?>
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:31,代码来源:tpl_product_info_display.php

示例5: zen_draw_hidden_field

if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
    // do nothing
} else {
    ?>
            <?php 
    $display_qty = ($flag_show_product_info_in_cart_qty == 1 and $_SESSION['cart']->in_cart($_GET['products_id'])) ? '<dt>' . PRODUCTS_ORDER_QTY_TEXT_IN_CART . '</dt><dd>' . $_SESSION['cart']->get_quantity($_GET['products_id']) . '</dd>' : '';
    if ($products_qty_box_status == 0 or $products_quantity_order_max == 1) {
        // hide the quantity box and default to 1
        $the_button = '<input type="hidden" name="cart_quantity" value="1" />' . zen_draw_hidden_field('products_id', (int) $_GET['products_id']);
    } else {
        // show the quantity box
        $the_button = '';
        $the_button .= '<dt>' . PRODUCTS_ORDER_QTY . '</dt>' . "\n";
        $the_button .= '<dd><input type="text" name="cart_quantity" value="' . zen_get_buy_now_qty($_GET['products_id']) . '" maxlength="6" size="4" />' . PRODUCTS_ORDER_QTY_TEXT . '<br />' . zen_get_products_quantity_min_units_display((int) $_GET['products_id']) . '' . zen_draw_hidden_field('products_id', (int) $_GET['products_id']) . '</dd>' . "\n" . '</dl>' . "\n";
    }
    $in_cart_button_html = '<div class="cartAdd">' . '<div class="price">' . ((zen_has_product_attributes_values((int) $_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int) $_GET['products_id']) . '</div>' . "\n" . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT, 'class="imgover"') . '</div>';
    $the_button .= $in_cart_button_html;
    $display_button = ($advanced_stock_button = zen_addOnModules_call_function('advanced_stock', 'advanced_stock_get_buy_now_button', array($_GET['products_id'], $the_button))) != '' ? $advanced_stock_button : zen_get_buy_now_button($_GET['products_id'], $the_button);
    ?>

<?php 
    if ($display_qty != '' or $display_button != '') {
        echo $display_qty;
        echo $display_button;
    }
    // display qty and button
}
// CUSTOMERS_APPROVAL == 3
?>
<!--eof Add to Cart Box-->
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:30,代码来源:tpl_product_info_display.php

示例6: zen_get_tax_rate

        <ul class="pad_10px">
          <li>item#<?php 
echo $products_model;
?>
</li>
          <div class="hr_d"></div>
        <!--bof Product Price block -->
        <li class="big margin_t"> Retail price: <del>
          <?php 
// base price
if ($show_onetime_charges_description == 'true') {
    $one_time = '<span >' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br />';
} else {
    $one_time = '';
}
echo $one_time . ((zen_has_product_attributes_values((int) $_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . $currencies->display_price(zen_get_products_retail_price((int) $_GET['products_id']), zen_get_tax_rate($product_info->fields['products_tax_class_id']));
?>
          </del> </li>
        <h3 class="relative">Price:<div id="t_p"><ul><li><a class="one u b_" href="javascript:void(0)"><?php 
echo $currencies->display_symbol_left($_SESSION['currency']);
?>
<!--[if IE 7]><!--></a><!--<![endif]--><!--[if lte IE 6]><table><tr><td><![endif]--><div>
        <?php 
reset($currencies->currencies);
while (list($key, $value) = each($currencies->currencies)) {
    if ($key != $_SESSION['currency']) {
        ?>
          <a class="b_ big_" href="<?php 
        echo $_SERVER['REQUEST_URI'];
        ?>
?currency=<?php 
开发者ID:happyxlq,项目名称:lt_svn,代码行数:31,代码来源:tpl_print_page_display.php


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