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


PHP zen_get_show_product_switch函数代码示例

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


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

示例1: switch

switch ($pInfo->metatags_price_status) {
    case '0':
        $is_metatags_price_status = false;
        $not_metatags_price_status = true;
        break;
    case '1':
        $is_metatags_price_status = true;
        $not_metatags_price_status = false;
        break;
    default:
        $is_metatags_price_status = true;
        $not_metatags_price_status = false;
}
// metatags_title_tagline_status shows TITLE and TAGLINE in metatags_header.php
if (empty($pInfo->metatags_keywords) and empty($pInfo->metatags_description)) {
    $pInfo->metatags_title_tagline_status = zen_get_show_product_switch($_GET['pID'], 'metatags_title_tagline_status');
}
switch ($pInfo->metatags_title_tagline_status) {
    case '0':
        $is_metatags_title_tagline_status = false;
        $not_metatags_title_tagline_status = true;
        break;
    case '1':
        $is_metatags_title_tagline_status = true;
        $not_metatags_title_tagline_status = false;
        break;
    default:
        $is_metatags_title_tagline_status = true;
        $not_metatags_title_tagline_status = false;
}
?>
开发者ID:andychang88,项目名称:daddy-store.com,代码行数:31,代码来源:collect_info_metatags.php

示例2: sort

    }
    $dir->close();
}
if (sizeof($directory_array)) {
    sort($directory_array);
}
for ($i = 0, $n = sizeof($directory_array); $i < $n; $i++) {
    if (file_exists($extras_dir . $directory_array[$i])) {
        include $extras_dir . $directory_array[$i];
    }
}
// build show flags from product type layout settings
//  $flag_show_product_info_starting_at = zen_get_show_product_switch($_GET['products_id'], 'starting_at');
//  $flag_show_product_info_model = zen_get_show_product_switch($_GET['products_id'], 'model');
//  $flag_show_product_info_weight = zen_get_show_product_switch($_GET['products_id'], 'weight');
//  $flag_show_product_info_quantity = zen_get_show_product_switch($_GET['products_id'], 'quantity');
//  $flag_show_product_info_manufacturer = zen_get_show_product_switch($_GET['products_id'], 'manufacturer');
//  $flag_show_product_info_in_cart_qty = zen_get_show_product_switch($_GET['products_id'], 'in_cart_qty');
$flag_show_product_info_tell_a_friend = zen_get_show_product_switch($_GET['products_id'], 'tell_a_friend');
$flag_show_product_info_reviews = zen_get_show_product_switch($_GET['products_id'], 'reviews');
$flag_show_product_info_reviews_count = zen_get_show_product_switch($_GET['products_id'], 'reviews_count');
$flag_show_product_info_date_available = zen_get_show_product_switch($_GET['products_id'], 'date_available');
$flag_show_product_info_date_added = zen_get_show_product_switch($_GET['products_id'], 'date_added');
$flag_show_product_info_url = zen_get_show_product_switch($_GET['products_id'], 'url');
$flag_show_product_info_additional_images = zen_get_show_product_switch($_GET['products_id'], 'additional_images');
require DIR_WS_MODULES . zen_get_module_directory(FILENAME_PRODUCTS_QUANTITY_DISCOUNTS);
$zco_notifier->notify('NOTIFY_MAIN_TEMPLATE_VARS_EXTRA_DOCUMENT_GENERAL_INFO');
require $template->get_template_dir($tpl_page_body, DIR_WS_TEMPLATE, $current_page_base, 'templates') . $tpl_page_body;
//require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_ALSO_PURCHASED_PRODUCTS));
// This should be last line of the script:
$zco_notifier->notify('NOTIFY_MAIN_TEMPLATE_VARS_END_DOCUMENT_GENERAL_INFO');
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:31,代码来源:main_template_vars.php

