Support Forums - Classified Ads Script Osclass

Osclass plugin support => Attributes Plugins => Topic started by: slicer on February 12, 2018, 10:37:38 PM

Title: Reporting something with categories
Post 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)
Title: Re: Reporting something with categories
Post by: MB Themes on February 13, 2018, 12:05:58 PM
@slicer
Do you think you can reproduce it on demo site?
Title: Re: Reporting something with categories
Post by: slicer on February 13, 2018, 01:17:28 PM
sure thing
Title: Re: Reporting something with categories
Post by: MB Themes on February 13, 2018, 01:44:35 PM
@slicer
Ok please send me way how to get error on demo.
Title: Re: Reporting something with categories
Post by: slicer on February 13, 2018, 07:04:32 PM
@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.
Title: Re: Reporting something with categories
Post by: slicer on February 13, 2018, 10:30:11 PM
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)
Title: Re: Reporting something with categories
Post by: ferry on February 13, 2018, 11:12:20 PM
on add item everything works ok and fast....
Title: Re: Reporting something with categories
Post by: slicer on February 14, 2018, 12:48:02 AM
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.
Title: Re: Reporting something with categories
Post by: ferry on February 14, 2018, 02:40:49 AM
I dont see the search at all on your website :(
Title: Re: Reporting something with categories
Post by: slicer on February 15, 2018, 11:55:17 PM
@frosticek any news on this bug on stela search page?


 ::)

(https://i.imgur.com/pceKtjO.jpg)
Title: Re: Reporting something with categories
Post by: MB Themes on February 16, 2018, 06:22:44 AM
I have no way to debug it on your site. Were you able to reproduce it on demo site?
Title: Re: Reporting something with categories
Post by: slicer on February 16, 2018, 02:54:21 PM
Sure let me try ^^
Title: Re: Reporting something with categories
Post by: slicer on February 16, 2018, 03:20:19 PM
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)
Title: Re: Reporting something with categories
Post by: MB Themes on February 16, 2018, 03:36:12 PM
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
Title: Re: Reporting something with categories
Post by: slicer on February 16, 2018, 04:11:14 PM
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.

Title: Re: Reporting something with categories
Post by: MB Themes on February 16, 2018, 05:01:24 PM
Can you switch to bended and try it with this theme?
Title: Re: Reporting something with categories
Post by: slicer on February 16, 2018, 05:13:54 PM
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.
Title: Re: Reporting something with categories
Post by: MB Themes on February 16, 2018, 06:13:04 PM
Let me setup stela and attributes plugin on my dev server and we can try to reproduce it.
Title: Re: Reporting something with categories
Post by: slicer on February 16, 2018, 06:24:26 PM
Sure ^_^ thanks in advance for your great support and patience with customers.
Title: Re: Reporting something with categories
Post by: MB Themes on February 16, 2018, 07:59:32 PM
@slicer
https://dev1.abprofitrade.eu/

(admin access)
[email protected]
demo123
Title: Re: Reporting something with categories
Post by: slicer on February 16, 2018, 08:30:51 PM
@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  >:(
Title: Re: Reporting something with categories
Post by: MB Themes on February 16, 2018, 08:54:02 PM
@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:
Code: [Select]
$html .= '<option value="' . $c['pk_i_id'] . '">' . atr_name($s['locales']) . '</option>';
Replace it with:
Code: [Select]
$html .= '<option value="' . $c['pk_i_id'] . '">' . atr_name($c['locales']) . '</option>';
(so you change $s into $c).

 8)
Title: Re: Reporting something with categories
Post by: slicer on February 16, 2018, 09:08:58 PM
@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:
Code: [Select]
$html .= '<option value="' . $c['pk_i_id'] . '">' . atr_name($s['locales']) . '</option>';
Replace it with:
Code: [Select]
$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
Title: Re: Reporting something with categories
Post by: MB Themes on February 16, 2018, 10:15:57 PM
It was taking name of last parent instead of children.