Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

[Addon] Categories Accordion Box for 2.3.1


146 replies to this topic

#61 chrish123

  • Community Member
  • 126 posts
  • Real Name:Chris

Posted 13 January 2012, 14:59

View Postbriggers, on 13 January 2012, 11:51, said:

Addition to post #59 above

It seems that after adding a new category (see point 2) it is necessary to "Reset" the cache. Then the new category shows every time.

Would it be possible to automatically clear the cache after adding a new category?

Yes, it's possible, you could open admin/categories.php and find:

if (USE_CACHE == 'true') {
tep_reset_cache_block('categories');
tep_reset_cache_block('also_purchased');
}

and add in:

tep_reset_cache_block('categories_box2');

Untested but it may work, ill have a look later hopefully, it may require further coding like in the frontend in the admin functions part.

Edited by chrish123, 13 January 2012, 15:00.


#62 kymation

  • Community Sponsor
  • 5,662 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 13 January 2012, 19:15

1. True. I'll take a look at that. It may not be possible, due to the nature of the jQuery Accordion style.

2. The cache should clear after adding a new category. That's a bug. I'll take a look at that as well.

Regards
Jim
My Addons

Banners Box 2.3.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support

#63 bassmaga

  • Community Member
  • 27 posts
  • Real Name:Kamil
  • Gender:Male
  • Location:Poland

Posted 21 January 2012, 14:29

View PostFrankCRFG, on 25 February 2011, 01:33, said:

Hello,

Is there a way so when you click on a category link it doesnt load the page but just expands (For example: you click on the "Hardware" link on the navbar while on index.php and it expands the category but still stays on index.php instead of going to the category list page)


Thank you

Thx for great addon.

It is possible to make this and disable reload?

#64 kymation

  • Community Sponsor
  • 5,662 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 21 January 2012, 18:59

View Postbassmaga, on 21 January 2012, 14:29, said:

Thx for great addon.

It is possible to make this and disable reload?

There is no reload involved, so I don't know what you mean.

Regards
Jim

Edited by kymation, 21 January 2012, 19:11.

My Addons

Banners Box 2.3.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support

#65 kymation

  • Community Sponsor
  • 5,662 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 04 March 2012, 23:09

I've uploaded a new version that fixes a few annoying bugs:
  • If you click on a top-level category when you are already looking at a subcategory of that category, the box now opens the category you clicked on.
  • Cache now works correctly and does not interfere with the old categories box cache.
  • The box now works properly on shared SSL pages. This is an option for those users who have shared SSL and are seeing problems.
I smuggest an upgrade only for those users who are having problems. The appearance is otherwise the same as the previous release.

Regards
Jim
My Addons

Banners Box 2.3.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support

#66 kymation

  • Community Sponsor
  • 5,662 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 05 March 2012, 19:48

I've uploaded another bugfix release to correct a typo in the module file. If you have installed version 1.1, please replace the module file with the one in this package.

Regards
Jim
My Addons

Banners Box 2.3.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support

#67 shimong

  • Community Member
  • 5 posts
  • Real Name:Shimon Gewing

Posted 09 March 2012, 21:53

View Postkymation, on 15 February 2011, 04:31, said:

This addon provides a Categories box styled with the jQuery UI Accordion controls. Top-level categories are Section headers and subcategories are links inside the Content panels. The box works the same way the stock osCommerce box does, the difference is only in styling.

Code is now available here.

Regards
Jim

I've copied all the files to the correct directories. In the admin panel, I go to modules, boxes and press the install button.
I get a page with the accordian catalog but there is no further button to install. Any ideas?

#68 kymation

  • Community Sponsor
  • 5,662 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 09 March 2012, 22:51

That usually means there's an error in one of the files. Try uploading the files again.

Regards
Jim
My Addons

Banners Box 2.3.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support

#69 shimong

  • Community Member
  • 5 posts
  • Real Name:Shimon Gewing

Posted 12 March 2012, 02:44

View Postkymation, on 09 March 2012, 22:51, said:

That usually means there's an error in one of the files. Try uploading the files again.

Regards
Jim
I tried but no difference. Below is a screenshot. It looks good but there is nothing to the right of what you see here.

#70 shimong

  • Community Member
  • 5 posts
  • Real Name:Shimon Gewing

Posted 12 March 2012, 02:48

[img]http://www.talproducts.com/accordian problem.jpg[/img]

#71 kymation

  • Community Sponsor
  • 5,662 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 12 March 2012, 03:29

That's still most likely an error in one of the files. This code works on my test site, so a code error is unlikely (although not impossible.)

The page is halting on an error. You can't see the error because you have error display blocked. You need to find your error log and see what it says. If you can't access the PHP logs, edit your admin/includes/application_top.php to turn on error reporting. Change this line

  error_reporting(E_ALL & ~E_NOTICE);

