本文整理汇总了PHP中zen_get_products_name函数的典型用法代码示例。如果您正苦于以下问题:PHP zen_get_products_name函数的具体用法?PHP zen_get_products_name怎么用?PHP zen_get_products_name使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了zen_get_products_name函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: rss_feed_title
function rss_feed_title($feed = false)
{
global $current_category_id;
if (!$feed) {
$feed = $_GET['feed'];
} else {
if (($i = strpos($feed, '&')) !== false) {
$feed_args = substr($feed, $i + 1);
$feed = substr($feed, 0, $i);
}
}
switch (true) {
case $feed == 'news':
$title = TEXT_RSS_NEWS;
break;
case $feed == 'categories':
$title = TEXT_RSS_CATEGORIES;
if (isset($_GET['cPath']) && $current_category_id > 0) {
$title .= RSS_TITLE_DELIMITER2 . strip_tags(zen_get_categories_name((int) $current_category_id));
}
break;
case $feed == 'specials_random':
case $feed == 'specials':
$title = TEXT_RSS_SPECIALS;
break;
case $feed == 'featured_random':
case $feed == 'featured':
$title = TEXT_RSS_FEATURED_PRODUCTS;
break;
case $feed == 'best_sellers_random':
case $feed == 'best_sellers':
$title = TEXT_RSS_BEST_SELLERS;
break;
case $feed == 'upcoming_random':
case $feed == 'upcoming':
$title = TEXT_RSS_UPCOMING_PRODUCTS;
break;
case $feed == 'new_products_random':
case $feed == 'new_products':
$title = TEXT_RSS_PRODUCTS_NEW;
break;
case $feed == 'products':
if (isset($_GET['products_id'])) {
$title = TEXT_RSS_PRODUCT . RSS_TITLE_DELIMITER2 . strip_tags(zen_get_products_name((int) $_GET['products_id']));
} elseif (isset($_GET['cPath']) && $current_category_id > 0) {
$title = TEXT_RSS_PRODUCTS . RSS_TITLE_DELIMITER2 . strip_tags(zen_get_categories_name((int) $current_category_id));
} else {
$title = TEXT_RSS_PRODUCTS_ALL;
}
break;
default:
$title = TEXT_RSS_FEED;
break;
}
return $title;
}
示例2: verifyQuantity
function verifyQuantity($pProductsKey, $pQty)
{
$pQty = (int) $pQty;
// verify qty to add
$add_max = zen_get_products_quantity_order_max($_REQUEST['products_id']);
$cart_qty = $gBitCustomer->mCart->in_cart_mixed($_REQUEST['products_id']);
$new_qty = zen_get_buy_now_qty($_REQUEST['products_id']);
if ($add_max == 1 and $cart_qty == 1) {
// do not add
$new_qty = 0;
} else {
// adjust quantity if needed
if ($new_qty + $cart_qty > $add_max and $add_max != 0) {
$new_qty = $add_max - $cart_qty;
}
}
if (!empty($adjust_max) && $adjust_max == 'true') {
$messageStack->add_session('header', ERROR_MAXIMUM_QTY . ' - ' . zen_get_products_name($prodId), 'caution');
}
if ($product = $this->getProductObject($pProductsKey)) {
if (is_object($product) && $pQty > $product->getField('products_quantity_order_max')) {
// we are trying to add quantity greater than max purchable quantity
$pQty = $product->getField('products_quantity_order_max');
}
} else {
// product couldn't load, delete from card
$pQty = 0;
}
return $pQty;
}
示例3: array
case 'attribute_features':
$copy_attributes_delete_first = '0';
$copy_attributes_duplicates_skipped = '0';
$copy_attributes_duplicates_overwrite = '0';
$copy_attributes_include_downloads = '1';
$copy_attributes_include_filename = '1';
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_ATTRIBUTE_FEATURES . $pInfo->products_id . '</b>');
$contents[] = array('align' => 'center', 'text' => '<br />' . '<strong>' . TEXT_PRODUCTS_ATTRIBUTES_INFO . '</strong>' . '<br />');
$contents[] = array('align' => 'center', 'text' => '<br />' . '<strong>' . zen_get_products_name($pInfo->products_id, $languages_id) . ' ID# ' . $pInfo->products_id . '</strong><br /><br />' . (zen_has_product_attributes($pInfo->products_id, 'false') ? '<a href="' . zen_href_link(FILENAME_ATTRIBUTES_CONTROLLER, '&action=attributes_preview' . '&products_filter=' . $pInfo->products_id . '¤t_category_id=' . $current_category_id) . '">' . zen_image_button('button_preview.gif', IMAGE_PREVIEW) . '</a>' . ' ' : '') . '<a href="' . zen_href_link(FILENAME_ATTRIBUTES_CONTROLLER, 'products_filter=' . $pInfo->products_id . '¤t_category_id=' . $current_category_id) . '">' . zen_image_button('button_edit_attribs.gif', IMAGE_EDIT_ATTRIBUTES) . '</a>' . '<br /><br />');
// only if attributes
if (zen_has_product_attributes($pInfo->products_id, 'false')) {
$contents[] = array('align' => 'left', 'text' => '<br />' . '<strong>' . TEXT_PRODUCT_ATTRIBUTES_DOWNLOADS . '</strong>' . zen_has_product_attributes_downloads($pInfo->products_id) . zen_has_product_attributes_downloads($pInfo->products_id, true));
$contents[] = array('align' => 'left', 'text' => '<br />' . TEXT_INFO_ATTRIBUTES_FEATURES_DELETE . '<strong>' . zen_get_products_name($pInfo->products_id) . ' ID# ' . $pInfo->products_id . '</strong><br /><a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . '&action=delete_attributes' . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '') . '&products_id=' . $pInfo->products_id) . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
$contents[] = array('align' => 'left', 'text' => '<br />' . TEXT_INFO_ATTRIBUTES_FEATURES_UPDATES . '<strong>' . zen_get_products_name($pInfo->products_id, $languages_id) . ' ID# ' . $pInfo->products_id . '</strong><br /><a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . '&action=update_attributes_sort_order' . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '') . '&products_id=' . $pInfo->products_id) . '">' . zen_image_button('button_update.gif', IMAGE_UPDATE) . '</a>');
$contents[] = array('align' => 'left', 'text' => '<br />' . TEXT_INFO_ATTRIBUTES_FEATURES_COPY_TO_PRODUCT . '<strong>' . zen_get_products_name($pInfo->products_id, $languages_id) . ' ID# ' . $pInfo->products_id . '</strong><br /><a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . '&action=attribute_features_copy_to_product' . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '') . '&products_id=' . $pInfo->products_id) . '">' . zen_image_button('button_copy_to.gif', IMAGE_COPY_TO) . '</a>');
$contents[] = array('align' => 'left', 'text' => '<br />' . TEXT_INFO_ATTRIBUTES_FEATURES_COPY_TO_CATEGORY . '<strong>' . zen_get_products_name($pInfo->products_id, $languages_id) . ' ID# ' . $pInfo->products_id . '</strong><br /><a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . '&action=attribute_features_copy_to_category' . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '') . '&products_id=' . $pInfo->products_id) . '">' . zen_image_button('button_copy_to.gif', IMAGE_COPY_TO) . '</a>');
}
$contents[] = array('align' => 'center', 'text' => '<br /><a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
// attribute copier to product
// attribute copier to product
case 'attribute_features_copy_to_product':
$_GET['products_update_id'] = '';
// excluded current product from the pull down menu of products
$products_exclude_array = array();
$products_exclude_array[] = $pInfo->products_id;
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_ATTRIBUTE_FEATURES . $pInfo->products_id . '</b>');
$contents = array('form' => zen_draw_form('products', FILENAME_CATEGORIES, 'action=update_attributes_copy_to_product&cPath=' . $cPath . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . zen_draw_hidden_field('products_id', $pInfo->products_id) . zen_draw_hidden_field('products_update_id', $_GET['products_update_id']) . zen_draw_hidden_field('copy_attributes', $_GET['copy_attributes']));
$contents[] = array('text' => '<br />' . TEXT_COPY_ATTRIBUTES_CONDITIONS . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_delete', true) . ' ' . TEXT_COPY_ATTRIBUTES_DELETE . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_update') . ' ' . TEXT_COPY_ATTRIBUTES_UPDATE . '<br />' . zen_draw_radio_field('copy_attributes', 'copy_attributes_ignore') . ' ' . TEXT_COPY_ATTRIBUTES_IGNORE);
$contents[] = array('align' => 'center', 'text' => '<br />' . zen_draw_products_pull_down('products_update_id', '', $products_exclude_array, true) . '<br /><br />' . zen_image_submit('button_copy_to.gif', IMAGE_COPY_TO) . ' <a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
示例4: str_replace
<?php
/**
* Electronics Template designed by zen-cart-power.com
* zen-cart-power.com - Zen Cart templates and modules
* Power your Zen Cart!
*
*
* @copyright Copyright 2008-2009 Zen-Cart-Power.com
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
*/
$content = "";
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
$content .= '<a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('action')) . 'action=notify_remove', $request_type) . '">' . zen_image(DIR_WS_TEMPLATE_IMAGES . OTHER_IMAGE_BOX_NOTIFY_REMOVE, OTHER_BOX_NOTIFY_REMOVE_ALT) . '</a>';
$content .= '<a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('action')) . 'action=notify_remove', $request_type) . '">' . '<br />' . sprintf(BOX_NOTIFICATIONS_NOTIFY_REMOVE, zen_get_products_name($_GET['products_id'])) . '</a>';
$content .= '</div>';
示例5: zen_draw_radio_field
echo TEXT_PRODUCTS_METATAGS_TITLE_TAGLINE_STATUS . '<br />' . zen_draw_radio_field('metatags_title_tagline_status', '1', $is_metatags_title_tagline_status) . ' ' . TEXT_YES . ' ' . zen_draw_radio_field('metatags_title_tagline_status', '0', $not_metatags_title_tagline_status) . ' ' . TEXT_NO;
?>
</td>
</tr>
</table>
</td>
</tr>
<?php
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
?>
<tr>
<td><table border="3" cellspacing="4" cellpadding="6">
<tr>
<td class="main" colspan="2">
<?php
echo zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . '<strong>' . TEXT_PRODUCTS_NAME . '</strong>' . ' ' . zen_get_products_name($_GET['pID'], $languages[$i]['id']) . ' <strong>' . TEXT_PRODUCTS_MODEL . '</strong> ' . $pInfo->products_model . ' <strong>' . TEXT_PRODUCTS_PRICE_INFO . '</strong> ' . $currencies->format($pInfo->products_price_sorter);
?>
</td>
</tr>
<tr>
<td class="main"valign="top"><?php
echo TEXT_META_TAGS_TITLE;
?>
</td>
<td class="main">
<?php
echo zen_draw_input_field('metatags_title[' . $languages[$i]['id'] . ']', isset($metatags_title[$languages[$i]['id']]) ? stripslashes($metatags_title[$languages[$i]['id']]) : zen_get_metatags_title($pInfo->products_id, $languages[$i]['id']), zen_set_field_length(TABLE_META_TAGS_PRODUCTS_DESCRIPTION, 'metatags_title', '150', false));
//,'id="'.'metatags_title' . $languages[$i]['id'] . '"');
?>
</td>
</tr>
示例6: FROM
if (MAX_DISPLAY_SPECIAL_PRODUCTS > 0) {
$specials_query_raw = "SELECT p.products_id, p.products_image, pd.products_name,\n p.master_categories_id\n FROM (" . TABLE_PRODUCTS . " p\n LEFT JOIN " . TABLE_SPECIALS . " s on p.products_id = s.products_id\n LEFT JOIN " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id )\n WHERE p.products_id = s.products_id and p.products_id = pd.products_id and p.products_status = '1'\n AND s.status = 1\n AND pd.language_id = :languagesID\n AND p.shop_id = " . (int) $_SESSION['shop_id'] . "\n ORDER BY s.specials_date_added DESC";
$specials_query_raw = $db->bindVars($specials_query_raw, ':languagesID', $_SESSION['languages_id'], 'integer');
$specials_split = new splitPageResults($specials_query_raw, MAX_DISPLAY_SPECIAL_PRODUCTS);
$specials = $db->Execute($specials_split->sql_query);
$row = 0;
$col = 0;
$list_box_contents = array();
$title = '';
$num_products_count = $specials->RecordCount();
if ($num_products_count) {
if ($num_products_count < SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS || SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS == 0) {
$col_width = floor(100 / $num_products_count);
} else {
$col_width = floor(100 / SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS);
}
$list_box_contents = array();
while (!$specials->EOF) {
$products_price = zen_get_products_display_price($specials->fields['products_id']);
$specials->fields['products_name'] = zen_get_products_name($specials->fields['products_id']);
$list_box_contents[$row][$col] = array('params' => 'class="specialsListBoxContents"' . ' ' . 'style="width:' . $col_width . '%;"', 'text' => '<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']) . '">' . (($specials->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : zen_image(DIR_WS_IMAGES . $specials->fields['products_image'], $specials->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>') . '<br /><a class="pro_name_hight" 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']) . '">' . $specials->fields['products_name'] . '</a><br />' . $products_price);
$col++;
if ($col > SHOW_PRODUCT_INFO_COLUMNS_SPECIALS_PRODUCTS - 1) {
$col = 0;
$row++;
}
$specials->MoveNext();
}
require $template->get_template_dir('tpl_specials_default.php', DIR_WS_TEMPLATE, $current_page_base, 'templates') . '/tpl_specials_default.php';
}
}
示例7: str_replace
<?php
/**
* Side Box Template
*
* @package templateSystem
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_no_notifications.php 2982 2006-02-07 07:56:41Z birdbrain $
*/
$content = "";
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
$content .= '<a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('action')) . 'action=notify', $request_type) . '">' . zen_image(DIR_WS_TEMPLATE_IMAGES . OTHER_IMAGE_BOX_NOTIFY_YES, OTHER_BOX_NOTIFY_YES_ALT) . '<br />' . sprintf(BOX_NOTIFICATIONS_NOTIFY, zen_get_products_name($_GET['products_id'])) . '</a>';
$content .= '</div>';
示例8: length
$reviews_text = $db->Execute("select r.reviews_read, r.customers_name,\r\n length(rd.reviews_text) as reviews_text_size\r\n from " . TABLE_REVIEWS . " r, " . TABLE_REVIEWS_DESCRIPTION . " rd\r\n where r.reviews_id = '" . (int) $reviews->fields['reviews_id'] . "'\r\n and r.reviews_id = rd.reviews_id");
$products_image = $db->Execute("select products_image\r\n from " . TABLE_PRODUCTS . "\r\n where products_id = '" . (int) $reviews->fields['products_id'] . "'");
$products_name = $db->Execute("select products_name\r\n from " . TABLE_PRODUCTS_DESCRIPTION . "\r\n where products_id = '" . (int) $reviews->fields['products_id'] . "'\r\n and language_id = '" . (int) $_SESSION['languages_id'] . "'");
$reviews_average = $db->Execute("select (avg(reviews_rating) / 5 * 100) as average_rating\r\n from " . TABLE_REVIEWS . "\r\n where products_id = '" . (int) $reviews->fields['products_id'] . "'");
$review_info = array_merge($reviews_text->fields, $reviews_average->fields, $products_name->fields);
$rInfo_array = array_merge($reviews->fields, $review_info, $products_image->fields);
$rInfo = new objectInfo($rInfo_array);
}
if (isset($rInfo) && is_object($rInfo) && $reviews->fields['reviews_id'] == $rInfo->reviews_id) {
echo ' <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . zen_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=preview') . '\'">' . "\n";
} else {
echo ' <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . zen_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $reviews->fields['reviews_id']) . '\'">' . "\n";
}
?>
<td class="dataTableContent"><?php
echo '<a href="' . zen_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $reviews->fields['reviews_id'] . '&action=preview') . '">' . zen_image(DIR_WS_ICONS . 'preview.gif', ICON_PREVIEW) . '</a> ' . zen_get_products_name($reviews->fields['products_id']);
?>
</td>
<td class="dataTableContent"><?php
echo $reviews->fields['customers_name'];
?>
</td>
<td class="dataTableContent" align="right"><?php
echo zen_image(DIR_WS_TEMPLATE_IMAGES . 'stars_' . $reviews->fields['reviews_rating'] . '.gif');
?>
</td>
<td class="dataTableContent" align="right"><?php
echo zen_date_short($reviews->fields['date_added']);
?>
</td>
<td class="dataTableContent" align="center">
示例9: splitPageResults
</tr>
<?php
$pr_query_raw = "select * from " . TABLE_COUPON_RESTRICT . " where coupon_id = '" . $_GET['cid'] . "' and product_id != '0'";
$pr_split = new splitPageResults($_GET['ppage'], MAX_DISPLAY_RESTRICT_ENTRIES, $pr_query_raw, $pr_query_numrows);
$pr_list = $db->Execute($pr_query_raw);
while (!$pr_list->EOF) {
$rows++;
if (strlen($rows) < 2) {
$rows = '0' . $rows;
}
if ((!$_GET['cid'] || @$_GET['cid'] == $cr_list->fields['restrict_id']) && !$pInfo) {
$pInfo = new objectInfo($pr_list);
}
echo ' <tr class="dataTableRow">' . "\n";
$coupon = $db->Execute("select coupon_name from " . TABLE_COUPONS_DESCRIPTION . " where coupon_id = '" . $_GET['cid'] . "' and language_id = '" . (int) $_SESSION['languages_id'] . "'");
$product_name = zen_get_products_name($pr_list->fields['product_id'], $_SESSION['languages_id']);
?>
<td class="dataTableContent"><?php
echo $_GET['cid'];
?>
</td>
<td class="dataTableContent" align="center"><?php
echo $coupon->fields['coupon_name'];
?>
</td>
<td class="dataTableContent" align="center"><?php
echo $pr_list->fields['product_id'];
?>
</td>
<td class="dataTableContent" align="left"><?php
echo '<strong>' . $product_name . '</strong><br />' . TEXT_CATEGORY . zen_get_categories_name_from_product($pr_list->fields['product_id']) . '<br />' . TEXT_MANUFACTURER . zen_get_products_manufacturers_name($pr_list->fields['product_id']);
示例10: zen_get_products_name
*
* Template used to render attribute display/input fields
*
* @package templateSystem
* @copyright Portions Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: block_hogehoge.php $
*/
$pId = $_GET['products_id'];
if (count($pId)) {
?>
<div id="multi_image_view_thmb" class="centeredContent">
<?php
if (count($multi_images) > 1) {
$img_alt = zen_get_products_name($pId);
$href_title = $img_alt . '(' . zen_get_products_display_price($pId) . ')';
$img_alt = htmlspecialchars(zen_clean_html($img_alt), ENT_QUOTES);
$href_title = htmlspecialchars(zen_clean_html($href_title), ENT_QUOTES);
$thmb_cnt = 1;
$image_cnt = -1;
$str_splt = '';
$pre_url = '';
foreach ($multi_images as $item) {
if ($image_cnt == -1) {
$str_style = 'selected_thmb ';
} else {
$str_style = '';
}
?>
<div class="<?php
示例11: zen_get_products_new_timelimit
<?php
/**
* whats_new sidebox - displays a random "new" product
*
* @package templateSystem
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: whats_new.php 2769 2006-01-02 07:34:58Z drbyte $
*/
// display limits
$display_limit = zen_get_products_new_timelimit();
$random_whats_new_sidebox_product_query = "select p.products_id, p.products_image, p.products_tax_class_id, p.products_price\r\n from " . TABLE_PRODUCTS . " p\r\n where p.products_status = 1 " . $display_limit . "\r\n limit " . MAX_RANDOM_SELECT_NEW;
$random_whats_new_sidebox_product = zen_random_select($random_whats_new_sidebox_product_query);
if ($random_whats_new_sidebox_product->RecordCount() > 0) {
$whats_new_price = zen_get_products_display_price($random_whats_new_sidebox_product->fields['products_id']);
$random_whats_new_sidebox_product->fields['products_name'] = zen_get_products_name($random_whats_new_sidebox_product->fields['products_id']);
$random_whats_new_sidebox_product->fields['specials_new_products_price'] = zen_get_products_special_price($random_whats_new_sidebox_product->fields['products_id']);
require $template->get_template_dir('tpl_whats_new.php', DIR_WS_TEMPLATE, $current_page_base, 'sideboxes') . '/tpl_whats_new.php';
$title = BOX_HEADING_WHATS_NEW;
$title_link = FILENAME_PRODUCTS_NEW;
require $template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base, 'common') . '/' . $column_box_default;
}
示例12: zen_get_products_model
}
});
}
</script>
<?php
echo $html->form('index');
?>
<input type="submit" value="<?php
echo MODULE_EASY_ADMIN_PRODUCTS_LIST;
?>
">
</form>
<div>
<?php
echo TEXT_INFO_ID . $products_id . ' ' . zen_get_products_model($products_id) . ' - ' . zen_get_products_name($products_id);
?>
</div>
<?php
global $zco_notifier;
$zco_notifier->notify('NOTIFY_EASY_ADMIN_PRODUCTS_FINISH_DISPLAY_SEARCH_FORM');
?>
<div class="listBox">
<table border="0" class="tableLayout3" width="100%" cellspacing="0" cellpadding="0">
<?php
require dirname(__FILE__) . '/products_attributes_list.php';
?>
</table>
</div>
示例13: zen_get_products_name
</tr>
<tr>
<td class="infoBoxContent"><br><b><?php
echo HEADING_SUBSCRIPTION_ACTIVE;
?>
:</b> <?php
echo $bis_sub_info['sub_active'] == 1 ? 'Y' : 'N';
?>
</td>
</tr>
<tr>
<td class="infoBoxContent"><br><b><?php
echo HEADING_PRODUCT;
?>
:</b> <?php
echo zen_get_products_name($bis_sub_info['product_id']);
?>
</td>
</tr>
<tr>
<td class="infoBoxContent"><br><b><?php
echo HEADING_CANCEL_W_PURCHASE;
?>
:</b> <?php
echo $bis_sub_info['active_til_purch'] == 1 ? 'Y' : 'N';
?>
</td>
</tr>
<tr>
<td class="infoBoxContent"><br><b><?php
echo HEADING_LAST_SENT;
示例14: array
//if (isset($_GET['products_id']) && SHOW_PRODUCT_INFO_COLUMNS_also_purchased_products_db > 0 && MIN_DISPLAY_ALSO_PURCHASED > 0) {
if (isset($_GET['products_id']) && is_numeric($_GET['products_id']) && SHOW_PRODUCT_INFO_COLUMNS_ALSO_PURCHASED_PRODUCTS > 0 && MIN_DISPLAY_ALSO_PURCHASED > 0) {
//$also_purchased_products_db = $db->Execute(sprintf(SQL_ALSO_PURCHASED, (int)$_GET['products_id'], (int)$_GET['products_id']));
$also_purchased_products_db_sql = ' SELECT p.products_id,
p.products_image
FROM ' . TABLE_ORDERS_PRODUCTS . ' opa,
' . TABLE_ORDERS_PRODUCTS . ' opb,
' . TABLE_ORDERS . ' o,
' . TABLE_PRODUCTS . ' p
WHERE opa.products_id =' . (int) $_GET['products_id'] . '
AND opa.orders_id = opb.orders_id
AND opb.products_id !=' . (int) $_GET['products_id'] . '
AND opb.products_id = p.products_id
AND opb.orders_id = o.orders_id
AND p.products_status =1
GROUP BY p.products_id
ORDER BY o.date_purchased DESC
LIMIT 6 ';
$also_purchased_products = array();
$also_purchased_products_db = $db->Execute($also_purchased_products_db_sql);
$num_products_ordered = $also_purchased_products_db->RecordCount();
// show only when 1 or more and equal to or greater than minimum set in admin
if ($num_products_ordered >= MIN_DISPLAY_ALSO_PURCHASED && $num_products_ordered > 0) {
while (!$also_purchased_products_db->EOF) {
$tmp_id = $also_purchased_products_db->fields['products_id'];
$also_purchased_products[] = array('products_name' => zen_get_products_name($tmp_id), 'products_url_link' => zen_href_link(zen_get_info_page($tmp_id), 'products_id=' . $tmp_id), 'products_image' => $also_purchased_products_db->fields['products_image'], 'products_price' => zen_get_products_display_price($tmp_id));
$also_purchased_products_db->MoveNext();
}
$zc_show_also_purchased = true;
}
}
示例15: getProducts
function getProducts()
{
$this->cleanup();
if (count($this->products) < 1) {
return false;
}
$exclude_products_id = 0;
if (isset($_GET['products_id']) && $_GET['products_id'] > 0) {
$exclude_products_id = (int) $_GET['products_id'];
}
$products = array();
foreach ($this->products as $products_id => $add_date) {
if ($products_id != $exclude_products_id) {
$products[] = array('id' => $products_id, 'add_date' => $add_date, 'name' => zen_get_products_name($products_id), 'display_price' => zen_get_products_display_price($products_id), 'image' => DIR_WS_IMAGES . zen_products_lookup($products_id, 'products_image'), 'url' => zen_href_link(zen_get_info_page($products_id), 'products_id=' . $products_id));
}
if (count($products) >= MODULE_VIEWED_PRODUCTS_MAX_DISPLAY_VIEWED) {
break;
}
}
return $products;
}