Support Forums - Classified Ads Script Osclass
Osclass plugin support => Attributes Plugins => Topic started by: slicer on February 12, 2018, 10:37:38 PM
-
Hey Frost I'm not sure if this is is bug or what but I'm reporting just in case:
when I add an attribute and activate "category search" while Stela, you select an option the child of that options doesn't load correctly instead it repeats the same name each line.
Image example:
(https://i.imgur.com/Cy2dBd0.jpg)
-
@slicer
Do you think you can reproduce it on demo site?
-
sure thing
-
@slicer
Ok please send me way how to get error on demo.
-
@slicer
Ok please send me way how to get error on demo.
I tried but I'm not able to reproduce it on demo site because it happens on Stela.
-
Here is my link so you can check my sample ad, try using advanced search select anything on Select Mercedes for example and the next sub model will show bugged results, unless you select on it won't show the real name.
http://184.73.14.220/index.php?page=search&sCategory=2 (http://184.73.14.220/index.php?page=search&sCategory=2)
-
on add item everything works ok and fast....
-
yeah adding works really nice, the problem with stela is calling attribs in front using advance search the second item won't show up correctly, instead it will repeat same value over and over.
-
I dont see the search at all on your website :(
-
@frosticek any news on this bug on stela search page?
::)
(https://i.imgur.com/pceKtjO.jpg)
-
I have no way to debug it on your site. Were you able to reproduce it on demo site?
-
Sure let me try ^^
-
I can't reproduce on your demo because you are not using Stela. But I found something that might help you to debug and you can test it on my link 8)
(https://i.imgur.com/RU4JjFk.jpg)
http://54.209.6.140/index.php?page=search&sCategory=2 (http://54.209.6.140/index.php?page=search&sCategory=2)
-
Image is too small, ... but I think I know what is issue
Replace content of your global.js with latest one:
https://stela.mb-themes.com/oc-content/themes/stela/js/global.js?v=122132132
-
Image is too small, ... but I think I know what is issue
Replace content of your global.js with latest one:
https://stela.mb-themes.com/oc-content/themes/stela/js/global.js?v=122132132
I replaced the JS content and the error dissipated from the console, perhaps the error loading items from sub-values persists.
EX: on category page you choose "Show More Filters" to see those attributes for "vehĂcles category", then you select make and a second sub-attribute shows up, so when you clic it it shows a list of repeated items. you can figure out on my link.
For me is related to ajax or something, because it reloads something and bring you that list bugged.
Take into account:
It works perfectly when posting a new ad. so I don't think it is related to attribute itself.
if you randomly clic any item on that bugged list it ends up refreshing that list with correct values.
-
Can you switch to bended and try it with this theme?
-
Can you switch to bended and try it with this theme?
Sure ^^ switched to Bender and it works like a charm, take a look if you like.
-
Let me setup stela and attributes plugin on my dev server and we can try to reproduce it.
-
Sure ^_^ thanks in advance for your great support and patience with customers.
-
@slicer
https://dev1.abprofitrade.eu/
(admin access)
[email protected]
demo123
-
@slicer
https://dev1.abprofitrade.eu/
(admin access)
[email protected]
demo123
It's happening on your demo as well
to reproduce:
clic on (https://dev1.abprofitrade.eu/index.php?page=search&sCategory=2)
then clic on show more filters (right corner of search button)
then clic on Select Value ...
clic Mercedes Benz
then boom you will see
skoda
skoda
skoda
or
whatever
whatever
whatever
forever
when you clic on that it fixes itself but the next sub-secuent value will carry on the same bug.
A question: How do you use that banner space? my banner plugin doesn't work that great >:(
-
@slicer
Thanks, it is pretty hard bug and you will not be able to fix it (probably).
Go to file:
oc-content/plugins/attributes/functions.php
Find code:
$html .= '<option value="' . $c['pk_i_id'] . '">' . atr_name($s['locales']) . '</option>';
Replace it with:
$html .= '<option value="' . $c['pk_i_id'] . '">' . atr_name($c['locales']) . '</option>';
(so you change $s into $c).
8)
-
@slicer
Thanks, it is pretty hard bug and you will not be able to fix it (probably).
Go to file:
oc-content/plugins/attributes/functions.php
Find code:
$html .= '<option value="' . $c['pk_i_id'] . '">' . atr_name($s['locales']) . '</option>';
Replace it with:
$html .= '<option value="' . $c['pk_i_id'] . '">' . atr_name($c['locales']) . '</option>';
(so you change $s into $c).
8)
YESSSSS ^_^ it works =) ty ty
well I have no idea what the heck that thing does or what it means but... I do know how to replace it rofl
-
It was taking name of last parent instead of children.