Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Tab Menu Section (TMS) and Pronux TMS For Admin Support Thread


Pronux

Recommended Posts

 

Hi Pronux

Thanks for the reply. It worked almost! I had to add Output a jQuery UI Button to \includes\functions\html_output.php and then it worked.

Link to comment
Share on other sites

Hello,

thanks for the contribution, really great job.

I've installed it successfully and almost everything works fine.

 

Almost because: I have a polish language store encoded in UTF8 and I have a problem with special chars like ę ó ą ś ł ż ź ć ń etc. In the content it shows it correctly but in the title of a (for example 3rd) tab it shows something like that (it should be 'Dostępność'):

 

printscreenp.jpg

 

When I encode special chars in utf8 ( ex. ę -> ę ; ) it will show ę ; instead of ę.

 

Please help.

Link to comment
Share on other sites

Hello,

thanks for the contribution, really great job.

I've installed it successfully and almost everything works fine.

 

Almost because: I have a polish language store encoded in UTF8 and I have a problem with special chars like ę ó ą ś ł ż ź ć ń etc. In the content it shows it correctly but in the title of a (for example 3rd) tab it shows something like that (it should be 'Dostępność'):

 

printscreenp.jpg

 

When I encode special chars in utf8 ( ex. ę -> ę ; ) it will show ę ; instead of ę.

 

Please help.

 

try htmlentities('your string with ę ó ą ś ł ż ź ć ń etc')

Specialist in end-to-end integration between osCommerce and Microsoft Dynamics NAV ERP System

About Pronux | Pronux Contributions and Add-Ons

Link to comment
Share on other sites

Thank you for replying.

 

It still doesn't work.

Any other advices?

 

 

It should work. Can you post the generated HTML-Code for this text.

 

What does it looks like if you make echo('ę ó ą ś ł ż ź ć ń'); in products_info.php before:

 

//PRONUX TMS START
include DIR_WS_INCLUDES.'TMS/Conf.php';

Specialist in end-to-end integration between osCommerce and Microsoft Dynamics NAV ERP System

About Pronux | Pronux Contributions and Add-Ons

Link to comment
Share on other sites

It should work. Can you post the generated HTML-Code for this text.

 

What does it looks like if you make echo('ę ó ą ś ł ż ź ć ń'); in products_info.php before:

 

//PRONUX TMS START
include DIR_WS_INCLUDES.'TMS/Conf.php';

 

It looks like "� � � � � � � � �" but when I make it utf8 encode echo('ę ; ó ; ą ; ś ; ł ; ż ; ź ; ć ; ń ;') ( without that free spaces before ';' ) it looks like "ę ó ą ś ł ż ź ć ń".

 

 

OK, I think I just fixed it. Now I find out that the tabs names being converted (private function convertTabNamesToHTMLEntities()).

 

I have just removed that function from TabMenuSection.php and a few lines below also removed '$convertTabNamesToHTMLEntities = true' and statement if($convertTabNamesToHTMLEntities).

 

I Don't know if there will be any further consequences of doing that :-"

but it worked for me. All my special chars in titles of the tabs seems to be ok.

 

pscreen.jpg

 

Thank you very much for your suggestions.

Link to comment
Share on other sites

just fixed it. Now I find out that the tabs names being converted (private function convertTabNamesToHTMLEntities()).

 

I have just removed that function from TabMenuSection.php and a few lines below also removed '$convertTabNamesToHTMLEntities = true' and statement if($convertTabNamesToHTMLEntities).

 

 

ok, great :thumbsup:

instead of removing the parameter '$convertTabNamesToHTMLEntities = true', you could also set this parameter simply to 'false'

 

Is your shop already online, what's the url?

Edited by Pronux

Specialist in end-to-end integration between osCommerce and Microsoft Dynamics NAV ERP System

About Pronux | Pronux Contributions and Add-Ons

Link to comment
Share on other sites

Hello everybody!

 

First of all: Pronux, this is a great contrubition and just what I've been looking for.

