Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

BTSv1.2 Support


paulm2003

Recommended Posts

  • Replies 377
  • Created
  • Last Reply

Top Posters In This Topic

Hi Simon,

 

the other one seemed easy, haven't looked at this one yet.

I don't have much time now, maybe later. But one thing to think of is that the code that is added for the tabs to the top, has to be added to the main_page.tpl.php of your template. Not to any other file, the header and footer code are included in main_page.tpl.php with a standard BTS install.

 

Paul

Link to comment
Share on other sites

I was looking through the BTS files and the instructions say I need to use phpmyadmin to call the sql file.....how the heck do I do that? I suck at using phpadmin and have no idea on how do this. Could someone help me a little here? Thank you very much :)

 

- NeoNiko

Link to comment
Share on other sites

  • 2 weeks later...

I noticed the css fluid file looked fine in ie but not in firefox. the central column was different. margin-right seems to fix this.

 

mainlayout.css

 

div#middleFrame {
position: absolute;
top: 95px;
margin: 0px;
min-height: 500px; /* no go IE */
left: 173px; /* the fluid content is 100% minus these margins wide */
right: 173px;
margin-right:14px;
}

Link to comment
Share on other sites

I noticed the css fluid file looked fine in ie but not in firefox. the central column was different.

That's weird, I installed it many times and allways use FireFox (and/or Mozilla suite), but I never noticed any problem. What do you mean by different?
Link to comment
Share on other sites

Fatal error: Class messagestack: Cannot inherit from undefined class tableboxmessagestack in /home/xxxxxxxxx/shop/includes/classes/message_stack.php on line 20

 

Please help - I recieved this message after installing this mod. What can I do? :blink:

Edited by why_not
Link to comment
Share on other sites

Fatal error: Class messagestack: Cannot inherit from undefined class tableboxmessagestack in /home/xxxxxxxxx/shop/includes/classes/message_stack.php on line 20

 

Please help - I recieved this message after installing this mod. What can I do?  :blink:

That's not a known issue. I think your best option is to re?nstall ms2 and then the BTS.

Link to comment
Share on other sites

box/special.php

this is my box

<?php

/*

 $Id: specials.php,v 1.31 2003/06/09 22:21:03 hpdl Exp $

 modified by paulm_nl 2003/12/23

 osCommerce, Open Source E-Commerce Solutions

 http://www.oscommerce.com



 Copyright (c) 2003 osCommerce



 Released under the GNU General Public License

*/



// BOF Separate Price per Customer
/*  if ($random_product = tep_random_select("select p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_image, s.specials_new_products_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_SPECIALS . " s where p.products_status = '1' and p.products_id = s.products_id and pd.products_id = s.products_id and pd.language_id = '" . (int)$languages_id . "' and s.status = '1' order by s.specials_date_added desc limit " . MAX_RANDOM_SELECT_SPECIALS)) { */

