Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

STS 2.1 + Loginbox_Best


Ankoor

Recommended Posts

HI all

i use for my shop MS2 and Simple Template System and i want add login box_best .But i cant see login box in sts_template.html.

 

my operation:

 

open column_right.php and add "// BOF: WebMakers Added: Login Box My Account

$sts_block_name = 'loginbox';"

@this point i have include: require(STS_RESTART_CAPTURE);

but dont work

 

 

insert in english.php the line "// LoginBox Text

require(DIR_WS_LANGUAGES . $language . '/' . 'loginbox.php');"

 

 

insert in "functions/general.php"

 

ADD GREETING FUNCTION:

Search for "greeting_string" in /catalog/includes/functions/general.php

 

add following code beneath that function

 

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

}

 

 

open sts_template.html and insert this "$loginbox"

 

BUT the page send me this output :

 

$LOGINBOX.

 

in dont undestend...other box working great but this contrib dont work.

 

thank all ANKOOR(sorry 4 my language :P)

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