It works just fine, but I have a few questions:

 

1. I also get strange letters when inputting non-english letters.

I tried changing '$convertTabNamesToHTMLEntities = true' to false, but still strange letters.

 

2. Can you input pictures into the tabs? If yes, how?

 

I am a little beginner at this so please forgive if I have some strange questions!

Thanks in advance, any help from anybody will be much, much appriciated.

Link to comment
Share on other sites

 

 

Hi Pronux,

 

I am getting errors with jquery cause i use it with lightbox.

 

<span class="buttonAction">' .tep_draw_button(IMAGE_BUTTON_WRITE_REVIEW, 'comment', tep_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, tep_get_all_get_params()), 'primary'). '</span>

 

This is the line what causes the trouble. I need to know how to change the .tep_draw_button to . tep_image but it drives me crazy ! Al the time i get error on this line.

Link to comment
Share on other sites

Hello everybody!

 

First of all: Pronux, this is a great contrubition and just what I've been looking for.

It works just fine, but I have a few questions:

 

1. I also get strange letters when inputting non-english letters.

I tried changing '$convertTabNamesToHTMLEntities = true' to false, but still strange letters.

 

2. Can you input pictures into the tabs? If yes, how?

 

I am a little beginner at this so please forgive if I have some strange questions!

Thanks in advance, any help from anybody will be much, much appriciated.

 

@Mix0r:

 

1. In osCommerce 2.3.1 go to products_info.php and change:

 

$TMS->generateTabMenuSection(true);

TO:

$TMS->generateTabMenuSection(true, false);

 

If you are using an older osCommerce version, try:

$CONF['tabs']['en'][3]  = utf8_decode('Test: üöäęóąśłżźćń'); 

 

2. If you have made the mentioned change, you can add your image(s) to the tab-names in /TMS/Conf.php:

$CONF['tabs']['en'][3] = '<img src="this_is_your_pic.jpg" />';

 

 

@izzystradlin:

 

This should not be a problem of TMS. What happens if you put:

<span class="buttonAction">' .tep_draw_button(IMAGE_BUTTON_WRITE_REVIEW, 'comment', tep_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, tep_get_all_get_params()), 'primary'). '</span>

BEFORE:

//PRONUX TMS START
include DIR_WS_INCLUDES.'TMS/Conf.php';

Edited by Pronux

Specialist in end-to-end integration between osCommerce and Microsoft Dynamics NAV ERP System

About Pronux | Pronux Contributions and Add-Ons

Link to comment
Share on other sites

Thanks for your answer!

 

I've got another problem now:

 

http://i51.tinypic.com/261l0t1.png

 

How do I remove the space between the content box and the tabs marked in white? (Maybe move tabs down or move box up?)

How do I remove the white/blue lines that the arrow is pointing at?

 

Thanks in advance!

 

 

Try to make some changes to includes/TMS/Conf.php (section "General Definitions") f.e. change the colors, change the width/noOfTabs etc.

Specialist in end-to-end integration between osCommerce and Microsoft Dynamics NAV ERP System

About Pronux | Pronux Contributions and Add-Ons

Link to comment
Share on other sites

Received the following E-Mail:

 

Hello,

 

I was recently looking at adding your tab addition to a site I'm running OSC on. I happen to come across your demo http://oscommerce.pronux.ch/shopping_cart.php and I was wondering if you would be able to explain or shed some light on how you went about making the My Account, Cart Contents, and Checkout buttons CSS instead of actual images.

 

Thank you,

 

Short Answer: These are the standard buttons of osCommerce 2.3.1

Specialist in end-to-end integration between osCommerce and Microsoft Dynamics NAV ERP System

About Pronux | Pronux Contributions and Add-Ons

Link to comment
Share on other sites

Hello Pronux!

 

Everything is working fine, but I wonder if it's possible to move where the text is?

I was thinking about moving the text a little more to the upper left..

 

Thanks in advance!

 

