コード例 #1
0
     $the_button = $link;
     $products_link = '<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>';
     $display_products_button = zen_get_buy_now_button($products_all->fields['products_id'], $the_button, $products_link) . zen_get_products_quantity_min_units_display($products_all->fields['products_id']) . str_repeat('', substr(PRODUCT_ALL_BUY_NOW, 3, 1));
 }
 if (PRODUCT_ALL_LIST_DESCRIPTION > '0') {
     $disp_text = zen_get_products_description($products_all->fields['products_id']);
     $disp_text = zen_clean_html($disp_text);
     $display_products_description = stripslashes(zen_trunc_string($disp_text, PRODUCT_ALL_LIST_DESCRIPTION));
 } else {
     $display_products_description = '';
 }
 $get_discount_prod = mb_discount_product($products_all->fields['products_id']);
 if (mb_featured_product($products_all->fields['products_id']) == 1) {
     $ribbon = "<div class='tag tag-orange' title=''><div class='text'>HOT</div></div>";
 } else {
     if (mb_special_product($products_all->fields['products_id']) == 1) {
         $ribbon = "<div class='tag tag-orange' title=''><div class='text'>SALE</div></div>";
     } else {
         if (mb_new_product($products_all->fields['products_id']) == 1) {
             $ribbon = "<div class='tag tag-blue' title=''><div class='text'>NEW</div></div>";
         } else {
         }
     }
 }
 $pid = $products_all->fields['products_id'];
 $product_attribute_query = "select distinct products_id from " . TABLE_PRODUCTS_ATTRIBUTES . " where products_id='{$pid}'";
 $product_attribute_query_result = $db->Execute($product_attribute_query);
 $attribute_product = $product_attribute_query_result->fields['products_id'];
 /* Begin gridview */
 /*Wishlist Links*/
 if (UN_MODULE_WISHLISTS_ENABLED) {
コード例 #2
0
     $the_button = $link;
     $products_link = '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'cPath=' . zen_get_generated_category_path_rev($featured_products->fields['master_categories_id']) . '&products_id=' . $featured_products->fields['products_id']) . '"></a>';
     $display_products_button = zen_get_buy_now_button($featured_products->fields['products_id'], $the_button, $products_link) . zen_get_products_quantity_min_units_display($featured_products->fields['products_id']) . str_repeat('', substr(PRODUCT_FEATURED_BUY_NOW, 3, 1));
 }
 if (PRODUCT_FEATURED_LIST_DESCRIPTION > '0') {
     $disp_text = zen_get_products_description($featured_products->fields['products_id']);
     $disp_text = zen_clean_html($disp_text);
     $display_products_description = stripslashes(zen_trunc_string($disp_text, PRODUCT_FEATURED_LIST_DESCRIPTION));
 } else {
     $display_products_description = '';
 }
 $get_discount_prod = mb_discount_product($featured_products->fields['products_id']);
 if (mb_featured_product($featured_products->fields['products_id']) == 1) {
     $ribbon = "<div class='tag tag-orange' title=''><div class='text'>HOT</div></div>";
 } else {
     if (mb_special_product($featured_products->fields['products_id']) == 1) {
         $ribbon = "<div class='tag tag-orange' title=''><div class='text'>SALE</div></div>";
     } else {
         if (mb_new_product($featured_products->fields['products_id']) == 1) {
             $ribbon = "<div class='tag tag-blue' title=''><div class='text'>NEW</div></div>";
         } else {
         }
     }
 }
 $pid = $featured_products->fields['products_id'];
 $product_attribute_query = "select distinct products_id from " . TABLE_PRODUCTS_ATTRIBUTES . " where products_id='{$pid}'";
 $product_attribute_query_result = $db->Execute($product_attribute_query);
 $attribute_product = $product_attribute_query_result->fields['products_id'];
 /*Wishlist Links*/
 if (UN_MODULE_WISHLISTS_ENABLED) {
     $wishlist_link = '<a class="lnk" href="' . zen_href_link(UN_FILENAME_WISHLIST, 'products_id=' . $featured_products->fields['products_id'] . '&action=wishlist_add_product') . '"><i class="fa fa-heart"></i>Wishlist</a>';
コード例 #3
0
            //To Display Product Desc
            if (UN_MODULE_WISHLISTS_ENABLED) {
                $wishlist_link = zen_href_link(UN_FILENAME_WISHLIST, 'products_id=' . $specials->fields['products_id'] . '&action=wishlist_add_product');
            } else {
                $wishlist_link = '';
            }
            $compare_link = 'javascript: compareNew(' . $specials->fields['products_id'] . ', \'add\')';
            $buy_now = zen_get_buy_now_button($specials->fields['products_id'], '');
            if ($buy_now != NULL) {
                $buy_now = '<a title="Sold Out" class="detailbutton-wrapper add-to-cart" href="' . zen_href_link(zen_get_info_page($specials->fields['products_id']), 'cPath=' . $productsInCategory[$new_products->fields['products_id']] . '&products_id=' . $specials->fields['products_id']) . '"><i class="fa fa-ban fa-lg"></i></a>';
            } elseif ($attribute_product == $pid) {
                $buy_now = '<a title="Add to Cart" class="detailbutton-wrapper add-to-cart" href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $specials->fields['products_id']) . '"><i class="fa fa-shopping-cart fa-lg"></i></a>';
            } else {
                $buy_now = '<a title="Add to Cart" class="detailbutton-wrapper add-to-cart" href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $specials->fields['products_id']) . '"><i class="fa fa-shopping-cart fa-lg"></i></a>';
            }
            if (mb_special_product($specials->fields['products_id']) == 1) {
                $ribbon = "<div class='tag tag-orange' title=''><div class='text'>SALE</div></div>";
            } else {
            }
            //$specials->fields['products_name'] = zen_get_products_name($specials->fields['products_id']);
            $list_box_contents[$row][$col] = array('params' => 'class="specialsListBoxContents"', 'text' => '
	<div class="product">
		<div class="product-thumbnail">
			<div class="product-thumbnail-image">
				<a href="' . zen_href_link(zen_get_info_page($specials->fields['products_id']), 'cPath=' . $productsInCategory[$new_products->fields['products_id']] . '&products_id=' . $specials->fields['products_id']) . '">
					' . zen_image(DIR_WS_IMAGES . $specials->fields['products_image'], $specials->fields['products_name'], IMAGE_PRODUCT_LISTING_WIDTH, IMAGE_PRODUCT_LISTING_HEIGHT) . '
				</a>
			
				<div class="product-thumbnail-buttons">
				
					<div class="add_to_cart_link buttons">
コード例 #4
0
                     $product_img_src = mb_getbaseimg_effects($listing->fields['products_image']);
                     $second_img_src = mb_gethoverimg_effects($listing->fields['products_image']);
                     $product_img = zen_image(DIR_WS_IMAGES . $listing->fields['products_image'], $products_name, IMAGE_PRODUCT_LISTING_WIDTH, IMAGE_PRODUCT_LISTING_HEIGHT);
                 }
             }
             break;
     }
     $product_contents[] = $lc_text;
     // Used For Column Layout (Grid Layout) Option
     $listview_product_contents[] = $lst_lc_text;
 }
 $get_discount_prod = mb_discount_product($listing->fields['products_id']);
 if (mb_featured_product($listing->fields['products_id']) == 1) {
     $ribbon = "<div class='tag tag-orange' title=''><div class='text'>HOT</div></div>";
 } else {
     if (mb_special_product($listing->fields['products_id']) == 1) {
         $ribbon = "<div class='tag tag-orange' title=''><div class='text'>SALE</div></div>";
     } else {
         if (mb_new_product($listing->fields['products_id']) == 1) {
             $ribbon = "<div class='tag tag-blue' title=''><div class='text'>NEW</div></div>";
         } else {
         }
     }
 }
 $pid = $listing->fields['products_id'];
 $product_attribute_query = "select distinct products_id from " . TABLE_PRODUCTS_ATTRIBUTES . " where products_id='{$pid}'";
 $product_attribute_query_result = $db->Execute($product_attribute_query);
 $attribute_product = $product_attribute_query_result->fields['products_id'];
 $display_products_model = TEXT_PRODUCTS_MODEL . $listing->fields['products_model'] . str_repeat('', substr(PRODUCT_ALL_LIST_MODEL, 3, 1));
 /* Begin gridview */
 /*Wishlist Links*/