Support Forums - Classified Ads Script Osclass
Osclass theme support => Beta Osclass Theme => Topic started 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.
-
Is this theme specific or same on all themes?
-
Yes, he does it in other matters as well
-
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.
-
Thanks, will look into that
-
Do we have any news about this problem?
-
Yes.
Tested and could not reproduce.
Make sure you use jQuery 3.x
-
Tested with jQuery 3.x.x and 1.x.x but nothing changed. The problem persists (Only in categories that have 5 levels)
-
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.
-
I tested with 4 levels and could not reproduce.
-
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.
-
Could not reproduce means, that based on your steps, it was not possible to reproduce such issue.
-
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.
-
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.
-
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
-
Its broken for me.
-
What do you mean "broken"?
-
Broken - css/js was not loading at all
-
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.
-
Not for me
-
Is there anything I should do to fix the problem?
-
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?
-
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.
-
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.
-
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?
-
I was able to reproduce in Beta, but is this happening in backoffice? Is this happening with Sigma theme?
-
The problem is in the cascading drop-down menu and I think SIGMA does not have such a menu
-
Omega?
-
He does it at OMEGA too
-
Is there anything new about this issue?
-
no, could not reproduce on omega.
-
Have you tried it with 4 or 5 category levels? The problem arises with only 5 levels of categories.
-
Sample editor with 5 levels of categories
-
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.
-
As I said many times, could not reproduce and sending other images will not help at all.
-
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
-
Tested 5 levels, omega, osclass 8.2.1, jquery 3
-
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)
-
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
-
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.
-
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
-
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?
-
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.
-
Can you please provide the file path.
-
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:
$('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?
-
Yes it's fine, it's just a limit
-
Finally the problem is solved.
-
Glad to hear that