示例3: zen_get_show_product_switch

            // set defaults for adding attributes
            $on_product_attribute_is_free = zen_get_show_product_switch($products_filter, 'ATTRIBUTE_IS_FREE', 'DEFAULT_', '') == 1 ? true : false;
            $off_product_attribute_is_free = $on_product_attribute_is_free == 1 ? false : true;
            $on_attributes_display_only = zen_get_show_product_switch($products_filter, 'ATTRIBUTES_DISPLAY_ONLY', 'DEFAULT_', '') == 1 ? true : false;
            $off_attributes_display_only = $on_attributes_display_only == 1 ? false : true;
            $on_attributes_default = zen_get_show_product_switch($products_filter, 'ATTRIBUTES_DEFAULT', 'DEFAULT_', '') == 1 ? true : false;
            $off_attributes_default = $on_attributes_default == 1 ? false : true;
            $on_attributes_discounted = zen_get_show_product_switch($products_filter, 'ATTRIBUTES_DISCOUNTED', 'DEFAULT_', '') == 1 ? true : false;
            $off_attributes_discounted = $on_attributes_discounted == 1 ? false : true;
            $on_attributes_price_base_included = zen_get_show_product_switch($products_filter, 'ATTRIBUTES_PRICE_BASE_INCLUDED', 'DEFAULT_', '') == 1 ? true : false;
            $off_attributes_price_base_included = $on_attributes_price_base_included == 1 ? false : true;
            $on_attributes_required = zen_get_show_product_switch($products_filter, 'ATTRIBUTES_REQUIRED', 'DEFAULT_', '') == 1 ? true : false;
            $off_attributes_required = $on_attributes_required == 1 ? false : true;
            $default_price_prefix = zen_get_show_product_switch($products_filter, 'PRICE_PREFIX', 'DEFAULT_', '');
            $default_price_prefix = $default_price_prefix == 1 ? '+' : ($default_price_prefix == 2 ? '-' : '');
            $default_products_attributes_weight_prefix = zen_get_show_product_switch($products_filter, 'PRODUCTS_ATTRIBUTES_WEIGHT_PREFIX', 'DEFAULT_', '');
            $default_products_attributes_weight_prefix = $default_products_attributes_weight_prefix == 1 ? '+' : ($default_products_attributes_weight_prefix == 2 ? '-' : '');
            // set defaults for copying
            $on_overwrite = true;
            $off_overwrite = false;
            ?>
            </select>&nbsp;</td>
          </tr></table></td></tr>

<?php 
            // split here
            ?>
        </table></td></tr>
      </table>
    </td>
  </tr>
开发者ID:quangn92,项目名称:visualyou,代码行数:31,代码来源:attributes_controller.php