Great :thumbsup: What have you done?

 

To change the text position in the content section you have to change the padding in the your stylesheet.css:

 

.pronuxContentBox {
padding: 20px;

Hope it helps.

Specialist in end-to-end integration between osCommerce and Microsoft Dynamics NAV ERP System

About Pronux | Pronux Contributions and Add-Ons

Link to comment
Share on other sites

Hi Pronux,

 

The front side is working like a charm! Now i am facing another issue in categories.php

 

I am using ckeditor to edit products_description. Here is my code:

 

<?php echo tep_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '70', '10',
(isset($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) :
tep_get_products_description($pInfo->products_id, $languages[$i]['id'])),'id = products_description[' .
$languages[$i]['id'] . '] class="ckeditor"'); ?>

 

Pronux TMS for Admin

 

<?php
   for ($i=0, $n=sizeof($languages); $i<$n; $i++) {
?>
         <tr>
           <td class="main" valign="top"><?php if ($i == 0) echo TEXT_PRODUCTS_DESCRIPTION; ?></td>
           <td><table border="0" cellspacing="0" cellpadding="0">
             <tr>
               <td class="main" valign="top"><?php echo tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']); ?> </td>
               <td class="main"><?php echo tep_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '70', '15', (isset($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) : tep_get_products_description($pInfo->products_id, $languages[$i]['id']))); ?></td>
             </tr>
           </table></td>
         </tr>
<?php
   }
?>

 

It must be the class="ckeditor" but where to place it?

Link to comment
Share on other sites

This module looks very interesting indeed. I'd be really interested in the new version that you're planning at the end of Jan as per earlier post. From what I gather, the current version only allows the same text per tab repeated on each product. I'd really like to use this kind of mod for entering the products in admin so it's going to be dynamic for each different product. What I mean is I'd like to be able to have tabs for:

 

Main description, ingredients, suitable for, how to use, manu info etc

 

but containing different info for each product. I'm guessing it's going to mean altering the database to add the input fields in admin.

 

I'll keep an eye our for the new version and happily do some testing as well!

 

I like to give my customer a lot of product info but worry it makes the page too long and thus reduces keyword density. Are the tabs beneficial for SEO? As in, less info on each tab makes keyword density better? How would this work in conjunction with Header Tags Controller or KISS MT?

 

Cheers and all the best...

TG

Edited by tigergirl

I'm feeling lucky today......maybe someone will answer my post!

I do try and answer a simple post when I can just to give something back.

------------------------------------------------

PM me? - I'm not for hire

Link to comment
Share on other sites

This module looks very interesting indeed. I'd be really interested in the new version that you're planning at the end of Jan as per earlier post. From what I gather, the current version only allows the same text per tab repeated on each product. I'd really like to use this kind of mod for entering the products in admin so it's going to be dynamic for each different product. What I mean is I'd like to be able to have tabs for:

 

Main description, ingredients, suitable for, how to use, manu info etc

 

but containing different info for each product. I'm guessing it's going to mean altering the database to add the input fields in admin.

 

I'll keep an eye our for the new version and happily do some testing as well!

 

I like to give my customer a lot of product info but worry it makes the page too long and thus reduces keyword density. Are the tabs beneficial for SEO? As in, less info on each tab makes keyword density better? How would this work in conjunction with Header Tags Controller or KISS MT?

 

Cheers and all the best...

TG

 

I have that exact setup. TMS (with custom tabs), KISSMT USU5 Pro

http://www.electricalcity.co.uk/hrc-bussmann-aa0-aa010-10a-hrc-fuse-tia-p-32.html

Link to comment
Share on other sites

@izzystradlin: try this (not tested):

 

