$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)); } else { $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>'; $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'];
$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); } else { $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'];