travellikesound Posted March 13, 2008 Posted March 13, 2008 I just installed this mod: Column product listing (http://addons.oscommerce.com/info/825) to make my products show up in 3 columns rather than in a list. It looks fine, except for now it lists the price twice under the product. I tried just getting rid of the price in the admin panel, but then the product name shows up twice, looking even more tacky. I tried just moving around the order of things, but there is always something that show up twice. I would like to still have the price listed, but only once. Here is what it looks like: http://www.punkbabyclothes.net/shop/index.php?cPath=54 If i need to post sections of my code here i can, i'm just not sure what I'd even need to post. Thanks
travellikesound Posted March 13, 2008 Author Posted March 13, 2008 I think this might be where the problem is, but i'm not exactly sure and I wouldn't know how to change it. includes/modules/product_listing.php: switch ($column_list[$col]) { case 'PRODUCT_LIST_MODEL': $lc_align = ''; $lc_text = ' ' . $listing['products_model'] . ' '; break; case 'PRODUCT_LIST_NAME': $lc_align = ''; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>'; } else { $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a> '; } break; case 'PRODUCT_LIST_MANUFACTURER': $lc_align = ''; $lc_text = ' <a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing['manufacturers_id']) . '">' . $listing['manufacturers_name'] . '</a> '; break; case 'PRODUCT_LIST_PRICE': $lc_align = 'right'; if (tep_not_null($listing['specials_new_products_price'])) { $lc_text = ' <s>' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span> '; } else { $lc_text = ' ' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . ' '; } break; case 'PRODUCT_LIST_QUANTITY': $lc_align = 'right'; $lc_text = ' ' . $listing['products_quantity'] . ' '; break; case 'PRODUCT_LIST_WEIGHT': $lc_align = 'right'; $lc_text = ' ' . $listing['products_weight'] . ' '; break; case 'PRODUCT_LIST_IMAGE': $lc_align = 'center'; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; } else { $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a> '; } break; case 'PRODUCT_LIST_BUY_NOW': $lc_align = 'center'; $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; break; }
arietis Posted March 29, 2008 Posted March 29, 2008 Anyone? i think it's displaying the price and the 'special price' -- you might try editing your specials. if these are the same it's not really a special anyway... and right now it looks like your whole site is down, i get the errors: Warning: main(includes/languages/.php) [function.main]: failed to open stream: No such file or directory in /home/punkbaby/public_html/shop/includes/application_top.php on line 285 Warning: main(includes/languages/.php) [function.main]: failed to open stream: No such file or directory in /home/punkbaby/public_html/shop/includes/application_top.php on line 285 Warning: main(includes/languages/.php) [function.main]: failed to open stream: No such file or directory in /home/punkbaby/public_html/shop/includes/application_top.php on line 285 Fatal error: main() [function.require]: Failed opening required 'includes/languages/.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/punkbaby/public_html/shop/includes/application_top.php on line 285 i posted a quick and dirty fix that might resolve this language issue for you. look for a recent post regarding language and english and you can probably find it.
travellikesound Posted March 29, 2008 Author Posted March 29, 2008 I'm in the middle of fixing those errors now. I was in the middle of making changed yesterday and lost internet halfway through reuploading the site. I don't think it's a problem with special prices, since if i remove the price from that view then the product name shows up twice.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.