Halfpint Posted August 6, 2005 Posted August 6, 2005 Hi, One of my categories has "There are no products to list in this category" which is in a blue bordered box. I would like to know how to remove the blue bordered box and the text. I know the text is defined in catalog/includes/languages/english/index.php define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.'); the url in question is: http://www.a12c4magic.co.uk/index.php?cNam...ory=MTG_Singles
Halfpint Posted August 7, 2005 Author Posted August 7, 2005 Hi, One of my categories has "There are no products to list in this category" which is in a blue bordered box. I would like to know how to remove the blue bordered box and the text. I know the text is defined in catalog/includes/languages/english/index.php define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.'); the url in question is: http://www.a12c4magic.co.uk/index.php?cNam...ory=MTG_Singles <{POST_SNAPBACK}> anyone?
♥Monika in Germany Posted August 7, 2005 Posted August 7, 2005 anyone? <{POST_SNAPBACK}> Hi, easiest is to have an editor that can search all your files in a folder, like Textpad. catalog\includes\modules\product_listing.php the part you do not want to have is right at the bottom. :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...
Halfpint Posted August 7, 2005 Author Posted August 7, 2005 Hi, easiest is to have an editor that can search all your files in a folder, like Textpad. catalog\includes\modules\product_listing.php the part you do not want to have is right at the bottom. <{POST_SNAPBACK}> I found the code for Text No Products, however if I rem out this part 'text' => TEXT_NO_PRODUCTS); it gives me an error code for Text No Products $list_box_contents[0] = array('params' => 'class="productListing-odd"'); $list_box_contents[0][] = array('params' => 'class="productListing-data"', 'text' => TEXT_NO_PRODUCTS);
♥Monika in Germany Posted August 7, 2005 Posted August 7, 2005 I found the code for Text No Products, however if I rem out this part 'text' => TEXT_NO_PRODUCTS); it gives me an error code for Text No Products $list_box_contents[0] = array('params' => 'class="productListing-odd"'); $list_box_contents[0][] = array('params' => 'class="productListing-data"', 'text' => TEXT_NO_PRODUCTS); <{POST_SNAPBACK}> you need to comment out the whole infobox ... everything that is part of the passage when no product is found. :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...
Halfpint Posted August 7, 2005 Author Posted August 7, 2005 you need to comment out the whole infobox ... everything that is part of the passage when no product is found. <{POST_SNAPBACK}> Ok thanks I'm sure I'll figure out which code is part of the infobox :)
♥Monika in Germany Posted August 7, 2005 Posted August 7, 2005 Ok thanks I'm sure I'll figure out which code is part of the infobox :) <{POST_SNAPBACK}> find this: } else { $list_box_contents = array(); $list_box_contents[0] = array('params' => 'class="productListing-odd"'); $list_box_contents[0][] = array('params' => 'class="productListing-data"', 'text' => TEXT_NO_PRODUCTS); new productListingBox($list_box_contents); } replace by this: } /* else { $list_box_contents = array(); $list_box_contents[0] = array('params' => 'class="productListing-odd"'); $list_box_contents[0][] = array('params' => 'class="productListing-data"', 'text' => TEXT_NO_PRODUCTS); new productListingBox($list_box_contents); } */ :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...
Halfpint Posted August 7, 2005 Author Posted August 7, 2005 find this: ?} else { ? ?$list_box_contents = array(); ? ?$list_box_contents[0] = array('params' => 'class="productListing-odd"'); ? ?$list_box_contents[0][] = array('params' => 'class="productListing-data"', ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 'text' => TEXT_NO_PRODUCTS); ? ?new productListingBox($list_box_contents); ?} replace by this: } /* else { $list_box_contents = array(); $list_box_contents[0] = array('params' => 'class="productListing-odd"'); $list_box_contents[0][] = array('params' => 'class="productListing-data"', 'text' => TEXT_NO_PRODUCTS); new productListingBox($list_box_contents); } */ <{POST_SNAPBACK}> That worked thank you so much :)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.