Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Conditional Statements


EPStore

Recommended Posts

Hey guys,

 

I'm trying to use conditional statements so that I would have a box show only in one page of my shop (and not the others).

The box is the Articles box from the Article Manager contribution. And the page is specials.php.

So, what I did is put this code at the top of includes/modules/boxes/bm_articles.php:

 

if (basename($_SERVER['PHP_SELF']) == FILENAME_SPECIALS){

I also put the } at the end to close it.

Now, when I try to access specials.php everything looks fine on my shop side... But when I try to enter ANY other page, I get this error:

Fatal error: Class 'bm_articles' not found in C:\wamp\www\MyStore\includes\classes\osc_template.php on line 90

 

Any ideas?

 

(btw, I'm using ver 2.3.1)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...