示例4: zen_draw_form

             } else {
                 $lc_button = TEXT_PRODUCT_LISTING_MULTIPLE_ADD_TO_CART . "<input type=\"text\" name=\"products_id[" . $listing->fields['products_id'] . "]\" value=\"0\" size=\"4\" />";
             }
         } else {
             // qty box with add to cart button
             if (PRODUCT_LIST_PRICE_BUY_NOW == '2' && $listing->fields['products_qty_box_status'] != 0) {
                 $lc_button = zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($listing->fields['products_id']), zen_get_all_get_params(array('action')) . 'action=add_product&products_id=' . $listing->fields['products_id']), 'post', 'enctype="multipart/form-data"') . '<input type="text" name="cart_quantity" value="' . zen_get_buy_now_qty($listing->fields['products_id']) . '" maxlength="6" size="4" /><br />' . zen_draw_hidden_field('products_id', $listing->fields['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT) . '</form>';
             } else {
                 $lc_button = '<a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_BUY_NOW, BUTTON_BUY_NOW_ALT, 'class="listingBuyNowButton"') . '</a>';
             }
         }
     }
     $the_button = $lc_button;
     $products_link = '<span class="more-info"><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) : $_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id'])) . '&products_id=' . $listing->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a></span>';
     $lc_text .= '<br />' . zen_get_buy_now_button($listing->fields['products_id'], $the_button, $products_link) . '<br />' . zen_get_products_quantity_min_units_display($listing->fields['products_id']);
     $lc_text .= '<br />' . (zen_get_show_product_switch($listing->fields['products_id'], 'ALWAYS_FREE_SHIPPING_IMAGE_SWITCH') ? zen_get_product_is_always_free_shipping($listing->fields['products_id']) ? TEXT_PRODUCT_FREE_SHIPPING_ICON . '<br />' : '' : '');
     break;
 case 'PRODUCT_LIST_QUANTITY':
     $lc_align = 'right';
     $lc_text = $listing->fields['products_quantity'];
     break;
 case 'PRODUCT_LIST_WEIGHT':
     $lc_align = 'right';
     $lc_text = $listing->fields['products_weight'];
     break;
 case 'PRODUCT_LIST_IMAGE':
     $lc_align = 'center';
     if ($listing->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) {
         $lc_text = '';
     } else {
         if (isset($_GET['manufacturers_id'])) {
开发者ID:dalinhuang,项目名称:kakayaga,代码行数:31,代码来源:product_listing.php

示例5: zen_get_tax_rate

             $products_options_display_price = TEXT_ATTRIBUTES_PRICE_WAS . $products_options->fields['price_prefix'] . $currencies->display_price($new_attributes_price, zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . TEXT_ATTRIBUTE_IS_FREE;
         } else {
             // normal price
             if ($new_attributes_price == 0) {
                 $products_options_display_price = '';
             } else {
                 $products_options_display_price = ' (' . $products_options->fields['price_prefix'] . $currencies->display_price($new_attributes_price, zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ') ';
             }
         }
     }
     $products_options_display_price .= $price_onetime;
 }
 // approve
 $products_options_array[sizeof($products_options_array) - 1]['text'] .= $products_options_display_price;
 // collect weight information if it exists zen_get_show_product_switch($prod_id, 'WEIGHT_ATTRIBUTES')
 if (zen_get_show_product_switch($prod_id, 'WEIGHT_ATTRIBUTES') == '1' and $products_options->fields['products_attributes_weight'] != '0') {
     $products_options_display_weight = ' (' . $products_options->fields['products_attributes_weight_prefix'] . round($products_options->fields['products_attributes_weight'], 2) . TEXT_PRODUCT_WEIGHT_UNIT . ')';
     $products_options_array[sizeof($products_options_array) - 1]['text'] .= $products_options_display_weight;
 } else {
     // reset
     $products_options_display_weight = '';
 }
 // prepare product options details
 $prod_id = $_GET['products_id'];
 //die($prod_id);
 if ($products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_FILE or $products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_TEXT or $products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_CHECKBOX or $products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_RADIO or $products_options->RecordCount() == 1 or $products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_READONLY) {
     $products_options_value_id = $products_options->fields['products_options_values_id'];
     if ($products_options_names->fields['products_options_type'] != PRODUCTS_OPTIONS_TYPE_TEXT and $products_options_names->fields['products_options_type'] != PRODUCTS_OPTIONS_TYPE_FILE) {
         $products_options_details = $products_options->fields['products_options_values_name'];
     } else {
         // don't show option value name on TEXT or filename
开发者ID:andychang88,项目名称:daddy-store.com,代码行数:31,代码来源:attributes_preview.php

示例6: sort

if (sizeof($directory_array)) {
    sort($directory_array);
}
for ($i = 0, $n = sizeof($directory_array); $i < $n; $i++) {
    if (file_exists($extras_dir . $directory_array[$i])) {
        include $extras_dir . $directory_array[$i];
    }
}
// build show flags from product type layout settings
$flag_show_product_info_starting_at = zen_get_show_product_switch($_GET['products_id'], 'starting_at');
$flag_show_product_info_model = zen_get_show_product_switch($_GET['products_id'], 'model');
$flag_show_product_info_weight = zen_get_show_product_switch($_GET['products_id'], 'weight');
$flag_show_product_info_quantity = zen_get_show_product_switch($_GET['products_id'], 'quantity');
$flag_show_product_info_manufacturer = zen_get_show_product_switch($_GET['products_id'], 'manufacturer');
$flag_show_product_info_in_cart_qty = zen_get_show_product_switch($_GET['products_id'], 'in_cart_qty');
$flag_show_product_info_reviews = zen_get_show_product_switch($_GET['products_id'], 'reviews');
$flag_show_product_info_reviews_count = zen_get_show_product_switch($_GET['products_id'], 'reviews_count');
$flag_show_product_info_date_available = zen_get_show_product_switch($_GET['products_id'], 'date_available');
$flag_show_product_info_date_added = zen_get_show_product_switch($_GET['products_id'], 'date_added');
$flag_show_product_info_url = zen_get_show_product_switch($_GET['products_id'], 'url');
$flag_show_product_info_additional_images = zen_get_show_product_switch($_GET['products_id'], 'additional_images');
$flag_show_product_info_free_shipping = zen_get_show_product_switch($_GET['products_id'], 'always_free_shipping_image_switch');
$flag_show_product_music_info_artist = zen_get_show_product_switch($_GET['products_id'], 'artist');
$flag_show_product_music_info_genre = zen_get_show_product_switch($_GET['products_id'], 'genre');
$flag_show_product_music_info_record_company = zen_get_show_product_switch($_GET['products_id'], 'record_company');
require DIR_WS_MODULES . zen_get_module_directory(FILENAME_PRODUCTS_QUANTITY_DISCOUNTS);
$zco_notifier->notify('NOTIFY_MAIN_TEMPLATE_VARS_EXTRA_PRODUCT_MUSIC_INFO');
require $template->get_template_dir($tpl_page_body, DIR_WS_TEMPLATE, $current_page_base, 'templates') . $tpl_page_body;
//require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_ALSO_PURCHASED_PRODUCTS));
// This should be last line of the script:
$zco_notifier->notify('NOTIFY_MAIN_TEMPLATE_VARS_END_PRODUCT_MUSIC_INFO');
开发者ID:promoweb,项目名称:zc-v1-series,代码行数:31,代码来源:main_template_vars.php

示例7: get_product_cart_button

 function get_product_cart_button($fields)
 {
     $cart_button = "";
     $products_id = (int) $fields['products_id'];
     if (zen_has_product_attributes($products_id) or PRODUCT_LIST_PRICE_BUY_NOW == '0') {
         // オプション属性があったら、購入ボタンではなく詳細画面のリンクにする
         $cart_button = '<a href="' . $fields['url'] . '">' . MORE_INFO_TEXT . '</a>';
     } else {
         if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
             // do nothing
         } else {
             $flag_show_product_info_in_cart_qty = zen_get_show_product_switch($products_id, 'in_cart_qty');
             $display_qty = ($flag_show_product_info_in_cart_qty == 1 and $_SESSION['cart']->in_cart($products_id)) ? '<p>' . PRODUCTS_ORDER_QTY_TEXT_IN_CART . $_SESSION['cart']->get_quantity($products_id) . '</p>' : '';
             if ($fields['products_qty_box_status'] == 0 or $fields['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', $products_id) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
             } else {
                 // show the quantity box
                 $the_button = PRODUCTS_ORDER_QTY_TEXT . '<input type="text" name="cart_quantity" value="' . zen_get_buy_now_qty($products_id) . '" maxlength="6" size="4" /><br />' . zen_get_products_quantity_min_units_display($products_id) . '<br />' . zen_draw_hidden_field('products_id', $products_id) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
             }
             $display_button = zen_get_buy_now_button($products_id, $the_button);
             if ($display_qty != '' or $display_button != '') {
                 $cart_button = zen_draw_form('cart_quantity_' . $products_id, zen_href_link(zen_get_info_page($products_id), zen_get_all_get_params(array('action')) . 'action=add_product'), 'post', 'enctype="multipart/form-data"');
                 $cart_button .= '<div>';
                 $cart_button .= $display_qty;
                 $cart_button .= $display_button;
                 $cart_button .= '</div>';
                 $cart_button .= '</form>';
             }
         }
     }
     return $cart_button;
 }
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:33,代码来源:super_products_list_model.php

示例8: zen_draw_form

                 $lst_lc_button = zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($listing->fields['products_id']), zen_get_all_get_params(array('action')) . 'action=add_product&products_id=' . $listing->fields['products_id']), 'post', 'enctype="multipart/form-data"') . '<input type="text" name="cart_quantity" value="' . zen_get_buy_now_qty($listing->fields['products_id']) . '" maxlength="6" size="4" class="addtocart input-text" />&nbsp;&nbsp;' . zen_draw_hidden_field('products_id', $listing->fields['products_id']) . '<button class="button btn_addtocart">' . BUTTON_ADD_TO_CART . '</button>' . '</form>';
             } else {
                 $lc_button = '<a title="Add to Cart" class="add-to-cart product_cart_image" href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing->fields['products_id']) . '"><span class="icon-shopcart"></span></a>';
                 $lst_lc_button = '<a class="btn btn-primary btn-iconed" title="Add to Cart" href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing->fields['products_id']) . '"><i class="icon-shopcart"></i><span>Add to Cart</span></a>';
             }
         }
     }
     $the_button = $lc_button;
     $lst_the_button = $lst_lc_button;
     $products_link = '<a class="link-learn" href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) : $_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id'])) . '&products_id=' . $listing->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a>';
     $product_link_only = zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id']) > 0 ? zen_get_generated_category_path_rev($_GET['filter_id']) : $_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id'])) . '&products_id=' . $listing->fields['products_id']);
     $min_quantity = '<div class="product-minquantity">' . zen_get_products_quantity_min_units_display($listing->fields['products_id']) . '</div>';
     $freeshipping = '<div class="product-freeship">' . (zen_get_show_product_switch($listing->fields['products_id'], 'ALWAYS_FREE_SHIPPING_IMAGE_SWITCH') ? zen_get_product_is_always_free_shipping($listing->fields['products_id']) ? TEXT_PRODUCT_FREE_SHIPPING_ICON : '' : '');
     $lst_lc_text .= '';
     $min_quantity = '<div class="product-minquantity">' . zen_get_products_quantity_min_units_display($listing->fields['products_id']) . '</div>';
     $freeshipping = '<div class="product-freeship">' . (zen_get_show_product_switch($listing->fields['products_id'], 'ALWAYS_FREE_SHIPPING_IMAGE_SWITCH') ? zen_get_product_is_always_free_shipping($listing->fields['products_id']) ? TEXT_PRODUCT_FREE_SHIPPING_ICON : '' : '');
     break;
 case 'PRODUCT_LIST_QUANTITY':
     $lc_align = 'right';
     if ($listing->fields['products_quantity'] != '') {
         $trg_extra_val .= '<div class="product-qty">' . TABLE_HEADING_QUANTITY . ' : ' . $listing->fields['products_quantity'] . "</div>";
     }
     //$lst_lc_text = '<div class="product-qty">'.$listing->fields['products_quantity']."</div>";
     break;
 case 'PRODUCT_LIST_WEIGHT':
     $lc_align = 'right';
     if ($listing->fields['products_weight'] != '') {
         $trg_extra_val .= '<div class="product-weight">' . TABLE_HEADING_WEIGHT . ' : ' . $listing->fields['products_weight'] . '</div>';
     }
     //$lst_lc_text = '<div class="product-weight">'.$listing->fields['products_weight'].'</div>';
     break;
