Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Specials box not showing at all...


rerbe

Recommended Posts

Hi all.

 

I have a wierd problem, the specials box is not showing but the tell a friend is when you go into a products page (I believe these two swap over depending on what page is viewed).

 

I have STS installed.

 

Can anyone advise..

 

Cheers

 

Richard :blink:

The solution is never too far away ...

Link to comment
Share on other sites

 ?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');
?}

 

This tells your osc store to display EITHER tell a friend or specials - if you want specials displayed on every page, just change it to

 ?if (isset($HTTP_GET_VARS['products_id'])) {
? ?if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php');
?} 
? ?include(DIR_WS_BOXES . 'specials.php');
?

 

So that tell a friend only shows on product pages while specials show site wide.

 

(Sorry, this is in column_right.php - coding may be slightly different for sts, think you will find the same or similar code in your sts files in the includes folder somewhere)

Please note - if I have suggested a contrib above, it doesnt mean it will work! Most of the contribs are not ones I've used, but may be useful for your particular problem....

Have you tried a refined search? Chances are your problem has already been dealt with elsewhere on the forums.....

if (stumped == true) {

return(square_one($start_over)

} else {

$random_query = tep_fetch_answer($forum_query)

}

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...