*

MB Themes

Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
« Reply #30 on: February 28, 2024, 08:34:48 AM »
no, could not reproduce on omega.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

kriskoyk

  • *****
  • 315 posts
Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
« Reply #31 on: February 28, 2024, 08:49:51 AM »
Have you tried it with 4 or 5 category levels?  The problem arises with only 5 levels of categories.

*

kriskoyk

  • *****
  • 315 posts
Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
« Reply #32 on: February 28, 2024, 09:00:56 AM »
Sample editor with 5 levels of categories

*

kriskoyk

  • *****
  • 315 posts
I changed OMEGA to BENDER leaving the categories at 5 levels. The problem persists, indicating that it is probably not a theme problem but an OSCLASS 8.2.1 problem with more than 4 levels of categories.

Sample of the problem in the image.

*

MB Themes

As I said many times, could not reproduce and sending other images will not help at all.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

kriskoyk

  • *****
  • 315 posts
Please tell me the check you did was with 4 or 5 category levels. It's important to me because if you've checked with 5 levels and it doesn't raise a representation of the problem then I should look to see if there's a problem with the website hosting

*

MB Themes

Tested 5 levels, omega, osclass 8.2.1, jquery 3
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

kriskoyk

  • *****
  • 315 posts
You said in one of the answers that you were able to reproduce the problem in the BETA theme. Then what was the development?
(I'm sorry to come back to the topic but I do it because the problem exists and I can't solve it. and of course it's not possible to keep a problematic site alive)

*

kriskoyk

  • *****
  • 315 posts
Can anyone help resolve this issue with Osclass 8.2.1 (OSCLASS 8.2.1, OMEGA theme, PHP 8.1, jQuery Version 3.x.x)? As I show in the video when we want to edit an ad with 5 levels of categories and change the category of the item, then Osclass has a problem.

See in the video the problem I have.
https://www.youtube.com/watch?v=a-GQLIWZIBo

*

kriskoyk

  • *****
  • 315 posts
Unfortunately this problem on the publish/edit category page remains unsolved and the only way to overcome it is the "Interactive Select Box" option at least until the new version of Osclass comes out, hoping for its solution.

*

MB Themes

Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
« Reply #40 on: September 02, 2024, 02:22:49 PM »
Can you reproduct here?
https://dev7.abprofitrade.eu/en/item/new

[email protected] / demo123

It's ahead of 8.2.1 with many adjustments
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

kriskoyk

  • *****
  • 315 posts
Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
« Reply #41 on: September 02, 2024, 07:24:27 PM »
In the demo you sent, the categories work correctly. (With 5 levels of categories)

What could be possible causes of it not working properly for me? What should I be looking at?

« Last Edit: September 02, 2024, 07:30:47 PM by kriskoyk »

*

MB Themes

Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
« Reply #42 on: September 03, 2024, 09:42:35 PM »
Best is to wait for Osclass update.
There was a lot of work done cleaning and optimizing code, as there is option to define custom level depth.

Quick tip - in core, frm, item form file, there is javascript for loop and number "4".
Search for that for and change it to 8.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

kriskoyk

  • *****
  • 315 posts
Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
« Reply #43 on: September 04, 2024, 06:09:44 PM »
Can you please provide the file path.

*

kriskoyk

  • *****
  • 315 posts
Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
« Reply #44 on: September 04, 2024, 07:59:19 PM »
I followed the path oc-includes/osclass/frm/Item.form.class.php and changed 4 to 8 as below and the category levels work correctly:
Code: [Select]
$('body').on('change', '[name^="select_"]', function() {
          var depth = parseInt($(this).attr("depth"));
          for(var d=(depth+1); d<=8; d++) {
            $("#select_"+d).trigger('removed');
            $("#select_"+d).remove();
          }

Is it correct?