grunionfab Posted January 25, 2008 Share Posted January 25, 2008 It was in index.php. Thank you very much. Quote Link to comment Share on other sites More sharing options...
jarzom Posted February 2, 2008 Share Posted February 2, 2008 Hi, i have encountered a minor bug. If you add an additional language to your system, and afterwards try to update the category-description, it wont update it at all (only the old languages). The box remains empty ?? Â If you delete the whole category-description and start over again, the you can update all the languages. Â It seems that it only handles the languages that are installed when the textbox is created. Â Â regards jarzom Quote Link to comment Share on other sites More sharing options...
chris23 Posted February 2, 2008 Author Share Posted February 2, 2008 Hi, i have encountered a minor bug. If you add an additional language to your system, and afterwards try to update the category-description, it wont update it at all (only the old languages). The box remains empty ?? If you delete the whole category-description and start over again, the you can update all the languages.  It seems that it only handles the languages that are installed when the textbox is created. regards jarzom  Jarzom,  You're quite right. I hadn't really considered this scenario and it doesn't appear to have been an issue until now.  When you add a language, osc has to populate language enabled modules with some default data. For example, when you add a new language, the product description for the new language is set to the contents of the default language. You then edit the data for the new language.  This is handled by admin/languages.php  What I'll do is upload some brief instructions for modifying admin/languages.php to fix this issue  Regards,  Chris Quote Please use forum for support rather than PM - PMs unrelated to my contributions will be ignored. Google Site Search is your friend My contributions: Tracking Module | PDF Customer Invoice | Subcategory textboxes Link to comment Share on other sites More sharing options...
jarzom Posted February 3, 2008 Share Posted February 3, 2008 Thanks mate :thumbsup: Quote Link to comment Share on other sites More sharing options...
chris23 Posted February 3, 2008 Author Share Posted February 3, 2008 What I'll do is upload some brief instructions for modifying admin/languages.php to fix this issue  This fix has been uploaded to the contrib area. Very quick and easy. Quote Please use forum for support rather than PM - PMs unrelated to my contributions will be ignored. Google Site Search is your friend My contributions: Tracking Module | PDF Customer Invoice | Subcategory textboxes Link to comment Share on other sites More sharing options...
firben Posted February 6, 2008 Share Posted February 6, 2008 is it me being dum at this or is something wrong? Somebody that can help point a finger at what i should look at? Â my subcategories look like this: 1146 - Table 'biitl_juze_com.TABLE_EXTRA_CATEGORIES' doesn't exist select categories_description from TABLE_EXTRA_CATEGORIES where TABLE_EXTRA_CATEGORIES.categories_id=23 and TABLE_EXTRA_CATEGORIES.language_id = '1' [TEP STOP] Quote Link to comment Share on other sites More sharing options...
chris23 Posted February 6, 2008 Author Share Posted February 6, 2008 is it me being dum at this or is something wrong?Somebody that can help point a finger at what i should look at?  my subcategories look like this: 1146 - Table 'biitl_juze_com.TABLE_EXTRA_CATEGORIES' doesn't exist select categories_description from TABLE_EXTRA_CATEGORIES where TABLE_EXTRA_CATEGORIES.categories_id=23 and TABLE_EXTRA_CATEGORIES.language_id = '1' [TEP STOP]   Hi,  It looks like you haven't added the following to includes/database_tables.php  define('TABLE_EXTRA_CATEGORIES','extra_cat_info'); // added for Subcategory textboxes  HTH  Chris Quote Please use forum for support rather than PM - PMs unrelated to my contributions will be ignored. Google Site Search is your friend My contributions: Tracking Module | PDF Customer Invoice | Subcategory textboxes Link to comment Share on other sites More sharing options...
webtasarimi Posted February 6, 2008 Share Posted February 6, 2008 Hi all, Â This is a very nice contribution, thanks! :thumbsup: Quote Link to comment Share on other sites More sharing options...
firben Posted February 7, 2008 Share Posted February 7, 2008 Hi, It looks like you haven't added the following to includes/database_tables.php  define('TABLE_EXTRA_CATEGORIES','extra_cat_info'); // added for Subcategory textboxes  HTH  Chris  Hello Chris, That did the trick.. Thanks for the fast reply!  Steph Quote Link to comment Share on other sites More sharing options...
chris23 Posted February 8, 2008 Author Share Posted February 8, 2008 v2.0.3 Uploaded  This is a MAINTENANCE release, bundling up all changes / bugs since v2.0.2 26/3/2007.  FULL PACKAGE. This is the version you want for a new installation.  Upgrade instructions included for users of v2.0.2  There are no new features and if you've applied earlier patches or your version is working fine, you can probably skip this.  Enjoy. Quote Please use forum for support rather than PM - PMs unrelated to my contributions will be ignored. Google Site Search is your friend My contributions: Tracking Module | PDF Customer Invoice | Subcategory textboxes Link to comment Share on other sites More sharing options...
cornishpirate Posted March 4, 2008 Share Posted March 4, 2008 Chris  I've just installed 2.0.3 - installation a dream, execution even better! Thank you.  I would really like the option of placing the textbox BELOW the subcategory links, not above. Could this be a future option?  In the meantime, could you suggest the manual mod to place the box below. (I'm a real novice here, but learning fast, don't yet have the confidence to hack at that level of detail!)  Alan Quote Link to comment Share on other sites More sharing options...
chris23 Posted March 5, 2008 Author Share Posted March 5, 2008 In the meantime, could you suggest the manual mod to place the box below. (I'm a real novice here, but learning fast, don't yet have the confidence to hack at that level of detail!)  Hi Alan,  I'm sure I've seen you loitering somewhere else on this forum ;)  Yes I can suggest where to move the code on index.php and product_info.php but only if you have a vanilla, non-templated osC installation.  If you have other install, PM me for my email address so you can send me copies of these two files over. I'll move the code and email them back when I get a mo.  Cheers  Chris Quote Please use forum for support rather than PM - PMs unrelated to my contributions will be ignored. Google Site Search is your friend My contributions: Tracking Module | PDF Customer Invoice | Subcategory textboxes Link to comment Share on other sites More sharing options...
bpmcclure Posted March 11, 2008 Share Posted March 11, 2008 Hi Chris, Â I have your contribution working great, but have a new challenge. I'd like to add a small image to the subcategory title one level below the main category. Ours is a catering site, and we have "Entrees" as a main category. Under that, some of the entries are more healthy, and the idea is to add a small image of a heart to the title. For example, a healthy entree would look like this: Healthy Chicken. Â Can this be done? Â Thanks, Â Bruce Quote Link to comment Share on other sites More sharing options...
piet Posted March 18, 2008 Share Posted March 18, 2008 hello chris  I missing the hard code return (nl2br)  I type my text in the box  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  and i see it in the box  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  can you fix that Quote Link to comment Share on other sites More sharing options...
chris23 Posted March 18, 2008 Author Share Posted March 18, 2008 hello chris I missing the hard code return (nl2br)  I type my text in the box  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  and i see it in the box  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  can you fix that  Yep.  EDIT catalog/includes/modules/products_extra_category.php   FIND:   echo ("<tr><td><div class=\"cat_info_box\">".$category_info_text['categories_description']."</div></td></tr>");   REPLACE with:  echo ("<tr><td><div class=\"cat_info_box\">". nl2br($category_info_text['categories_description']) ."</div></td></tr>");   HTH Quote Please use forum for support rather than PM - PMs unrelated to my contributions will be ignored. Google Site Search is your friend My contributions: Tracking Module | PDF Customer Invoice | Subcategory textboxes Link to comment Share on other sites More sharing options...
piet Posted March 19, 2008 Share Posted March 19, 2008 Yep. EDIT catalog/includes/modules/products_extra_category.php FIND: echo ("<tr><td><div class=\"cat_info_box\">".$category_info_text['categories_description']."</div></td></tr>"); REPLACE with:  echo ("<tr><td><div class=\"cat_info_box\">". nl2br($category_info_text['categories_description']) ."</div></td></tr>"); HTH  Thanks Chris it works fine  I have change olso in Product_info this  <?php // category textbox mod if (DISPLAY_EXTRA_CATEGORIES == 'true' && DISPLAY_CATS_ON_PROD_LISTING == 'true'){ if ($product_check['total'] >= 1) { // now get textbox description for this *product* and display $query = tep_db_query("select categories_description from " . TABLE_EXTRA_CATEGORIES . " left join " . TABLE_PRODUCTS_TO_CATEGORIES . " using (categories_id) where " . TABLE_PRODUCTS_TO_CATEGORIES .".products_id=" . (int)$HTTP_GET_VARS['products_id'] . " and " . TABLE_EXTRA_CATEGORIES .".language_id = '" . (int)$languages_id . "'"); while($category_info_text = tep_db_fetch_array($query)){ if(!empty($category_info_text['categories_description'])){ // prevent output where description not set for particular language echo ("<tr><td colspan=\"2\"><div class=\"cat_info_box\">".nl2br($category_info_text['categories_description'])."</div></td></tr>"); } } } } ?>  en it works fine  maby you can change it in your greet contribution  Thank for the greet support  Piet Quote Link to comment Share on other sites More sharing options...
pablomontanero Posted March 27, 2008 Share Posted March 27, 2008 Dear all  I added this contribution to my OSC 2.2ms2 and I am having problems. Can you please help me?  I uploaded all files and made the necessary changes, also to the catalog/includes/modules/product_listing_col.php as mentioned earlier in this thread.  In the admin panel under configuration, Textboxes, I can see the 4 options, but when I go to admin catalog and click subcategory textbox, I get the message that the page cannot be loaded.  I tried to upload the file catalog/admin/products_extra_category.php again and in different versions, but I still have the same problem.  Did any of you experience the same?  I would be glad if somebody can help!  Regards  Richard Quote Link to comment Share on other sites More sharing options...
Guest Posted April 1, 2008 Share Posted April 1, 2008 Dear all I added this contribution to my OSC 2.2ms2 and I am having problems. Can you please help me?  I uploaded all files and made the necessary changes, also to the catalog/includes/modules/product_listing_col.php as mentioned earlier in this thread.  In the admin panel under configuration, Textboxes, I can see the 4 options, but when I go to admin catalog and click subcategory textbox, I get the message that the page cannot be loaded.  I tried to upload the file catalog/admin/products_extra_category.php again and in different versions, but I still have the same problem.  Did any of you experience the same?  I would be glad if somebody can help!  Regards  Richard  check the permission on your file. chances are that is the problem Quote Link to comment Share on other sites More sharing options...
pablomontanero Posted April 3, 2008 Share Posted April 3, 2008 check the permission on your file. chances are that is the problem  Hi Naomi  many thanks, that solved it! I first time uploaded the files with Oscommerce Filemanager instead instead of my ftp tool which gave the files unusual permission settings. I changed them back to 644 and everything is runnig perfectly. Great contribution!  Thanks for your help!  Regards  Richard Quote Link to comment Share on other sites More sharing options...
Guest Posted April 7, 2008 Share Posted April 7, 2008 When I click "subcategory textbox" from the admin panel, I am getting a 404 "page not found" error. What am I missing here? Â Thanks :) Quote Link to comment Share on other sites More sharing options...
Guest Posted April 7, 2008 Share Posted April 7, 2008 ETA: Â I checked my permissions. All the new files that were uploaded are at 644. Quote Link to comment Share on other sites More sharing options...
chris23 Posted April 11, 2008 Author Share Posted April 11, 2008 When I click "subcategory textbox" from the admin panel, I am getting a 404 "page not found" error. What am I missing here? Thanks :)  Nancy,  Have you definitely uploaded catalog/admin/products_extra_category.php?  If you have, what page is your browser trying to display when it returns the 404?  Chris Quote Please use forum for support rather than PM - PMs unrelated to my contributions will be ignored. Google Site Search is your friend My contributions: Tracking Module | PDF Customer Invoice | Subcategory textboxes Link to comment Share on other sites More sharing options...
Guest Posted April 30, 2008 Share Posted April 30, 2008 http://mysite.com/admin/FILENAME_CATEGORIES_EXTRA Quote Link to comment Share on other sites More sharing options...
chris23 Posted April 30, 2008 Author Share Posted April 30, 2008 http://mysite.com/admin/FILENAME_CATEGORIES_EXTRA  You've forgotten to add the entry  define('FILENAME_CATEGORIES_EXTRA','products_extra_category.php');  to admin/includes/filenames.php Quote Please use forum for support rather than PM - PMs unrelated to my contributions will be ignored. Google Site Search is your friend My contributions: Tracking Module | PDF Customer Invoice | Subcategory textboxes Link to comment Share on other sites More sharing options...
Guest Posted April 30, 2008 Share Posted April 30, 2008 You've forgotten to add the entry define('FILENAME_CATEGORIES_EXTRA','products_extra_category.php');  to admin/includes/filenames.php   Nope...it's there. Tha twas the first place I looked when this problem came up :( Any other suggestions? 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.