deltabiri Posted January 22, 2011 Share Posted January 22, 2011 Identic problem ask question, my code: <?php //PRONUX TMS START include DIR_WS_INCLUDES.'TMS/Conf.php'; $TMS->tab[1]['content'] = $product_info['products_description']; $TMS->tab[2]['content'] = $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 . "' and r.reviews_status = 1 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>'; } } else { $reviewTabContent = ' <div class="contentText"> <?php echo TEXT_NO_REVIEWS; ?> </div>'; } $TMS->tab[2]['content'] = $reviewTabContent; $TMS->tab[3]['content'] = $askTabContent; $TMS->setLanguage('', $_SESSION['language']); $TMS->generateTabMenuSection(true); //PRONUX TMS END ?> ask question works out tab, contribution for 2.3 is ask question Pronux 1 Quote Link to comment Share on other sites More sharing options...
Pronux Posted January 22, 2011 Author Share Posted January 22, 2011 Hi, 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. Quote 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 More sharing options...
deltabiri Posted January 24, 2011 Share Posted January 24, 2011 yes, work tab and ask question.... my product installed tab: link product tab work ask question: link ask question to work I found site web installed ask question into tab menu: link site working no errors, I do not know how to call contribution .....$TMS->tab[3]['content'] = $askTabContent; ?? no work Pronux 1 Quote Link to comment Share on other sites More sharing options...
Pronux Posted January 24, 2011 Author Share Posted January 24, 2011 ok, install this add-on on the site products_info.php without TMS first and then, as soon as it works, put all the stuff into $reviewTabContent and make an echo $reviewTabContent; If the last step works, you can add it to a tab e.g. $TMS->tab[3]['content'] = $reviewTabConten Quote 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 More sharing options...
Mix0r Posted January 26, 2011 Share Posted January 26, 2011 Hello! I still have problem with the special characters.. http://i53.tinypic.com/24cs18g.png As you can see, the special characters works for the tabs, but not the text in the tabs.. Thanks in advance for any help! Pronux 1 Quote Link to comment Share on other sites More sharing options...
Pronux Posted January 26, 2011 Author Share Posted January 26, 2011 Hello! I still have problem with the special characters.. http://i53.tinypic.com/24cs18g.png As you can see, the special characters works for the tabs, but not the text in the tabs.. Thanks in advance for any help! What happens if you echo the content outside of TMS? Quote 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 More sharing options...
Mix0r Posted January 26, 2011 Share Posted January 26, 2011 Uh, I don't know what you are talking about :P I have taken the text with the special characters, and pasted them into Notepad++ and converted them into UTF-8 without BOM. But it didn't work.. Thanks for your quick answer! Pronux 1 Quote Link to comment Share on other sites More sharing options...
Pronux Posted January 26, 2011 Author Share Posted January 26, 2011 Uh, I don't know what you are talking about :P I have taken the text with the special characters, and pasted them into Notepad++ and converted them into UTF-8 without BOM. But it didn't work.. Thanks for your quick answer! Before TMS starts, make an echo of the content you put on tab2, for example: echo($myContentForTab3); <--- echo of the variable which includes the content of tab 3 (will have a different name in your code) //PRONUX TMS START include DIR_WS_INCLUDES.'TMS/Conf.php'; $TMS->tab[3]['content'] = $myContentForTab3; Quote 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 More sharing options...
Mix0r Posted January 27, 2011 Share Posted January 27, 2011 Hello! I'm sorry, but I don't really know what to do! I've put in the echo line before TMS starts in product_info.php and changed the "£myContentForTab3" to three special characters. This is my product_info.php at the moment: http://data.fuskbugg.se/skalman02/productinfo.png Thanks for your answers! Pronux 1 Quote Link to comment Share on other sites More sharing options...
Pronux Posted January 27, 2011 Author Share Posted January 27, 2011 Hello! I'm sorry, but I don't really know what to do! I've put in the echo line before TMS starts in product_info.php and changed the "£myContentForTab3" to three special characters. This is my product_info.php at the moment: http://data.fuskbugg.se/skalman02/productinfo.png Thanks for your answers! ok, and now with these changes, how does it look like when you call the product page? Please post a screenshot. Quote 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 More sharing options...
Mix0r Posted January 28, 2011 Share Posted January 28, 2011 Hey! Nothing happens! Instead the text just disappears.. http://data.fuskbugg.se/skalman02/tab3.png Pronux 1 Quote Link to comment Share on other sites More sharing options...
Pronux Posted January 28, 2011 Author Share Posted January 28, 2011 (edited) Hey! Nothing happens! Instead the text just disappears.. http://data.fuskbugg.se/skalman02/tab3.png So, you have only added echo($öaä); above TMS and now the text on tab3 in TMS disappeared?!? Instead, with the echo($öaä) it should only show the text of tab3 before (above) TMS. Question: What's the content of $öaä ? Edited January 28, 2011 by Pronux Quote 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 More sharing options...
Mix0r Posted January 28, 2011 Share Posted January 28, 2011 Uh, you can see the comment in the picture..? product_info.php : http://data.fuskbugg.se/skalman02/productinfo.png Pronux 1 Quote Link to comment Share on other sites More sharing options...
Pronux Posted January 28, 2011 Author Share Posted January 28, 2011 Uh, you can see the comment in the picture..? product_info.php : http://data.fuskbugg.se/skalman02/productinfo.png There is no comment in this picture? Which comment do you mean? Question: What's the content of the variable $öaä? Can you post it here please. Quote 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 More sharing options...
Mix0r Posted January 29, 2011 Share Posted January 29, 2011 Oops, I meant content, :P So.. How do I add content to the variable $öåä? It looks like this right now: http://data.fuskbugg.se/skalman02/__________content.png Pronux 1 Quote Link to comment Share on other sites More sharing options...
Pronux Posted January 29, 2011 Author Share Posted January 29, 2011 Oops, I meant content, :P So.. How do I add content to the variable $öåä? It looks like this right now: http://data.fuskbugg.se/skalman02/__________content.png ....you don't have to define a new variable...ok, let me ask you the question in a different way. Your problem with the special characters is not a problem of TMS because it would also show it wrong without using TMS. Please solve this problem before you add the TMS module to your shop. Quote 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 More sharing options...
Mix0r Posted January 29, 2011 Share Posted January 29, 2011 Alright, thanks for all your help! Pronux 1 Quote Link to comment Share on other sites More sharing options...
Guest Posted February 2, 2011 Share Posted February 2, 2011 I have two questions about this addon. First, is it easy to change it from horizontal tabs to vertical tabs down the left hand side of the box instead of having the tabs across the top? Second, I would like to have tabs without content skipped and not shown. I have a need for nine total tabs but I never need more than seven of the total nine for any one single product. Most of my products will only use one or two of the tabs and some may use none at all. Do you have any suggestions on how to get this result? I really think this would make a nice default behavior/feature. hint hint wink wink ;) This is a really nice mod, thanks for sharing it. Thank you. Pronux 1 Quote Link to comment Share on other sites More sharing options...
Pronux Posted February 2, 2011 Author Share Posted February 2, 2011 (edited) I have two questions about this addon. First, is it easy to change it from horizontal tabs to vertical tabs down the left hand side of the box instead of having the tabs across the top? Second, I would like to have tabs without content skipped and not shown. I have a need for nine total tabs but I never need more than seven of the total nine for any one single product. Most of my products will only use one or two of the tabs and some may use none at all. Do you have any suggestions on how to get this result? I really think this would make a nice default behavior/feature. hint hint wink wink ;) This is a really nice mod, thanks for sharing it. Thank you. Hi, Thanks for your feedback. Here's my quick answer: Change the tabs from horizontal to vertical is not easy because you have to change the code which generates the tabs "Hide tabs if no content" will be possible in the next version of TMS, but the release date is not set yet. If you have time to study the code you can do it yourself, should be possible. Edited February 2, 2011 by Pronux Quote 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 More sharing options...
Guest Posted February 2, 2011 Share Posted February 2, 2011 (edited) I did hack my way into tricking it not to produce a tab for tabs without content and since it is a hack only I'll post it here so others who desire the same behavior will have a way of achieving it until the next release which I for one can not wait for. here's what I did: backup your catalog/includes/TMS/TabMenuSection.php file before proceeding so you can revert in case it doesn't work or works incorrectly. catalog/includes/TMS/TabMenuSection.php on or around line 176 find if(!empty($tabName) || $x < $noOfTabsCalculated) Insert Before $mickeymouse = $this->getContentForTab($x); if(!empty($mickeymouse)) { on or around line 200 find $menu .= '<div class="pronuxTabEmpty" style="height: '.($this->CONF['tabHeight'] + 1).'px; width: '.($this->getTabWidth($x)+1).'px;"></div>'; } continue; } Insert After } That's it. One file to edit, three lines to add. That should work for anyone who has an unmodified TMS 1.0 and will cause there to be no tab generated for tabs with no content. Edited February 2, 2011 by oarie Pronux 1 Quote Link to comment Share on other sites More sharing options...
Pronux Posted February 3, 2011 Author Share Posted February 3, 2011 Thanks for your feedback. Quote 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 More sharing options...
Dutchmen Posted February 5, 2011 Share Posted February 5, 2011 Hello Pronux, Thanx for the nice MOD, if have installed it in my site. the admin was good..but as some wrote there was no possibily to insert the data into the database..i have not much expirience with programming...but i get it together so it works for me ;) for those who want to update the admin section this is what i did... ATTENTION...i could fix a problem Pronus add give me..so the nice box from Pronux doesn't work in my admin section..perhaps Pronux does have a solution. What I did: ------------ 1. catalog/admin/catagories: (i have 3 tabs at this moment, the original DESCIPTION file..added SPECIFICATIONS and EXTRA INFO, so look for the changes I made) ============================ somewhere around:325 $languages = tep_get_languages(); for ($i=0, $n=sizeof($languages); $i<$n; $i++) { $language_id = $languages[$i]['id']; $sql_data_array = array('products_name' => tep_db_prepare_input($HTTP_POST_VARS['products_name'][$language_id]), 'products_description' => tep_db_prepare_input($HTTP_POST_VARS['products_description'][$language_id]), 'products_specification' => tep_db_prepare_input($HTTP_POST_VARS['products_specification'][$language_id]), 'products_extra_info' => tep_db_prepare_input($HTTP_POST_VARS['products_extra_info'][$language_id]), 'products_url' => tep_db_prepare_input($HTTP_POST_VARS['products_url'][$language_id])); somewher around:385 $dup_products_id = tep_db_insert_id(); $description_query = tep_db_query("select language_id, products_name, products_description, products_specification, products_extra_info, products_url from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$products_id . "'"); while ($description = tep_db_fetch_array($description_query)) { tep_db_query("insert into " . TABLE_PRODUCTS_DESCRIPTION . " (products_id, language_id, products_name, products_description, products_specification, products_extra_info, products_url, products_viewed) values ('" . (int)$dup_products_id . "', '" . (int)$description['language_id'] . "', '" . tep_db_input($description['products_name']) . "', '" . tep_db_input($description['products_description']) . "', '" . tep_db_input($description['products_specification']) . "', '" . tep_db_input($description['products_extra_info']) . "', '" . tep_db_input($description['products_url']) . "', '0')"); } tep_db_query("insert into " . TABLE_PRODUCTS_TO_CATEGORIES . " (products_id, categories_id) values ('" . (int)$dup_products_id . "', '" . (int)$categories_id . "')"); $products_id = $dup_products_id; } somewhere around: 450 <!-- body_text //--> <td width="100%" valign="top"> <?php if ($action == 'new_product') { $parameters = array('products_name' => '', 'products_description' => '', 'products_specification' => '', 'products_extra_info' => '', 'products_url' => '', 'products_id' => '', 'products_quantity' => '', 'products_model' => '', 'products_image' => '', somewhere around: 478 $product_query = tep_db_query("select pd.products_name, pd.products_description, pd.products_specification, pd.products_extra_info, pd.products_url, p.products_id, p.products_quantity, p.products_model, p.products_image, p.products_image_array, p.products_price, p.products_weight, p.products_date_added, p.products_last_modified, date_format(p.products_date_available, '%Y-%m-%d') as products_date_available, p.products_status, p.products_tax_class_id, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "'"); $product = tep_db_fetch_array($product_query); $products_image_array = unserialize($product['products_image_array']); if (!is_array($products_image_array)) $products_image_array = array(); // EOF Simple multi image addon $pInfo->objectInfo($product); } elseif (tep_not_null($HTTP_POST_VARS)) { $pInfo->objectInfo($HTTP_POST_VARS); $products_name = $HTTP_POST_VARS['products_name']; $products_description = $HTTP_POST_VARS['products_description']; $products_specification = $HTTP_POST_VARS['products_specification']; $products_extra_info = $HTTP_POST_VARS['products_extra_info']; $products_url = $HTTP_POST_VARS['products_url']; somewhere around: 634 <=== this is the part for Pronux add-on <script language="javascript"><!-- updateGross(); //--></script> <?php for ($i=0, $n=sizeof($languages); $i<$n; $i++) { ?> <tr> <td class="main1" 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 } ?> <?php for ($i=0, $n=sizeof($languages); $i<$n; $i++) { ?> <tr> <td class="main1" valign="top"><?php if ($i == 0) echo TEXT_PRODUCTS_SPECIFICATION; ?></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_specification[' . $languages[$i]['id'] . ']', 'soft', '70', '15', (isset($products_specification[$languages[$i]['id']]) ? stripslashes($products_specification[$languages[$i]['id']]) : tep_get_products_specification($pInfo->products_id, $languages[$i]['id']))); ?></td> </tr> </table></td> </tr> <?php } ?> <?php for ($i=0, $n=sizeof($languages); $i<$n; $i++) { ?> <tr> <td class="main1" valign="top"><?php if ($i == 0) echo TEXT_PRODUCTS_EXTRA_INFO; ?></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_extra_info[' . $languages[$i]['id'] . ']', 'soft', '70', '15', (isset($products_extra_info[$languages[$i]['id']]) ? stripslashes($products_extra_info[$languages[$i]['id']]) : tep_get_products_extra_info($pInfo->products_id, $languages[$i]['id']))); ?></td> </tr> </table></td> </tr> <?php } ?> somewhere around: 793 </tr> </table></form> <?php } elseif ($action == 'new_product_preview') { if (tep_not_null($HTTP_POST_VARS)) { $pInfo = new objectInfo($HTTP_POST_VARS); $products_name = $HTTP_POST_VARS['products_name']; $products_description = $HTTP_POST_VARS['products_description']; $products_specification = $HTTP_POST_VARS['products_specification']; $products_extra_info = $HTTP_POST_VARS['products_extra_info']; $products_url = $HTTP_POST_VARS['products_url']; } else { // Simple multi image addon $product_query = tep_db_query("select p.products_id, pd.language_id, pd.products_name, pd.products_description, pd.products_specification, pd.products_extra_info, pd.products_url, p.products_quantity, p.products_model, p.products_image, p.products_image_array, p.products_price, p.products_weight, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = pd.products_id and p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "'"); $product = tep_db_fetch_array($product_query); somewhere around: 816 $form_action = (isset($HTTP_GET_VARS['pID'])) ? 'update_product' : 'insert_product'; echo tep_draw_form($form_action, FILENAME_CATEGORIES, 'cPath=' . $cPath . (isset($HTTP_GET_VARS['pID']) ? '&pID=' . $HTTP_GET_VARS['pID'] : '') . '&action=' . $form_action, 'post', 'enctype="multipart/form-data"'); $languages = tep_get_languages(); for ($i=0, $n=sizeof($languages); $i<$n; $i++) { if (isset($HTTP_GET_VARS['read']) && ($HTTP_GET_VARS['read'] == 'only')) { $pInfo->products_name = tep_get_products_name($pInfo->products_id, $languages[$i]['id']); $pInfo->products_description = tep_get_products_description($pInfo->products_id, $languages[$i]['id']); $pInfo->products_specification = tep_get_products_specification($pInfo->products_id, $languages[$i]['id']); $pInfo->products_extra_info = tep_get_products_extra_info($pInfo->products_id, $languages[$i]['id']); $pInfo->products_url = tep_get_products_url($pInfo->products_id, $languages[$i]['id']); } else { $pInfo->products_name = tep_db_prepare_input($products_name[$languages[$i]['id']]); $pInfo->products_description = tep_db_prepare_input($products_description[$languages[$i]['id']]); $pInfo->products_specification = tep_db_prepare_input($products_specification[$languages[$i]['id']]); $pInfo->products_extra_info = tep_db_prepare_input($products_extra_info[$languages[$i]['id']]); $pInfo->products_url = tep_db_prepare_input($products_url[$languages[$i]['id']]); } somewhere around:843 </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td class="main"><?php echo tep_image(DIR_WS_CATALOG_IMAGES . $products_image_name, $pInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="right" hspace="5" vspace="5"') . '<b><u>' . TEXT_PRODUCTS_DESCRIPTION . '</u></b><br><br>' . $pInfo->products_description . '<br><br><b><u>' . TEXT_PRODUCTS_SPECIFICATION . '</u></b><br><br>' . $pInfo->products_specification. '<br><br><b><u>' . TEXT_PRODUCTS_EXTRA_INFO . '</u></b><br><br>' . $pInfo->products_extra_info; ?></td> </tr> <?php if ($pInfo->products_url) { ?> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> somewhere around: 935 $languages = tep_get_languages(); for ($i=0, $n=sizeof($languages); $i<$n; $i++) { echo tep_draw_hidden_field('products_name[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($products_name[$languages[$i]['id']]))); echo tep_draw_hidden_field('products_description[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($products_description[$languages[$i]['id']]))); echo tep_draw_hidden_field('products_specification[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($products_specification[$languages[$i]['id']]))); echo tep_draw_hidden_field('products_extra_info[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($products_extra_info[$languages[$i]['id']]))); echo tep_draw_hidden_field('products_url[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($products_url[$languages[$i]['id']]))); } echo tep_draw_hidden_field('products_image', stripslashes($products_image_name)); // Simple multi image addon $i=1;reset($products_image_array); while (list($key, $value) = each($products_image_array)) THATS THE catagorie.php file !!! 2. catalog/admin/includes/general.php ====================================== only one add for each tab function tep_get_products_name($product_id, $language_id = 0) { global $languages_id; if ($language_id == 0) $language_id = $languages_id; $product_query = tep_db_query("select products_name from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$product_id . "' and language_id = '" . (int)$language_id . "'"); $product = tep_db_fetch_array($product_query); return $product['products_name']; } function tep_get_products_specification($product_id, $language_id = 0) { global $languages_id; if ($language_id == 0) $language_id = $languages_id; $product_query = tep_db_query("select products_specification from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$product_id . "' and language_id = '" . (int)$language_id . "'"); $product = tep_db_fetch_array($product_query); return $product['products_specification']; } function tep_get_products_extra_info($product_id, $language_id = 0) { global $languages_id; if ($language_id == 0) $language_id = $languages_id; $product_query = tep_db_query("select products_extra_info from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$product_id . "' and language_id = '" . (int)$language_id . "'"); $product = tep_db_fetch_array($product_query); return $product['products_extra_info']; } 3. catalog/includes/languages/....../catagories.php =================================================== Just add the following define('TEXT_PRODUCTS_SPECIFICATION', 'specification:'); define('TEXT_PRODUCTS_EXTRA_INFO', 'extra_info:'); 4. ADD TO DATABASE: products_description ========================================= products_specification products_extra_info this can be use on de public site in the tabs Hope I help somebody else with this..it took me 1 day :D:D As I say..it works for me..I wanted the tabs on the publicsite :D:D Take a look at NOT READY !!..but take a look Pronux 1 Quote Link to comment Share on other sites More sharing options...
izzystradlin Posted February 7, 2011 Share Posted February 7, 2011 Hi Dutchmen, Thanks! It worked nice! :thumbsup: Pronux 1 Quote Link to comment Share on other sites More sharing options...
Guest Posted February 13, 2011 Share Posted February 13, 2011 (edited) Great Addon, I've found that I can upload the new fields using my MagneticOne Store Manager for osCommerce. It uses a .csv file to upload data which you can create in excel or openoffice and "save as" a .csv file. I've found the "Store Manager" much more effective for managing stores. I would love to know how to code one or more tabs so that it is only required to upload the file name of an image to have it displayed in the tab. That would minimize the amount of coding in the database and one could just use "bullet images" for content. :rolleyes: Edited February 13, 2011 by nx7t Pronux 1 Quote Link to comment Share on other sites More sharing options...
mfactory Posted February 15, 2011 Share Posted February 15, 2011 Hi all, After installing this add-on I run into the same problems as ringo667: i have some error Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /web/1/000/012/429/1897/htdocs/****************/includes/TMS/TabMenuSection.php on line 6 can someone help me? My oscommerce Version ist 2.2-MS2 Does anyone have a solution for this? Running osCommerce 2.2-MS2 on php 4.4.7. Hope you can help, so I can implement this briliant add-on soon.. Pronux 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.