Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Installation Infobox Coming Soon by Month


Guest

Recommended Posts

Can someone help me? I've just uploaded this contribution and it puts my stuff in the what's new infobox, but distorts my left column by taking up my whole page and gives me this error at the bottom of the page

 

Fatal error: Call to undefined function: tep_month() in/mnt/web_k/d09/s01/a00091qk/www/MyStore1/nfoscomm/catalog/includes/boxes/products_by_mon.php on line 37

 

<?php

   $info_box_contents = array();
   $info_box_contents[] = array('align' => 'left',
                                'text'  => BOX_HEADING_PRODUCTS_BY_MON
                               );
   new infoBoxHeading($info_box_contents, false, false);

  /* Get Today's Date */

$month = date("m");
/*  $thismonth  = date("F"); */

$next1 = ($month + 1);
if ($next1 > 12) {
 $next1 = $next1-12;
 $year_id1 = date("Y")+1;
}
//In my code this is line 37//
$next1month  = (tep_month ($next1));

$next2 = ($month + 2);
if ($next2 > 12) {
 $next2 = $next2-12;
 $year_id2 = date("Y")+1;
}
$next2month  = (tep_month ($next2));

$next3 = ($month + 3);
if ($next3 > 12) {
 $next3 = $next3-12;
 $year_id3 = Date("Y")+1;
}
$next3month = (tep_month ($next3));

 

 

I've obviously added a few more line so you can get your bearings. The weird thing is that this is the downloaded file, no changes have been made to this file, so I'm not sure why it would not be working...Any ideas?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...