//  global variable (session): $sppc_customers_group_id -> local variable $customer_group_id

 if(!tep_session_is_registered('sppc_customer_group_id')) {
 $customer_group_id = '0';
 } else {
  $customer_group_id = $sppc_customer_group_id;
 }

 if ($customer_group_id == '0')  {
     $random_product = tep_random_select("select p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_image, s.specials_new_products_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_SPECIALS . " s where p.products_status = '1' and p.products_id = s.products_id and pd.products_id = s.products_id and pd.language_id = '" . (int)$languages_id . "' and s.status = '1' and s.customers_group_id = '0' order by s.specials_date_added desc limit " . MAX_RANDOM_SELECT_SPECIALS);
 } else { // $sppc_customer_group_id is in the session variables, so must be set
     $random_product = tep_random_select("select p.products_id, pd.products_name, IF(pg.customers_group_price IS NOT NULL,pg.customers_group_price, p.products_price) as products_price, p.products_tax_class_id, p.products_image, s.specials_new_products_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_SPECIALS . " s LEFT JOIN " . TABLE_PRODUCTS_GROUPS . " pg using (products_id, customers_group_id) where p.products_status = '1' and p.products_id = s.products_id and pd.products_id = s.products_id and pd.language_id = '" . (int)$languages_id . "' and s.status = '1' and s.customers_group_id= '".$customer_group_id."' order by s.specials_date_added desc limit " . MAX_RANDOM_SELECT_SPECIALS);
   }

 if (tep_not_null($random_product)) {
// EOF Separate Price per Customer



 $boxHeading = BOX_HEADING_SPECIALS;

 $corner_left = 'square';

 $corner_right = 'square';

 $boxContent_attributes = ' align="center"';

 $boxLink = '<a href="' . tep_href_link(FILENAME_SPECIALS) . '"><img src="images/infobox/arrow_right.gif" border="0" alt="more" title=" more " width="12" height="10"></a>';

 $box_base_name = 'specials'; // for easy unique box template setup (added BTSv1.2)



 $box_id = $box_base_name . 'Box';  // for CSS styling paulm (editted BTSv1.2)



 $boxContent = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product["products_id"]) . '">' . tep_image(DIR_WS_IMAGES . $random_product['products_image'], $random_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . $random_product['products_name'] . '</a><br><s>' . $currencies->display_price($random_product['products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</s><br><span class="productSpecialPrice">' . $currencies->display_price($random_product['specials_new_products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</span>';





include (bts_select('boxes', $box_base_name)); // BTS 1.5





 $boxLink = '';

 $boxContent_attributes = '';



 }

?>

i must make this:

2.6)	/catalog/includes/boxes/specials.php
(boxes_content if ISM installed)
v 1.31 2003/06/09
------------------------------------------

Modifies Specials InfoBox

AFTER:
   new infoBoxHeading($info_box_contents, false, false, tep_href_link(FILENAME_SPECIALS));

INSERT:

// ADDED for ViewPrice
$products_price = '<s>' . $currencies->display_price($random_product['products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</s><br><span class="productSpecialPrice">' . $currencies->display_price($random_product['specials_new_products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</span>';

       if (PRICES_LOGGED_IN == 'false') {
    	 $product_price_d = $products_price;
    	 }
     if ((PRICES_LOGGED_IN == 'true') && (!tep_session_is_registered('customer_id'))) {
    	 $product_price_d = ('<a href="' . tep_href_link(FILENAME_LOGIN, '','SSL') . '">'  . PRICES_LOGGED_IN_TEXT . '</a> ' );
        }  else  {
    	 $product_price_d = $products_price;
     }
// END ViewPrice


REPLACE:     
                                         'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product["products_id"]) . '">' . tep_image(DIR_WS_IMAGES . $random_product['products_image'], $random_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . $random_product['products_name'] . '</a><br><s>' . $currencies->display_price($random_product['products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</s><br><span class="productSpecialPrice">' . $currencies->display_price($random_product['specials_new_products_price'], tep_get_tax_rate($random_product['products_tax_class_id'])) . '</span>');

WITH:
            'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product["products_id"]) . '">' . tep_image(DIR_WS_IMAGES . $random_product['products_image'], $random_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $random_product['products_id']) . '">' . $random_product['products_name'] . '</a><br>' . $product_price_d);

i have no idea when i make it in the box its work when i am not login,but i make login the box is move/unvisible.

Can you create the box for me ?

Edited by nervens?ge
Link to comment
Share on other sites

Hello has all I found this limps of slipping by and I would like toput it in my bts 1.5

Which can give me a blow of hand? :thumbsup:

 

As HERE

 

Thank you

 

Philippe France

-----------

Bonjour a tous

 

J?ai trouv? cette boite de filante et je voudrais la mettre dans ma bts 1.5

Qui peut me donner un coup de main ? :thumbsup:

 

Comme ICI

 

Merci

Philippe France

 

<tr>
<td>
<?php
$info_box_contents = array();
$info_box_contents[] = array('text' => '<font color="' . $font_color . '">' . BOX_HEADING_WHATS_NEW . '</font>');

new infoBoxHeading($info_box_contents, false, infoBoxHeadingWatsNew, false, false, box_wats_new, tep_href_link(FILENAME_PRODUCTS_NEW, '', 'NONSSL'));

$info_box_contents = array();
$info_box_contents[] = array('align' => 'center',
'text' => '');

new infoBox($info_box_contents, infoBoxContentsWatsNew, infoBoxWatsNew);
?>


<table border="0" width="100%" cellspacing="0" cellpadding="0" class="templateinfoBox">
<tr>
<td align="left" width="5" background="<? echo DIR_WS_TEMPLATES . TEMPLATE_NAME; ?>/images/infobox/thema/4/french/fondbox.gif"></td> 
<td align="center">



<?php 

$newproducts_query_news = "select p.products_id, products_image, products_tax_class_id, products_price, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' and products_status = '1' order by products_date_added desc";
$newproducts_news = new splitPageResults($newproducts_query_news, 10);
$newproducts_query = tep_db_query($newproducts_news->sql_query);

echo "<script>\n"; 

echo "ejs_scroll_largeur = 165\n;ejs_scroll_hauteur = 150;\nejs_scroll_bgcolor = '#f4f4f4';\nejs_scroll_background = '';\nejs_scroll_pause_seconde = 2;\nejs_scroll_message = new Array;\n";
$x=0; 
while ($newproducts = tep_db_fetch_array($newproducts_query)) { 
$row++;

$newproducts['products_name'] = ereg_replace("'","\'", $newproducts['products_name']);

$news = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $newproducts['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $newproducts['products_image'], $newproducts['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><br><a class="infoBoxContents" align="center" href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $newproducts['products_id']) . '">' . $newproducts['products_name'] . '</a><br><span class="smalltext">' . $currencies->display_price($newproducts['products_price'], tep_get_tax_rate($newproducts['products_tax_class_id'])) . '</span>';
echo "ejs_scroll_message[$x]='$news'\n"; 

$x=$x+1;
} 

?>


function d(texte)
{
document.write(texte);
}

d('<DIV ID=ejs_scroll_relativ STYLE="position:relative;width:'+ejs_scroll_largeur+';height:'+ejs_scroll_hauteur+';background-color:'+ejs_scroll_bgcolor+';background-image:url('+ejs_scroll_background+')">');
d('<DIV ID=ejs_scroll_cadre STYLE="position:absolute;width:'+(ejs_scroll_largeur-8)+';height:'+(ejs_scroll_hauteur-8)+';top:4;left:4;clip:rect(0 '+(ejs_scroll_largeur-8)+' '+(ejs_scroll_hauteur-8)+' 0)">');
d('<div id=ejs_scroller_1 style="position:absolute;width:'+(ejs_scroll_largeur-8)+';left:0;top:0;" CLASS=ejs_scroll>'+ejs_scroll_message[0]+'</DIV>');
d('<div id=ejs_scroller_2 style="position:absolute;width:'+(ejs_scroll_largeur-8)+';left:0;top:'+ejs_scroll_hauteur+';" CLASS=ejs_scroll>'+ejs_scroll_message[1]+'</DIV>');
d('</DIV></DIV>');

ejs_scroll_mode =1;
ejs_scroll_actuel = 0;

function ejs_scroll_start()
{
if(ejs_scroll_mode == 1)
{
ejs_scroller_haut = "ejs_scroller_1";
ejs_scroller_bas = "ejs_scroller_2";
ejs_scroll_mode = 0;
}
else
{
ejs_scroller_bas = "ejs_scroller_1";
ejs_scroller_haut = "ejs_scroller_2";
ejs_scroll_mode = 1;
}
ejs_scroll_nb_message = ejs_scroll_message.length-1;
if(ejs_scroll_actuel == ejs_scroll_nb_message)
ejs_scroll_suivant = 0;
else
ejs_scroll_suivant = ejs_scroll_actuel+1;
if(document.getElementById)
document.getElementById(ejs_scroller_bas).innerHTML = ejs_scroll_message[ejs_scroll_suivant];
ejs_scroll_top = 0;
if(document.getElementById)
setTimeout("ejs_scroll_action()",ejs_scroll_pause_seconde*600)
}

function ejs_scroll_action()
{
ejs_scroll_top -= 1;
document.getElementById(ejs_scroller_haut).style.top = ejs_scroll_top;
document.getElementById(ejs_scroller_bas).style.top = ejs_scroll_top+ejs_scroll_hauteur;
if((ejs_scroll_top+ejs_scroll_hauteur) > 0)
setTimeout("ejs_scroll_action()",10)
else
ejs_scroll_stop()
}

function ejs_scroll_stop()
{
ejs_scroll_actuel = ejs_scroll_suivant;
ejs_scroll_start()
}
window.onload = ejs_scroll_start;
</script>

</td>
<td>
<td width="5" background="<? echo DIR_WS_TEMPLATES . TEMPLATE_NAME; ?>/images/infobox/thema/4/french/fondbox.gif">
</td>
</tr>
</table>


<?php
$info_box_contents = array();
$info_box_contents[] = array('align' => 'left',
'text' => tep_draw_separator('pixel_trans.gif', '100%', '1')
);
new infoBoxHeading($info_box_contents, bas, infoBoxHeadingWatsNew);
?>

</td></tr>

IEUFLR2000

Link to comment
Share on other sites

  • 1 month later...

Hi there, does anyone know of a way to use different template pages for different index'es ? For example, if index_default needs to use template 1. and index_nested needs to use template 2 and index_products needs to use template 3.........

Link to comment
Share on other sites

I was looking through the BTS files and the instructions say I need to use phpmyadmin to call the sql file.....how the heck do I do that? I suck at using phpadmin and have no idea on how do this. Could someone help me a little here? Thank you very much :)

 

- NeoNiko

 

Hi, Paul or Anybody who can helps me with this beginning problem,

 

I am new on OSCommerce. So could anybody experienced my problems, please help me. :(

 

I still don't know how to load the BTS.sql file, can you tell me how you figured it out?

 

Thank you very much! ;)

 

Yen

Link to comment
Share on other sites

Hi there, does anyone know of a way to use different template pages for different index'es ? For example, if index_default needs to use template 1. and index_nested needs to use template 2 and index_products needs to use template 3.........

Hi Christina, are you still looking for a solution for this? Would being able to style each of those pages individually using CSS do too? (you can change allmost everything through the stylesheet ...... if your template is setup right).

 

@yenju and other not knowing how to add sql data to their database:

I think explaining how to add the sql would not be something for this BTS support thread. It is really very simple (it's more difficult to explain than to use), maybe you should search google (or this board) for "phpMyAdmin" or "phpMyAdmin tutorial", other ask your host about it.

Edited by PandA.nl
Link to comment
Share on other sites

  • 3 weeks later...
never mind i figured it out

Thanks for telling, but the idea is that if you find someting out that you asked here, that you post *how* you did it. Else we get the same unanswered questions again and again :(
Link to comment
Share on other sites

hi,

 

i wanted to edit the content boxes at the middle (includes/new_products.php), so i added in the templates/fallback dir includes/new_products.tpl.php but it didn't use it at all. How do i modify the template for that ?

Link to comment
Share on other sites

i wanted to edit the content boxes at the middle (includes/new_products.php), so i added in the templates/fallback dir includes/new_products.tpl.php but it didn't use it at all. How do i modify the template for that ?

I am afraid there's no template for that kind of boxes (the middle content boxes). You may assign it a css class and/or id (i.e. wrap a div around the box with class/id) and change colors, font-seizes and and borders and such trough the stylesheet. Or you will need to hack the box class (inludes/classes/boxes.php) if you need to make bigger changes.
Link to comment
Share on other sites

I am afraid there's no template for that kind of boxes (the middle content boxes). You may assign it a css class and/or id (i.e. wrap a div around the box with class/id) and change colors, font-seizes and and borders and such trough the stylesheet. Or you will need to hack the box class (inludes/classes/boxes.php) if you need to make bigger changes.

 

oh ic...

 

Yep ive seen it , i just thought that that part is covered.

 

Tnx any way and great contribution

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 months later...

Hey.

 

I have BTS 1.5f installed and I also have Image Catalog 1.33. I installed the image catalog prior to installing BTS. But I was wondering if there was anyway I could make the multiple images appear in the BTS skins or am I out of luck there? Thanks

Link to comment
Share on other sites

Anyone? I cant even find the damn file where I should stick the multiple image code! I looked through the database thinking maybe thats where the information was stored but not even there... Where the heck did all the Product_info information go?

Link to comment
Share on other sites

hiya..... i'm looking at your BTS contribution, and it looks to be a great system - just what i need....

 

but i am not running the new version of OSC (2.2).

 

i have the first version, thats heavily modified....

 

i had a look at the files for the BTS (latest version) and it seems that the files in the catalog/ root only have the php code in it.

 

the layout code is in the includes/javascript/ and the templates/ root.

 

am i correct to assume that for me to be able to use this code i would need to remove all standard html code from my pages - but leave the php coding in it?

 

then i would have to compare the bts catalog/ files with mine - and add the instances of include (bts_select('main', $content_template)); // BTSv1.5 thats for the BTS system?

 

it would seem that i have a lot of work to do - but if i am to keep my existing code & functionality - this would seem to be the only way to go?

 

would you perhaps have any other advice for me?

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