开发者ID:quangn92,项目名称:visualyou,代码行数:31,代码来源:product_listing.php

示例9: zen_get_products_base_price

// $products_weight
// $products_quantity
// $options_name - Array
// $options_menu - Array
//   $module_show_categories
if ($debug_on == '1') {
    echo '<tr>';
    echo '  <td colspan="2" class="smallText">';
    echo 'Looking at ' . (int) $_GET['products_id'] . '<br />';
    echo 'Base Price ' . zen_get_products_base_price((int) $_GET['products_id']) . '<br />';
    echo 'Actual Price ' . zen_get_products_actual_price((int) $_GET['products_id']) . '<br />';
    echo 'Special Price ' . zen_get_products_special_price((int) $_GET['products_id'], true) . '<br />';
    echo 'Sale Maker Discount Type ' . zen_get_products_sale_discount_type((int) $_GET['products_id']) . '<br />';
    echo 'Discount Calc ' . zen_get_discount_calc((int) $_GET['products_id']) . '<br />';
    echo 'Discount Calc Attr $100 $75 $50 $25 ' . zen_get_discount_calc((int) $_GET['products_id'], true, 100) . ' | ' . zen_get_discount_calc((int) $_GET['products_id'], true, 75) . ' | ' . zen_get_discount_calc((int) $_GET['products_id'], true, 50) . ' | ' . zen_get_discount_calc((int) $_GET['products_id'], true, 25) . '<br />';
    echo '<br> Start of page - product <br>' . zen_get_show_product_switch($products_id_current, 'weight') . '<br>' . zen_get_show_product_switch($products_id_current, 'weight_attributes') . '<br>' . zen_get_show_product_switch($products_id_current, 'date_added') . '<br>' . zen_get_show_product_switch($products_id_current, 'quantity') . '<br>' . zen_get_show_product_switch($products_id_current, 'model') . '<br>' . SHOW_PRODUCT_INFO_WEIGHT_ATTRIBUTES . '<br>' . SHOW_PRODUCT_INFO_WEIGHT . '<br>' . SHOW_PRODUCT_INFO_MANUFACTURER . '<br>' . SHOW_PRODUCT_INFO_QUANTITY . '<br>' . '<br>';
    echo '  </td>';
    echo '</tr>';
}
echo zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($_GET['products_id']), zen_get_all_get_params(array('action')) . 'action=add_product'), 'post', 'enctype="multipart/form-data"');
?>
<table border="0" width="100%" cellspacing="2" cellpadding="2">
  <tr>
    <td colspan="2" class="breadCrumb"><?php 
echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR);
?>
</td>
  </tr>

<tr>
<td colspan="2" class="smallText">
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:31,代码来源:tpl_product_info_display.php

示例10: zen_date_long

 } else {
     $display_products_quantity = '';
 }
 if (PRODUCT_ALL_LIST_DATE_ADDED != '0' and zen_get_show_product_switch($products_all->fields['products_id'], 'date_added')) {
     $display_products_date_added = '<span class="service-text">' . TEXT_DATE_ADDED . ' ' . zen_date_long($products_all->fields['products_date_added']) . '</span>' . str_repeat('<br clear="all" />', substr(PRODUCT_ALL_LIST_DATE_ADDED, 3, 1));
 } else {
     $display_products_date_added = '';
 }
 if (PRODUCT_ALL_LIST_MANUFACTURER != '0' and zen_get_show_product_switch($products_all->fields['products_id'], 'manufacturer')) {
     $display_products_manufacturers_name = $products_all->fields['manufacturers_name'] != '' ? TEXT_MANUFACTURER . ' ' . $products_all->fields['manufacturers_name'] . str_repeat('<br clear="all" />', substr(PRODUCT_ALL_LIST_MANUFACTURER, 3, 1)) : '';
 } else {
     $display_products_manufacturers_name = '';
 }
 if (PRODUCT_ALL_LIST_PRICE != '0' and zen_get_products_allow_add_to_cart($products_all->fields['products_id']) == 'Y' and zen_check_show_prices() == true) {
     $products_price = zen_get_products_display_price($products_all->fields['products_id']);
     $display_products_price = '<span class="table-price">' . $products_price . '</span>' . str_repeat('<br clear="all" />', substr(PRODUCT_ALL_LIST_PRICE, 3, 1)) . (zen_get_show_product_switch($products_all->fields['products_id'], 'ALWAYS_FREE_SHIPPING_IMAGE_SWITCH') ? zen_get_product_is_always_free_shipping($products_all->fields['products_id']) ? TEXT_PRODUCT_FREE_SHIPPING_ICON . '<br />' : '' : '');
 } else {
     $display_products_price = '';
 }
 // more info in place of buy now
 if (PRODUCT_ALL_BUY_NOW != '0' and zen_get_products_allow_add_to_cart($products_all->fields['products_id']) == 'Y') {
     if (zen_has_product_attributes($products_all->fields['products_id'])) {
         $link = '<span class="more-info"><a href="' . zen_href_link(zen_get_info_page($products_all->fields['products_id']), 'cPath=' . zen_get_generated_category_path_rev($products_all->fields['master_categories_id']) . '&products_id=' . $products_all->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a></span>';
     } else {
         //          $link= '<a href="' . zen_href_link(FILENAME_PRODUCTS_ALL, zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $products_all->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT) . '</a>';
         if (PRODUCT_ALL_LISTING_MULTIPLE_ADD_TO_CART > 0 && $products_all->fields['products_qty_box_status'] != 0) {
             //            $how_many++;
             $link = TEXT_PRODUCT_ALL_LISTING_MULTIPLE_ADD_TO_CART . "<input type=\"text\" name=\"products_id[" . $products_all->fields['products_id'] . "]\" value=\"0\" size=\"4\" />";
         } else {
             $link = '<a href="' . zen_href_link(FILENAME_PRODUCTS_ALL, zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $products_all->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_BUY_NOW, BUTTON_BUY_NOW_ALT) . '</a>&nbsp;';
         }
开发者ID:dalinhuang,项目名称:kakayaga,代码行数:31,代码来源:tpl_modules_products_all_listing.php

示例11: zen_get_products_base_price

?>
</td>
  </tr>

<?php 
if ($debug_on == '1') {
    echo '<tr>';
    echo '  <td colspan="2" class="smallText">';
    echo 'Looking at ' . (int) $_GET['products_id'] . '<br />';
    echo 'Base Price ' . zen_get_products_base_price((int) $_GET['products_id']) . '<br />';
    echo 'Actual Price ' . zen_get_products_actual_price((int) $_GET['products_id']) . '<br />';
    echo 'Special Price ' . zen_get_products_special_price((int) $_GET['products_id'], true) . '<br />';
    echo 'Sale Maker Discount Type ' . zen_get_products_sale_discount_type((int) $_GET['products_id']) . '<br />';
    echo 'Discount Calc ' . zen_get_discount_calc((int) $_GET['products_id']) . '<br />';
    echo 'Discount Calc Attr $100 $75 $50 $25 ' . zen_get_discount_calc((int) $_GET['products_id'], true, 100) . ' | ' . zen_get_discount_calc((int) $_GET['products_id'], true, 75) . ' | ' . zen_get_discount_calc((int) $_GET['products_id'], true, 50) . ' | ' . zen_get_discount_calc((int) $_GET['products_id'], true, 25) . '<br />';
    echo '<br> Start of page - document general<br>' . zen_get_show_product_switch($products_id_current, 'weight') . '<br>' . zen_get_show_product_switch($products_id_current, 'weight_attributes') . '<br>' . zen_get_show_product_switch($products_id_current, 'date_added') . '<br>' . zen_get_show_product_switch($products_id_current, 'quantity') . '<br>' . zen_get_show_product_switch($products_id_current, 'model') . '<br>' . SHOW_DOCUMENT_GENERAL_INFO_WEIGHT_ATTRIBUTES . '<br>' . SHOW_DOCUMENT_GENERAL_INFO_WEIGHT . '<br>' . SHOW_DOCUMENT_GENERAL_INFO_MANUFACTURER . '<br>' . SHOW_DOCUMENT_GENERAL_INFO_QUANTITY . '<br>' . '<br>';
    echo '  </td>';
    echo '</tr>';
}
if (PRODUCT_INFO_PREVIOUS_NEXT == '1' or PRODUCT_INFO_PREVIOUS_NEXT == '3') {
    ?>
  <tr>
    <td colspan="2" align="center">
      <?php 
    require $template->get_template_dir('/tpl_products_next_previous.php', DIR_WS_TEMPLATE, $current_page_base, 'templates') . '/tpl_products_next_previous.php';
    ?>
    </td>
  </tr>
<?php 
}
?>
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:31,代码来源:tpl_document_general_info_display.php

示例12: zen_date_long

 } else {
     $display_products_quantity = '';
 }
 if (PRODUCT_SPECIALS_DATE_ADDED != '0' and zen_get_show_product_switch($specials->fields['products_id'], 'date_added')) {
     $display_products_date_added = TEXT_DATE_ADDED . ' ' . zen_date_long($specials->fields['products_date_added']) . str_repeat('', substr(PRODUCT_SPECIALS_DATE_ADDED, 3, 1));
 } else {
     $display_products_date_added = '';
 }
 if (PRODUCT_SPECIALS_MANUFACTURER != '0' and zen_get_show_product_switch($specials->fields['products_id'], 'manufacturer')) {
     $display_products_manufacturers_name = $specials->fields['manufacturers_name'] != '' ? TEXT_MANUFACTURER . ' ' . $specials->fields['manufacturers_name'] . str_repeat('', substr(PRODUCT_SPECIALS_MANUFACTURER, 3, 1)) : '';
 } else {
     $display_products_manufacturers_name = '';
 }
 if (PRODUCT_SPECIALS_PRICE != '0' and zen_get_products_allow_add_to_cart($specials->fields['products_id']) == 'Y' and zen_check_show_prices() == true) {
     $products_price = zen_mb_get_products_display_price($specials->fields['products_id']);
     $display_products_price = TEXT_PRICE . ' ' . $products_price . str_repeat('', substr(PRODUCT_SPECIALS_PRICE, 3, 1)) . (zen_get_show_product_switch($specials->fields['products_id'], 'ALWAYS_FREE_SHIPPING_IMAGE_SWITCH') ? zen_get_product_is_always_free_shipping($specials->fields['products_id']) ? TEXT_PRODUCT_FREE_SHIPPING_ICON . '<br />' : '' : '');
 } else {
     $display_products_price = '';
     $products_price = '';
 }
 // more info in place of buy now
 if (PRODUCT_NEW_BUY_NOW != '0' and zen_get_products_allow_add_to_cart($specials->fields['products_id']) == 'Y') {
     if (zen_has_product_attributes($specials->fields['products_id'])) {
         $link = '<a href="' . zen_href_link(zen_get_info_page($specials->fields['products_id']), 'cPath=' . zen_get_generated_category_path_rev($specials->fields['master_categories_id']) . '&products_id=' . $specials->fields['products_id']) . '">' . MORE_INFO_TEXT . '</a>';
     } else {
         if (PRODUCT_SPECIALS_MULTIPLE_ADD_TO_CART > 0 && $specials->fields['products_qty_box_status'] != 0) {
             //            $how_many++;
             $link = '<span>' . TEXT_PRODUCT_SPECIALS_MULTIPLE_ADD_TO_CART . "</span><input class='input-text' type=\"text\" name=\"products_id[" . $specials->fields['products_id'] . "]\" value=\"0\" size=\"4\" />";
         } else {
             $link = '<a href="' . zen_href_link(FILENAME_SPECIALS, zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $specials->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_BUY_NOW, BUTTON_BUY_NOW_ALT) . '</a>&nbsp;';
         }
开发者ID:quangn92,项目名称:visualyou,代码行数:31,代码来源:tpl_modules_specials_listing.php

示例13: new_attribute

 function new_attribute($columns, $products_id)
 {
     $atrribute = array();
     foreach ($columns['attributes_column'] as $k => $v) {
         $attribute[$k] = $v;
     }
     // set defaults by configration
     $attribute['attribute_is_free'] = zen_get_show_product_switch($products_id, 'ATTRIBUTE_IS_FREE', 'DEFAULT_', '');
     $attribute['attributes_display_only'] = zen_get_show_product_switch($products_id, 'ATTRIBUTES_DISPLAY_ONLY', 'DEFAULT_', '');
     $attribute['attributes_default'] = zen_get_show_product_switch($products_id, 'ATTRIBUTES_DEFAULT', 'DEFAULT_', '');
     $attribute['attributes_discounted'] = zen_get_show_product_switch($products_id, 'ATTRIBUTES_DISCOUNTED', 'DEFAULT_', '');
     $attribute['attributes_price_base_included'] = zen_get_show_product_switch($products_id, 'ATTRIBUTES_PRICE_BASE_INCLUDED', 'DEFAULT_', '');
     $attribute['attributes_required'] = zen_get_show_product_switch($products_id, 'ATTRIBUTES_REQUIRED', 'DEFAULT_', '');
     $default_price_prefix = zen_get_show_product_switch($products_id, 'PRICE_PREFIX', 'DEFAULT_', '');
     $attribute['price_prefix'] = $default_price_prefix == 1 ? '+' : ($default_price_prefix == 2 ? '-' : '');
     $default_products_attributes_weight_prefix = zen_get_show_product_switch($products_id, 'PRODUCTS_ATTRIBUTES_WEIGHT_PREFIX', 'DEFAULT_', '');
     $attribute['products_attributes_weight_prefix'] = $default_products_attributes_weight_prefix == 1 ? '+' : ($default_products_attributes_weight_prefix == 2 ? '-' : '');
     return $attribute;
 }
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:19,代码来源:easy_admin_products_attribute_model.php

示例14: sort

    $dir->close();
}
if (sizeof($directory_array)) {
    sort($directory_array);
}
for ($i = 0, $n = sizeof($directory_array); $i < $n; $i++) {
    if (file_exists($extras_dir . $directory_array[$i])) {
        include $extras_dir . $directory_array[$i];
    }
}
// build show flags from product type layout settings
//  $flag_show_product_info_starting_at = zen_get_show_product_switch($_GET['products_id'], 'starting_at');
//  $flag_show_product_info_model = zen_get_show_product_switch($_GET['products_id'], 'model');
//  $flag_show_product_info_weight = zen_get_show_product_switch($_GET['products_id'], 'weight');
//  $flag_show_product_info_quantity = zen_get_show_product_switch($_GET['products_id'], 'quantity');
//  $flag_show_product_info_manufacturer = zen_get_show_product_switch($_GET['products_id'], 'manufacturer');
//  $flag_show_product_info_in_cart_qty = zen_get_show_product_switch($_GET['products_id'], 'in_cart_qty');
$flag_show_product_info_tell_a_friend = zen_get_show_product_switch($_GET['products_id'], 'tell_a_friend');
$flag_show_product_info_reviews = zen_get_show_product_switch($_GET['products_id'], 'reviews');
$flag_show_product_info_reviews_count = zen_get_show_product_switch($_GET['products_id'], 'reviews_count');
$flag_show_product_info_date_available = zen_get_show_product_switch($_GET['products_id'], 'date_available');
$flag_show_product_info_date_added = zen_get_show_product_switch($_GET['products_id'], 'date_added');
$flag_show_product_info_url = zen_get_show_product_switch($_GET['products_id'], 'url');
$flag_show_product_info_additional_images = zen_get_show_product_switch($_GET['products_id'], 'additional_images');
$flag_show_product_info_free_shipping = zen_get_show_product_switch($_GET['products_id'], 'always_free_shipping_image_switch');
require DIR_WS_MODULES . zen_get_module_directory(FILENAME_PRODUCTS_QUANTITY_DISCOUNTS);
$zco_notifier->notify('NOTIFY_MAIN_TEMPLATE_VARS_EXTRA_DOCUMENT_GENERAL_INFO');
require $template->get_template_dir($tpl_page_body, DIR_WS_TEMPLATE, $current_page_base, 'templates') . $tpl_page_body;
//require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_ALSO_PURCHASED_PRODUCTS));
// This should be last line of the script:
$zco_notifier->notify('NOTIFY_MAIN_TEMPLATE_VARS_END_DOCUMENT_GENERAL_INFO');
开发者ID:andychang88,项目名称:daddy-store.com,代码行数:31,代码来源:main_template_vars.php

示例15: switch

 $lc_class = $lc_text = '';
 switch ($column_list[$col]) {
     case 'PRODUCT_LIST_NAME':
         $lc_class = 'product-name';
         $icons = BootstrapProductListing::product_icon_html($sese_icons, $listing);
         $product_description = zen_trunc_string(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id'])), PRODUCT_LIST_DESCRIPTION);
         $lc_text = "<h4 class='itemTitle'><a href='{$product_link}'><b>" . "{$listing->fields['products_name']}</b></a>{$icons}</h4>" . "<div class='hidden-xs listingDescription'>{$product_description}</div>\n" . "<div class='visible-xs'>{$product_image}</div>\n";
         break;
     case 'PRODUCT_LIST_PRICE':
         $lc_price = "<div class='text-center product-price'><b>" . zen_get_products_display_price($listing->fields['products_id']) . "</b></div>\n";
         $lc_text = $lc_price;
         $the_button = BootstrapProductListing::product_cart_button($listing, $product_link);
         $products_link = "<a href='{$product_link}'>" . MORE_INFO_TEXT . '</a>';
         $buy_now_button = zen_get_buy_now_button($listing->fields['products_id'], $the_button, $products_link) . zen_get_products_quantity_min_units_display($listing->fields['products_id']);
         $lc_text .= BootstrapUtils::clean_buy_now_button($buy_now_button, $product_link);
         $has_free_shipping = zen_get_show_product_switch($listing->fields['products_id'], 'ALWAYS_FREE_SHIPPING_IMAGE_SWITCH') && zen_get_product_is_always_free_shipping($listing->fields['products_id']);
         if ($has_free_shipping) {
             $lc_text .= TEXT_PRODUCT_FREE_SHIPPING_ICON . "<br />";
         }
         if (isset($listing->fields['products_model'])) {
             $lc_text .= "<div class='text-center'><small class='item-number'><i>Item # {$listing->fields['products_model']}" . "</i></small></div>";
         }
         $form_action = zen_href_link(FILENAME_DEFAULT, zen_get_all_get_params(array('action')) . 'action=multiple_products_add_product');
         $lc_text = zen_draw_form('multiple_products_cart_quantity', $form_action, 'post', 'enctype="multipart/form-data"') . $lc_text . "</form>";
         break;
     case 'PRODUCT_LIST_QUANTITY':
         $lc_text = $listing->fields['products_quantity'];
         break;
     case 'PRODUCT_LIST_WEIGHT':
         $lc_text = $listing->fields['products_weight'];
         break;
开发者ID:Southern-Exposure-Seed-Exchange,项目名称:Zencart-Bootstrap-Theme,代码行数:31,代码来源:product_listing.php


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