to this

  error_reporting(E_ALL);

Regards
Jim
My Addons

Banners Box 2.3.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support

#72 ciclopro

  • Community Member
  • 1 posts
  • Real Name:david

Posted 16 March 2012, 20:06

View PostFrankCRFG, on 25 February 2011, 01:33, said:

Hello,

Is there a way so when you click on a category link it doesnt load the page but just expands (For example: you click on the "Hardware" link on the navbar while on index.php and it expands the category but still stays on index.php instead of going to the category list page)


Thank you

Hi Frank,

I was looking for the same request and I found this very good solution:
http://mjawaid.wordpress.com/2011/12/05/displaying-all-categories-and-sub-categories-in-category-box-in-oscommerce/

I think that this is very important property for this contribution.

#73 tamem

  • Community Member
  • 3 posts
  • Real Name:Sebastian

Posted 20 March 2012, 06:36

First of all, I want to say that these contrib is awesome!!! Thank you!

Could anyone help me? I´ve these problem, I want to separete the Accordion Box to the other boxes.
I can add a "padding-bottom" but I don´t get a good proportion

[img]http://fotos.subefotos.com/e4352c0c18a413766cabbdb65e039bd8o.jpg[/img]

#74 kymation

  • Community Sponsor
  • 5,662 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 20 March 2012, 18:06

In-line CSS seems to work for me. In catalog/includes/modules/boxes/bm_categories_accordion.php, find this line:

	  $data .= '    <div id="categoriesMenu">' . PHP_EOL;

and change it to

	  $data .= '    <div id="categoriesMenu" style="padding-bottom: 10px;">' . PHP_EOL;

Adjust the 10px to suit.

Regards
Jim
My Addons

Banners Box 2.3.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support

#75 tamem

  • Community Member
  • 3 posts
  • Real Name:Sebastian

Posted 20 March 2012, 18:20

View Postkymation, on 20 March 2012, 18:06, said:

In-line CSS seems to work for me. In catalog/includes/modules/boxes/bm_categories_accordion.php, find this line:

	  $data .= '	<div id="categoriesMenu">' . PHP_EOL;

and change it to

	  $data .= '	<div id="categoriesMenu" style="padding-bottom: 10px;">' . PHP_EOL;

Adjust the 10px to suit.

Regards
Jim

THANK YOU!!! really fast answer!
it works!

#76 kymation

  • Community Sponsor
  • 5,662 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 20 March 2012, 18:22

Setting padding in the stylesheet also works:

div#categoriesMenu {
  padding-bottom: 10px;
}

Regards
Jim
My Addons

Banners Box 2.3.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support

#77 tamem

  • Community Member
  • 3 posts
  • Real Name:Sebastian

Posted 20 March 2012, 19:01

View Postkymation, on 20 March 2012, 18:22, said:

Setting padding in the stylesheet also works:

div#categoriesMenu {
  padding-bottom: 10px;
}

Regards
Jim

thank you Jim! I used your first solution

#78 AndrewBevan

  • Community Member
  • 9 posts

Posted 23 March 2012, 20:19

I have a small problem... whenever I make a change to my categories (i.e. add or remove a category) it is not reflected on the site...
Seems like I have a caching issue? Any help would be appreciated.

I see this in the CacheControl section:
TEXT_CACHE_CATEGORIES_ACCORDION File does not exist


Thanks
Andrew

#79 kymation

  • Community Sponsor
  • 5,662 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 23 March 2012, 20:41

Look in your cache directory using FTP or your host's control panel. Delete any files in that directory. If that doesn't help, the problem is elsewhere.

Regards
Jim
My Addons

Banners Box 2.3.1 Support
Categories Accordion Box 2.3.1 Support
Categories Images Box 2.2x 2.3.1 Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.1 Support
Get 1 Free 2.2x Support
Include HTML and Text Boxes 2.2x
jQuery Banner Rotator 2.2x 2.3.1 Support
Modular Front Page 2.3.1 Support
Modular SEO Header Tags 2.3.1 Support
More Pics 2.2x Support
MVS 2.2x Support
osC Catalog 2.2x Support
PDF Datasheet 2.3.1 Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.1 Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.1 Support
Similar Products Box 2.2x
Theme Switcher 2.3.1 Support

#80 AndrewBevan

  • Community Member
  • 9 posts

Posted 23 March 2012, 20:45

View Postkymation, on 23 March 2012, 20:41, said:

Look in your cache directory using FTP or your host's control panel. Delete any files in that directory. If that doesn't help, the problem is elsewhere.

Regards
Jim
Worked thanks !!
Great Contrib BTW!

One question do I have to do that everytime?

Edited by AndrewBevan, 23 March 2012, 20:57.