Page 1 of 1

Already exists message when adding attribute/filters/etc

Posted: Wed Jan 13, 2021 8:27 pm
by Ledg
Hi, all.

I'm using OpenCart 3.0.3.6 and I'm making a site for spare autoparts.

I wonder if there's a way to add a box which says for example "This attribute/filter/make etc. already exists" when there's a duplicate name?

By the time I'm done with my products, they'll probably be a hundred attributes and filters so it will be hard to keep count which ones I already added.

Thanks in advance.

Re: Already exists message when adding attribute/filters/etc

Posted: Wed Jan 13, 2021 9:26 pm
by straightlight
I wonder if there's a way to add a box which says for example "This attribute/filter/make etc. already exists" when there's a duplicate name?
Where? Any URL with the precise page you could demonstrate?

Re: Already exists message when adding attribute/filters/etc

Posted: Wed Jan 13, 2021 9:28 pm
by Ledg
straightlight wrote:
Wed Jan 13, 2021 9:26 pm
I wonder if there's a way to add a box which says for example "This attribute/filter/make etc. already exists" when there's a duplicate name?
Where? Any URL with the precise page you could demonstrate?
Sorry If I didn't word it correclty, I meant in the admin menu when you add new attributes/filters etc if there's a way if a name is duplicate, to show a message like this.

Re: Already exists message when adding attribute/filters/etc

Posted: Wed Jan 13, 2021 9:33 pm
by straightlight
Ledg wrote:
Wed Jan 13, 2021 9:28 pm
straightlight wrote:
Wed Jan 13, 2021 9:26 pm
I wonder if there's a way to add a box which says for example "This attribute/filter/make etc. already exists" when there's a duplicate name?
Where? Any URL with the precise page you could demonstrate?
Sorry If I didn't word it correclty, I meant in the admin menu when you add new attributes/filters etc if there's a way if a name is duplicate, to show a message like this.
Yes, by creating a new event, and output the error message in JS codes, this could be done. However, ensure to install the TWIG Modification fix from the Marketplace since there's currently a bug with the admin TWIG outputs when using the events.

Re: Already exists message when adding attribute/filters/etc

Posted: Wed Jan 13, 2021 11:19 pm
by Ledg
straightlight wrote:
Wed Jan 13, 2021 9:33 pm
Ledg wrote:
Wed Jan 13, 2021 9:28 pm
straightlight wrote:
Wed Jan 13, 2021 9:26 pm


Where? Any URL with the precise page you could demonstrate?
Sorry If I didn't word it correclty, I meant in the admin menu when you add new attributes/filters etc if there's a way if a name is duplicate, to show a message like this.
Yes, by creating a new event, and output the error message in JS codes, this could be done. However, ensure to install the TWIG Modification fix from the Marketplace since there's currently a bug with the admin TWIG outputs when using the events.
I see, thanks.

Is there a tutorial how to do it cause this is not my forte or should I just find someone to do it for me?

Thanks.

Re: Already exists message when adding attribute/filters/etc

Posted: Thu Jan 14, 2021 12:57 am
by straightlight
Ledg wrote:
Wed Jan 13, 2021 11:19 pm
straightlight wrote:
Wed Jan 13, 2021 9:33 pm
Ledg wrote:
Wed Jan 13, 2021 9:28 pm


Sorry If I didn't word it correclty, I meant in the admin menu when you add new attributes/filters etc if there's a way if a name is duplicate, to show a message like this.
Yes, by creating a new event, and output the error message in JS codes, this could be done. However, ensure to install the TWIG Modification fix from the Marketplace since there's currently a bug with the admin TWIG outputs when using the events.
I see, thanks.

Is there a tutorial how to do it cause this is not my forte or should I just find someone to do it for me?

Thanks.
You can always find someone to do to it for you by creating a new service request in the Commercial Support section of the forum, by contacting an Opencart partner by using the Resources link at the top of the site or contact me directly via PM to get this done as a custom job.

Re: Already exists message when adding attribute/filters/etc

Posted: Thu Jan 14, 2021 6:57 pm
by paulfeakins
Ledg wrote:
Wed Jan 13, 2021 11:19 pm
Is there a tutorial how to do it cause this is not my forte or should I just find someone to do it for me?
If you can't find an extension, you could pay a developer such as ourselves or post a job in the Commercial Support Forum.

Re: Already exists message when adding attribute/filters/etc

Posted: Thu Jan 14, 2021 8:21 pm
by straightlight
You could also give this one a try: https://www.opencart.com/index.php?rout ... n_id=40949 .

Re: Already exists message when adding attribute/filters/etc

Posted: Tue Jan 19, 2021 2:58 pm
by Naheed
Yes, with the help of an extension you can be able to detect duplicate products.
Following is some of the extensions that can help you out:
https://www.opencart.com/index.php?rout ... ct%20model.
https://www.opencart.com/index.php?rout ... n_id=17330