Support Forums - Classified Ads Script Osclass

Osclass theme support => Beta Osclass Theme => Topic started by: kriskoyk on January 21, 2024, 05:47:39 PM

Title: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: kriskoyk on January 21, 2024, 05:47:39 PM
When we select cascading dropdown menus with 5 category levels on the listing page then there is a problem.
After selecting the 5th category, if we then come back to change the 4th category, as many times as we click on the 4th category, as many additional checkboxes appear.

Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: MB Themes on January 23, 2024, 01:39:37 PM
Is this theme specific or same on all themes?
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: kriskoyk on January 23, 2024, 02:08:10 PM
Yes, he does it in other matters as well
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: kriskoyk on January 24, 2024, 12:12:44 PM
The problem also occurs in the Osclass Back office (Omega theme). When we have 5 category levels then it is not possible to edit a category by admin. It messes up the drop down menu.
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: MB Themes on January 24, 2024, 03:44:47 PM
Thanks, will look into that
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: kriskoyk on February 05, 2024, 11:35:10 AM
Do we have any news about this problem?
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: MB Themes on February 05, 2024, 05:05:26 PM
Yes.
Tested and could not reproduce.
Make sure you use jQuery 3.x
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: kriskoyk on February 05, 2024, 06:23:05 PM
Tested with jQuery 3.x.x and 1.x.x but nothing changed. The problem persists (Only in categories that have 5 levels)
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: kriskoyk on February 05, 2024, 09:38:38 PM
As I explained, the problem also exists in the Omega theme in the Osclass management, (with jQuery Version 3.x .x and 1.x .x.) as a result of which it is impossible to correct the catecory of an object.
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: MB Themes on February 06, 2024, 10:05:02 AM
I tested with 4 levels and could not reproduce.
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: kriskoyk on February 06, 2024, 12:06:50 PM
What do you mean by "could not reproduce"? Take a test with 5 class levels. Post an ad in the 5th category, then come back to fix the 3rd or 4th category of the same post and you'll see the problem.
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: MB Themes on February 06, 2024, 12:51:41 PM
Could not reproduce means, that based on your steps, it was not possible to reproduce such issue.
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: kriskoyk on February 06, 2024, 01:01:41 PM
Have you tried with 5 class levels as I describe? If you have tried it with 5 class levels and it doesn't give you a problem then I need to look into whether there is a problem with my own installation.
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: kriskoyk on February 06, 2024, 02:05:07 PM
I did a clean install of Osclass 8.2.1 with Sigma Osclass Theme 1.6.0 as the only theme. I saw the problem reproduced in the OMEGA theme's dropdown menu.
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: kriskoyk on February 09, 2024, 07:48:15 PM
Enter the http://test0.gr/ site and start a registration by selecting the fifth category level. Before continuing go back to the second level of the same category and select another subcategory. See how it works. there's a problem
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: MB Themes on February 10, 2024, 12:20:16 PM
Its broken for me.
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: kriskoyk on February 10, 2024, 04:08:18 PM
What do you mean "broken"?
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: MB Themes on February 11, 2024, 10:26:46 AM
Broken - css/js was not loading at all
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: kriskoyk on February 11, 2024, 11:07:07 AM
The installation was done from the ZIP-OSCLASS 8.2.1 & BETA 1.6.1 as I downloaded them from you without disturbing them at all. On the test0.gr site everything works normally for me except for the known problem with the 5th category level.
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: MB Themes on February 11, 2024, 11:26:29 AM
Not for me
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: kriskoyk on February 11, 2024, 11:38:47 AM
Is there anything I should do to fix the problem?
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: kriskoyk on February 11, 2024, 02:27:43 PM
Please, in one of the DEMO themes you have, can you put 5 category levels with cascading dropdown so we can see how it behaves?
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: MB Themes on February 11, 2024, 02:44:50 PM
Most probably SSL issue.
Demo is not for bugs testing. You mentioned its in backoffice Omega theme too.
That is what is interesting for us.
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: kriskoyk on February 11, 2024, 03:02:00 PM
The solution left is to remove the 5th level of categories for now at least, until we see what happens later with this problem.
Thanks for the replies.
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: kriskoyk on February 12, 2024, 02:47:39 PM
One last attempt. I have changed hosting provider, can you please go to https://www.test0.gr/ and see what it does with the 5th category level?
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: MB Themes on February 12, 2024, 03:04:28 PM
I was able to reproduce in Beta, but is this happening in backoffice? Is this happening with Sigma theme?
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: kriskoyk on February 12, 2024, 04:47:38 PM
The problem is in the cascading drop-down menu and I think SIGMA does not have such a menu
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: MB Themes on February 12, 2024, 04:59:02 PM
Omega?
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: kriskoyk on February 12, 2024, 05:18:09 PM
He does it at OMEGA too
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: kriskoyk on February 27, 2024, 11:14:28 AM
Is there anything new about this issue?
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: MB Themes on February 28, 2024, 08:34:48 AM
no, could not reproduce on omega.
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: kriskoyk 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.
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: kriskoyk on February 28, 2024, 09:00:56 AM
Sample editor with 5 levels of categories
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: kriskoyk on March 01, 2024, 06:32:05 PM
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.
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: MB Themes on March 02, 2024, 05:30:36 PM
As I said many times, could not reproduce and sending other images will not help at all.
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: kriskoyk on March 02, 2024, 07:34:04 PM
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
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: MB Themes on March 03, 2024, 11:10:21 AM
Tested 5 levels, omega, osclass 8.2.1, jquery 3
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: kriskoyk on March 06, 2024, 05:42:50 PM
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)
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: kriskoyk on March 19, 2024, 02:51:24 AM
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
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: kriskoyk on August 30, 2024, 06:03:21 PM
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.
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: MB Themes on September 02, 2024, 02:22:49 PM
Can you reproduct here?
https://dev7.abprofitrade.eu/en/item/new

demo@demo.com / demo123

It's ahead of 8.2.1 with many adjustments
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: kriskoyk 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?

Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: MB Themes 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.
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: kriskoyk on September 04, 2024, 06:09:44 PM
Can you please provide the file path.
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: kriskoyk 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?
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: MB Themes on September 05, 2024, 01:56:04 PM
Yes it's fine, it's just a limit
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: kriskoyk on September 11, 2024, 06:44:19 PM
Finally the problem is solved.
Title: Re: Category dropdown menu - Cascading drop-down menus with 5 category levels
Post by: MB Themes on September 13, 2024, 09:30:31 PM
Glad to hear that