Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse Error with Account


ufa57

Recommended Posts

I've installed a Login Box contribution, and it's mostly working except I get this error message:

 

Fatal error: Call to undefined function: tep_box_greeting_top() in /home/natural/public_html/store/includes/boxes/loginbox.php on line 108

 

Fatal error: Call to undefined function: tep_box_greeting_top() in /home/natural/public_html/store/includes/boxes/loginbox.php on line 37

 

They both call the same function.

 

How do I go about defining this function so it actually works?

 

Here's a part of the code that's in the general file that's related to the installation of this box.

// Return a loginbox infobox customer greeting top

  function tep_box_greeting_top() {

    global $customer_id, $customer_first_name;

 

    if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) {

      $greeting_box_top_string = sprintf(BOX_GREETING_TOP_PERSONAL, $customer_first_name, tep_href_link(FILENAME_PRODUCTS_NEW, '', 'NONSSL'));

    } else {

      $greeting_box_top_string = sprintf(BOX_GREETING_TOP_GUEST, tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));

    }

 

    return $greeting_box_top_string;

  }

 

////

// Return a loginbox infobox customer greeting bottom

  function tep_box_greeting_bottom() {

    global $customer_id, $customer_first_name;

 

    if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) {

      $greeting_box_bottom_string = sprintf(BOX_GREETING_BOTTOM_PERSONAL, $customer_first_name, tep_href_link(FILENAME_PRODUCTS_NEW, '', 'NONSSL'));

    } else {

      $greeting_box_bottom_string = sprintf(BOX_GREETING_BOTTOM_GUEST, tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));

    }

 

    return $greeting_box_bottom_string;

  }

 

Thanks in advance.

 

My store

Link to comment
Share on other sites

Install the file includes/languages/english/loginbox.php that comes with the contribution. Also, use the ReadMe.txt file that comes with the contribution.

 

Vger

Link to comment
Share on other sites

Install the file includes/languages/english/loginbox.php that comes with the contribution.  Also, use the ReadMe.txt file that comes with the contribution.

 

Vger

 

 

I have installed the loginbox.php and used the ReadMe.txt.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...