Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

There are no products to list in this category


Halfpint

Recommended Posts

Posted

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

Posted
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

 

 

anyone?

Posted

 

 

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 ...

Posted
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.

 

 

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);

Posted
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);

 

 

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 ...

Posted
you need to comment out the whole infobox ... everything that is part of the passage when no product is found.

 

Ok thanks I'm sure I'll figure out which code is part of the infobox :)

Posted
Ok thanks I'm sure I'll figure out which code is part of the infobox :)

 

 

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 ...

Posted
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);

  }

*/

 

 

That worked thank you so much :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...