<?php
   for ($i=0, $n=sizeof($languages); $i<$n; $i++) {
?>
         <tr>
           <td class="main" valign="top"><?php if ($i == 0) echo TEXT_PRODUCTS_DESCRIPTION; ?></td>
           <td><table border="0" cellspacing="0" cellpadding="0">
             <tr>
               <td class="main" valign="top"><?php echo tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']); ?> </td>
               <td class="main"><?php echo tep_draw_textarea_field('products_description[' . $languages[$i]['id'] . ']', 'soft', '70', '10', (isset($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) : tep_get_products_description($pInfo->products_id, $languages[$i]['id'])),'id = products_description[' . $languages[$i]['id'] . '] class="ckeditor"'); ?></td>
             </tr>
           </table></td>
         </tr>
<?php
   }
?>

 

 

@tigergirl: Due the lack of time, there will be no new TMS release in the near future, sorry for the bad news. But as pdcelec has mentioned (see last post), TMS does show different info for each product and it should also be (a little bit) beneficial for SEO since it uses the Google proposal for making AJAX/JavaScript based sites crawlable so that content on all tabs can be indexed: http://bit.ly/g6oQRU

 

Tab Menu Section (TMS) and Pronux TMS For Admin contribution.

 

 

@pdcelec thanks for the link, great shop. Btw: you can change the colors of TMS in TMS/Conf.php

Edited by Pronux

Specialist in end-to-end integration between osCommerce and Microsoft Dynamics NAV ERP System

About Pronux | Pronux Contributions and Add-Ons

Link to comment
Share on other sites

@tigergirl: Due the lack of time, there will be no new TMS release in the near future, sorry for the bad news. But as pdcelec has mentioned (see last post), TMS does show different info for each product and it should also be (a little bit) beneficial for SEO since it uses the Google proposal for making AJAX/JavaScript based sites crawlable so that content on all tabs can be indexed: http://bit.ly/g6oQRU

 

Tab Menu Section (TMS) and Pronux TMS For Admin contribution.

 

 

Cool, well I'll have another read of it then to get my head around it.

I'm feeling lucky today......maybe someone will answer my post!

I do try and answer a simple post when I can just to give something back.

------------------------------------------------

PM me? - I'm not for hire

Link to comment
Share on other sites

hello pronux, im two problem validator.w3.org

<a class="pronuxLink" hidefocus="true";

and

(z=1;z<100;z++)

code to TabMenuSection.php

 

is possible validation this code?

thanks

 

Thanks for your feedback. If there are problems with the w3-validation, it will be fixed in the next version fo TMS.

Specialist in end-to-end integration between osCommerce and Microsoft Dynamics NAV ERP System

About Pronux | Pronux Contributions and Add-Ons

Link to comment
Share on other sites

Hi Pronux,

 

I'm trying to add Ask a Product question code into the Tab Menu but no succes. Can you give me a hint? :lol:

 

		  <?php 

$reviewTabContent = '';

 $reviews_query_raw = "select r.reviews_id, left(rd.reviews_text, 100) as reviews_text, r.reviews_rating, r.date_added, r.customers_name from " . TABLE_REVIEWS . " r, " . TABLE_REVIEWS_DESCRIPTION . " rd where r.products_id = '" . (int)$product_info['products_id'] . "' and r.reviews_id = rd.reviews_id and rd.languages_id = '" . (int)$languages_id . "' order by r.reviews_id desc";
 $reviews_split = new splitPageResults($reviews_query_raw, MAX_DISPLAY_NEW_REVIEWS);

 if ($reviews_split->number_of_rows > 0) {
   if ((PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3')) {

       $reviewTabContent = '
         <div class="contentText">
           <p style="float: right;">'. TEXT_RESULT_PAGE . ' ' . $reviews_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info'))) .'</p>

           <p>'. $reviews_split->display_count(TEXT_DISPLAY_NUMBER_OF_REVIEWS) .'</p>
         </div>

         <br />';
   }

   $reviews_query = tep_db_query($reviews_split->sql_query);
   while ($reviews = tep_db_fetch_array($reviews_query)) {

$reviewTabContent .= '
 <div>
   <span style="float: right;">'.sprintf(TEXT_REVIEW_DATE_ADDED, tep_date_long($reviews['date_added'])) .'</span>
   <h2><a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $product_info['products_id'] . '&reviews_id=' . $reviews['reviews_id']) . '">' . sprintf(TEXT_REVIEW_BY, tep_output_string_protected($reviews['customers_name'])) . '</a> </h2>
 </div>

 <div class="contentText">
   '. tep_break_string(tep_output_string_protected($reviews['reviews_text']), 60, '-<br />') . ((strlen($reviews['reviews_text']) >= 100) ? '..' : '') . '<br /><br /><i>' . sprintf(TEXT_REVIEW_RATING, tep_image(DIR_WS_IMAGES . 'stars_' . $reviews['reviews_rating'] . '.gif', sprintf(TEXT_OF_5_STARS, $reviews['reviews_rating'])), sprintf(TEXT_OF_5_STARS, $reviews['reviews_rating'])) . '</i>
