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![]()
I was able to turn this into a link, but can't figure out why it won't go to the manufacturers page.
Any ideas?Code:$products_manufacturer ='<a href="' . zen_href_link(FILENAME_DEFAULT,'manufacturers_id=' . $new_products->fields['manufacturers_id']). '">' . zen_get_products_manufacturers_name($new_products->fields['products_id']) . '</a>'
Thank you,
Ladybugmom
hi
i know this is probably the wrong thread but would somebody be so kind as to help?
My supplier gave me a csv but with no manufacturer name in a separate field and is being a pain in supplying csv's with them! What i would like to do is either show the manufacturers' names above every image and title.
or if that's not possible, one or the other would also be great. Thank you in advance
On what page(s)?