Jump to content



Latest News: (loading..)

- - - - -

[CONTRIBUTION] Subcategory textboxes


  • Please log in to reply
265 replies to this topic

#261   HuskyDog

HuskyDog
  • Members
  • 34 posts
  • Real Name:Ian Beadle

Posted 16 December 2011 - 09:43 AM

Problem solved. I needed to change $HTTP_POST_VARS to $_POST as well as $HTTP_GET_VARS to $_GET and this fixed it.

#262   Transformer

Transformer
  • Members
  • 2 posts
  • Real Name:Ralph

Posted 13 January 2012 - 01:11 PM

Like some others earlier, everything is working when I installed it. The only thing that is off, is the placing of the box.

It shows at the bottom of the page instead of on top. I'm running 2.3.1

I think it's quite a small issue, but I can't fix it.

Anyone?

#263   Transformer

Transformer
  • Members
  • 2 posts
  • Real Name:Ralph

Posted 16 January 2012 - 12:13 PM

View PostTransformer, on 13 January 2012 - 01:11 PM, said:

Like some others earlier, everything is working when I installed it. The only thing that is off, is the placing of the box.

It shows at the bottom of the page instead of on top. I'm running 2.3.1

I think it's quite a small issue, but I can't fix it.

Anyone?

Solved it myself, for people who encounter this problem in the future: just move the piece of coding that is supposed to go in the index.php a little higher in the file.

#264   Eszaraxe

Eszaraxe
  • Members
  • 63 posts
  • Real Name:Hawkan
  • Gender:Male
  • Location:Sweden

Posted 23 January 2012 - 01:00 PM

I have installed "subcategory textboxes för 2.3 v1.2" and everything works fine.
Question, Is there any way to get the category images shown in the upper right corner, like in 2.2 or in 2.3 without this contrib?
osCommerce 2.3.1 - QTPro 4.6.1 - Ultimate SEO URL's 5 Pro r205 - Discount Code 3.1 - Column listing with smart columns - Products Sort and some more

#265   Eszaraxe

Eszaraxe
  • Members
  • 63 posts
  • Real Name:Hawkan
  • Gender:Male
  • Location:Sweden

Posted 23 January 2012 - 06:39 PM

Next issue I found with this contrib, when I choose to display the text on product page also it looks good until I put the products in 2 different categories, then I get 2 category textes on the product page. Anybody else who have ancountered this problem or anybody who have any idea of how to solve it?
osCommerce 2.3.1 - QTPro 4.6.1 - Ultimate SEO URL's 5 Pro r205 - Discount Code 3.1 - Column listing with smart columns - Products Sort and some more

#266   Eszaraxe

Eszaraxe
  • Members
  • 63 posts
  • Real Name:Hawkan
  • Gender:Male
  • Location:Sweden

Posted 24 January 2012 - 02:18 PM

I guess this is the code that shows the textbox on the products page? What should I add/change so it doesn't show it several times as in my post above?

<?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 ("<div class=\"cat_info_box\">".$category_info_text['categories_description']."</div>");
  }
    }
  }
}
?>
osCommerce 2.3.1 - QTPro 4.6.1 - Ultimate SEO URL's 5 Pro r205 - Discount Code 3.1 - Column listing with smart columns - Products Sort and some more