How to remove price and add manufacturer name in feature (or new) products centerbox?
How to remove price and add manufacturer name in feature (or new) products centerbox?
You can find this under admin->configuration->Featured Listing/New Listing
http://www.customscripts.co.za - Custom development for open-source applications
http://www.pcservice.co.za - Website Development, Domain Registration, Hosting
I mean centerbox not listing page. I know where I have to make changes (/includes/modules/featured_products.php) but I don't know how.
This code should be changed, am I right? But how??
Code:while (!$featured_products->EOF) { $products_price = zen_get_products_display_price($featured_products->fields['products_id']); $list_box_contents[$row][$col] = array('params' =>'class="centerBoxContentsFeatured centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"', 'text' => (($featured_products->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'products_id=' . $featured_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $featured_products->fields['products_image'], $featured_products->fields['products_name'], IMAGE_FEATURED_PRODUCTS_LISTING_WIDTH, IMAGE_FEATURED_PRODUCTS_LISTING_HEIGHT) . '</a><br />') . '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'products_id=' . $featured_products->fields['products_id']) . '">' . $featured_products->fields['products_name'] . '</a><br />' . $products_price); $col ++; if ($col > (SHOW_PRODUCT_INFO_COLUMNS_FEATURED_PRODUCTS - 1)) { $col = 0; $row ++; } $featured_products->MoveNextRandom(); }
change that section of code you posted to this:
then save the edited file as includes/modules/your_template/featured_products.phpCode:while (!$featured_products->EOF) { $products_manufacturer = zen_get_products_manufacturers_name($featured_products->fields['products_id']); $list_box_contents[$row][$col] = array('params' =>'class="centerBoxContentsFeatured centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"', 'text' => (($featured_products->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'products_id=' . $featured_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $featured_products->fields['products_image'], $featured_products->fields['products_name'], IMAGE_FEATURED_PRODUCTS_LISTING_WIDTH, IMAGE_FEATURED_PRODUCTS_LISTING_HEIGHT) . '</a><br />') . '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'products_id=' . $featured_products->fields['products_id']) . '">' . $featured_products->fields['products_name'] . '</a><br />' . $products_manufacturer); $col ++; if ($col > (SHOW_PRODUCT_INFO_COLUMNS_FEATURED_PRODUCTS - 1)) { $col = 0; $row ++; } $featured_products->MoveNextRandom(); }
Neville
An assumption is what you arrive at when you get tired of thinking...
it works excellent,
thanks a lot! you're great! ...ZEN CART too :)
First time I heard about ZC month ago, now my gallery is almost done! super, zajebiscie :)
polishartgallery.eu
log: testy
pas: testy
(temporarily)
Does anyone know how to change the manufacturers name in this so that the manufacturers name is a link to the manufacturers products? I can't seem to make it work.
I have got the name there, but need it to be a link.Code:while (!$featured_products->EOF) { $products_manufacturer = zen_get_products_manufacturers_name($featured_products->fields['products_id']); $list_box_contents[$row][$col] = array('params' =>'class="centerBoxContentsFeatured centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"', 'text' => (($featured_products->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'products_id=' . $featured_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $featured_products->fields['products_image'], $featured_products->fields['products_name'], IMAGE_FEATURED_PRODUCTS_LISTING_WIDTH, IMAGE_FEATURED_PRODUCTS_LISTING_HEIGHT) . '</a><br />') . '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'products_id=' . $featured_products->fields['products_id']) . '">' . $featured_products->fields['products_name'] . '</a><br />' . $products_manufacturer); $col ++; if ($col > (SHOW_PRODUCT_INFO_COLUMNS_FEATURED_PRODUCTS - 1)) { $col = 0; $row ++; } $featured_products->MoveNextRandom(); }
Thanks for any help,
Ladybugmom![]()