Tidbeck Posted September 13, 2011 Posted September 13, 2011 Wondering what file and how to edit so that the product prices dont show up on the main page under what's new for the month. I want the customer to have to click to the product detail page for price info. A button there that links to the product detail page would be best. thanks
hughesca Posted September 13, 2011 Posted September 13, 2011 Hello again. ;) The file you are looking for would be in /catalog/includes/modules/new_products.php On a stock install, around line 33 you will see: $new_prods_content .= '<td width="33%" align="center" valign="top"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br /><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a><br />' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])) . '</td>'; Delete the following: . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])) Make sure to leave the . '</td>'; at the end though. Viola, price is gone. ;) Hope that helps! Peace, Chris
Tidbeck Posted September 14, 2011 Author Posted September 14, 2011 Thanks for the help! my php looks a bit differen though, not sure if it is that i have ver 2.2 i tried a few different ways but no luck here is the code around that section in the new_product.php $info_box_contents = array(); while ($new_products = tep_db_fetch_array($new_products_query)) { $info_box_contents[$row][$col] = array('align' => 'center', 'params' => 'class="smallText" width="33%" valign="top"', 'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) . '">' . $new_products['products_name'] . '</a><br>' . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id']))); $col ++; if ($col > 2) { $col = 0; $row ++; } }
hughesca Posted September 14, 2011 Posted September 14, 2011 Try deleting this: . $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id']
Tidbeck Posted September 14, 2011 Author Posted September 14, 2011 then i get this error Parse error: syntax error, unexpected ')' in /home2/myownart/public_html/includes/modules/new_products.php on line 32
Tidbeck Posted September 14, 2011 Author Posted September 14, 2011 Got it to work! by leaving </a><br>' ); at the end! Thank you for your help!!!!!!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.