</div>
<div class="buttonSet">
<span class="buttonAction">' .tep_draw_button(IMAGE_BUTTON_WRITE_REVIEW, 'comment', tep_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, tep_get_all_get_params()), 'primary'). '</span>
</div>';
}
 } else {

$reviewTabContent = '
<div class="contentText">'.TEXT_NO_REVIEWS.'
</div>
<div class="buttonSet">
<span class="buttonAction">' .tep_draw_button(IMAGE_BUTTON_WRITE_REVIEW, 'comment', tep_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, tep_get_all_get_params()), 'primary'). '</span>
</div>';
}
$askTabContent = '';
			 $valid_product = false;
 if (isset($HTTP_GET_VARS['products_id'])) {
   $product_info_query = tep_db_query("select pd.products_name, p.products_model,  p.products_image from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "'");
   if (tep_db_num_rows($product_info_query)) {
     $valid_product = true;

     $product_info = tep_db_fetch_array($product_info_query);

$askTabContent = '';

if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'process')) {
   $error = false;

   $to_email_address = tep_db_prepare_input($HTTP_POST_VARS['to_email_address']);
   $to_name = tep_db_prepare_input($HTTP_POST_VARS['to_name']);
   $from_email_address = tep_db_prepare_input($HTTP_POST_VARS['from_email_address']);
   $from_name = tep_db_prepare_input($HTTP_POST_VARS['from_name']);
   $message = tep_db_prepare_input($HTTP_POST_VARS['message']);

   if (empty($from_name)) {
     $error = true;

     $messageStack->add('friend', ERROR_FROM_NAME);
   }

if (empty($message)) {
     $error = true;

     $messageStack->add('friend', ERROR_FROM_MESSAGE);
   }

   if (!tep_validate_email($from_email_address)) {
     $error = true;

     $messageStack->add('friend', ERROR_FROM_ADDRESS);
   }

   if (empty($to_name)) {
     $error = true;

     $messageStack->add('friend', ERROR_TO_NAME);
   }

   if (!tep_validate_email($to_email_address)) {
     $error = true;

     $messageStack->add('friend', ERROR_TO_ADDRESS);
   }

   if ($error == false) {
     $email_subject = sprintf(TEXT_EMAIL_SUBJECT, $from_name, STORE_NAME);
     $email_body = sprintf(TEXT_EMAIL_INTRO, $to_name, $from_name, $product_info['products_name'], $product_info['products_model'], STORE_NAME) . "\n\n";

     if (tep_not_null($message)) {
       $email_body .= $message . "\n\n";
     }

     $email_body .= sprintf(TEXT_EMAIL_LINK, tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id'])) . "\n\n" .
                    sprintf(TEXT_EMAIL_SIGNATURE, STORE_NAME . "\n" . HTTP_SERVER . DIR_WS_CATALOG . "\n");

     tep_mail($to_name, $to_email_address, $email_subject, $email_body, $from_name, $from_email_address);

     $messageStack->add('ask', sprintf(TEXT_EMAIL_SUCCESSFUL_SENT, $product_info['products_name'], tep_output_string_protected($to_name)), 'success');

   }
 } elseif (tep_session_is_registered('customer_id')) {

   $account_query = tep_db_query("select customers_firstname, customers_lastname, customers_email_address from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'");
   $account = tep_db_fetch_array($account_query);

   $from_name = $account['customers_firstname'] . ' ' . $account['customers_lastname'];
   $from_email_address = $account['customers_email_address'];
 }
<?php
 if ($messageStack->size('friend') > 0) {
?>
     <tr>
       <td><?php echo $messageStack->output('friend'); ?></td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
<?php
 }
?>
<?php

 if ($messageStack->size('ask') > 0) {
?>
     <tr>
       <td><?php echo $messageStack->output('ask'); ?></td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>

  <tr>
       <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
         <tr class="infoBoxContents">
           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
             <tr>
               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
               <td><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id']) . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td>

             </tr>
           </table></td>
         </tr>
       </table></td>
     </tr>

<?php
 }
 else
 {
?>
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
         <tr>
           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
             <tr>
               <td class="main"><b><?php echo FORM_TITLE_CUSTOMER_DETAILS; ?></b></td>
               <td class="inputRequirement" align="right"><?php echo FORM_REQUIRED_INFORMATION; ?></td>
             </tr>
           </table></td>
         </tr>
         <tr>
           <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
             <tr class="infoBoxContents">
               <td><table border="0" cellspacing="0" cellpadding="2">
                 <tr>
                   <td class="main"><?php echo FORM_FIELD_CUSTOMER_NAME; ?></td>
                   <td class="main"><?php echo tep_draw_input_field('from_name'); ?></td>
                 </tr>
                 <tr>
                   <td class="main"><?php echo FORM_FIELD_CUSTOMER_EMAIL; ?></td>
                   <td class="main"><?php echo tep_draw_input_field('from_email_address'); ?></td>
                 </tr>
               </table></td>
             </tr>
           </table></td>
         </tr>
         <tr>
           <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
         </tr>
           <tr>
           <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
         </tr>
         <tr>
           <td class="main"><b><?php echo FORM_TITLE_FRIEND_MESSAGE; ?></b></td>
         </tr>
         <tr>
           <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
             <tr class="infoBoxContents">
               <td><?php echo tep_draw_textarea_field('message', 'soft', 40, 8); ?></td>
             </tr>
           </table></td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
     <tr>
       <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
         <tr class="infoBoxContents">
           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
             <tr>
               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
               <td><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id']) . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td>
               <td align="right"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>
               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); 

//PRONUX TMS START
include DIR_WS_INCLUDES.'TMS/Conf.php';

$TMS->tab[1]['content'] = $product_info['products_description']; 
$TMS->tab[2]['content'] = $product_info['products_spec'];
$TMS->tab[3]['content'] = $reviewTabContent;
$TMS->tab[3]['content'] = $askTabContent;

$TMS->setLanguage('', $_SESSION['language']);
$TMS->generateTabMenuSection(true);
//PRONUX TMS END
?>

Edited by izzystradlin
Link to comment
Share on other sites

Hi,

 

First, this will not work because the second line always overrides the content in tab[3]:

 

$TMS->tab[3]['content'] = $reviewTabContent;
$TMS->tab[3]['content'] = $askTabContent;

Add a tab (define tab[4] in Conf.php) or change the operator in the seconad line to .=

 

 

Unfortunately I don't know this add-on and how it works. Does it work properly in your shop without TMS?

 

What I mean is: Try to install this add-on without TMS first and then, as soon as it works, put all the stuff into $reviewTabContent and make an echo $reviewTabContent;

 

Only if the last step works, you can add it to a tab e.g. $TMS->tab[3]['content'] = $reviewTabContent;

 

Hope it helps.

Specialist in end-to-end integration between osCommerce and Microsoft Dynamics NAV ERP System

About Pronux | Pronux Contributions and Add-Ons

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