Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Tell-A-Friend


Car Care Direct

Recommended Posts

Good Afternoon All,

 

I am very new to osCommerce and am struggling on some very basic things

 

How do i get the Tell-A-Friend and Specials boxes to show up on my site.

 

All the files seem to be there but what activates them.

 

Regards

 

Dave

Link to comment
Share on other sites

Are you using a template?? Normally templates tend to hide these in the code by commenting them out...otherwise if its a standard osCommerce install these features are displayed in column_left or column_right.php (in /catalog/includes/ directory)

Link to comment
Share on other sites

Are you using a template?? Normally templates tend to hide these in the code by commenting them out...otherwise if its a standard osCommerce install these features are displayed in column_left or column_right.php (in /catalog/includes/ directory)

 

 

They look to be setup in the right column

 

 

Released under the GNU General Public License

*/

 

// START STS 4.3.2

if ($sts->display_template_output) {

$sts->restart_capture ('content');

} else {

//END STS 4.3.2

require(DIR_WS_BOXES . 'shopping_cart.php');

 

if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php');

 

if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php');

 

if (isset($HTTP_GET_VARS['products_id'])) {

if (tep_session_is_registered('customer_id')) {

$check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "' and global_product_notifications = '1'");

$check = tep_db_fetch_array($check_query);

if ($check['count'] > 0) {

include(DIR_WS_BOXES . 'best_sellers.php');

} else {

include(DIR_WS_BOXES . 'product_notifications.php');

}

} else {

include(DIR_WS_BOXES . 'product_notifications.php');

}

} else {

include(DIR_WS_BOXES . 'best_sellers.php');

}

 

if (isset($HTTP_GET_VARS['products_id'])) {

if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php');

} else {

include(DIR_WS_BOXES . 'specials.php');

}

 

require(DIR_WS_BOXES . 'reviews.php');

 

if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {

include(DIR_WS_BOXES . 'languages.php');

include(DIR_WS_BOXES . 'currencies.php');

}

// START STS 4.3.2

}

// END STS 4.3.2

?>

Link to comment
Share on other sites

Just a wild guess, but from this code:

 

// START STS 4.3.2

if ($sts->display_template_output) {

$sts->restart_capture ('content');

} else {

I'd think you may need to edit your STS template somewhere...

:blush:

 

Just what sLaV alluded to:

 

Are you using a template??

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Just a wild guess, but from this code:

 

 

I'd think you may need to edit your STS template somewhere...

:blush:

 

Just what sLaV alluded to:

 

I am so new to this i haven't a clue how it is set-up

 

My web guy has ditched me for a bigger/better paying job before finishing my site.

 

So i will have to finish the site off myself.

 

Regards

Dave

Link to comment
Share on other sites

I am so new to this i haven't a clue how it is set-up

 

My web guy has ditched me for a bigger/better paying job before finishing my site.

 

So i will have to finish the site off myself.

 

Regards

Dave

 

Ok i am using templates by the looks of things

 

<?php DEFINE ('STS_END_CHAR', '#'); ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

<html $htmlparams>

 

<head>

<!--$headcontent-->

<?php require('includes/header_tags.php'); ?>

<link rel="stylesheet" type="text/css" href="stylesheet.css">

</head>

<body>

<div id="container">

<div id="logo">$cataloglogo#</div>

<div id="main">

<div id="leftmenu" class="leftmenu">

 

$categorybox#<br />

$manufacturerbox#<br />

$searchbox#<br />

$informationbox#<br />

</div>

<div id="centrearea"> $breadcrumbs#

 

<br/ >

<p>$content#</p>

 

<p>

 

$maninfobox#

 

</p>

 

 

 

 

</div>

<div id="rightmenu">

<div class="infoBoxDiv">$whatsnewbox#</div><br /><br />

 

<div class="infoBoxDiv">$cartbox#</div>

 

</div>

<br />

 

 

</div>

 

<div align="center"><font face="Arial, Helvetica, sans-serif"

size="1">$banner_only#</font></div><br />

<img src="images/bottom.jpg" alt="car care bottom" />

</div>

</body>

</html>

Link to comment
Share on other sites

Personally, I haven't a clue how STS works.

 

In the Contributions -> Templates and Images forum here there are support threads for STS.

 

I'd look there.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...