Osclass forums

Support forums => Plugins => Cars attributes => Topic started by: HORTENSIA on July 31, 2018, 10:18:03 pm

Title: Manually type the type of car
Post by: HORTENSIA on July 31, 2018, 10:18:03 pm
I want to manually type the type of car when I add ad
What needs to be changed I ask for help pleace. .
Title: Re: Manually type the type of car
Post by: HORTENSIA on August 01, 2018, 06:34:38 pm
Does anyone know how to change the code?
Title: Re: Manually type the type of car
Post by: patrickFromCroatia on August 01, 2018, 09:57:06 pm
Hello,

There is no simple solution. You would basically need to modify the whole plugin because when it comes to makes and models, they all rely on ID's, which you won't have with text only input. I suggest you to use custom fields (check this (https://forums.osclass.org/development/new-type-of-custom-field-suggestion-number-input-and-interval-filter/15/#msg159215) for min and max search) or Custom Attributes (https://market.osclass.org/plugins/attributes/custom-attributes_108) plugin.

Regards.
Title: Re: Manually type the type of car
Post by: HORTENSIA on August 02, 2018, 11:43:30 am
I work with both plugins on the ad car page.
Custom Attributes and Cars attributes.

On the ad page  (/item/new)
How can I set up first Custom Attributes and then options from Cars Attributes.
Title: Re: Manually type the type of car
Post by: patrickFromCroatia on August 02, 2018, 05:00:08 pm
The easiest way is to completely uninstall "Cars attributes" while keeping custom attributes and then install it back again. The other way is to modify both plugins and add priorities in hooks.

Regards.
Title: Re: Manually type the type of car
Post by: HORTENSIA on August 03, 2018, 02:17:04 am
I have already modified both the plugins.
Please tell me how I can add priorities in hooks. (in both plugins)

Title: Re: Manually type the type of car
Post by: HORTENSIA on August 04, 2018, 01:21:45 pm
SOLVED