Post by John2810 » Mon Sep 16, 2013 7:06 pm

Hi,

I'm trying to remove a manufacturer from some of my products. I tried deleting from the Manufacturer field, clicked save but it still comes up when I check on it again.

As a result I cannot remove that manufacturer from the list of manufacturers.

Any solutions to this? This is a Opencart bug isn't it?

I'm using 1.5.6

New member

Posts

Joined
Tue Feb 19, 2013 5:37 pm

Post by John2810 » Mon Sep 16, 2013 10:06 pm

Hello...anyone?

New member

Posts

Joined
Tue Feb 19, 2013 5:37 pm

Post by spyro85 » Tue Oct 29, 2013 10:46 pm

Not sure if it's a bug but I had the same issue.

Solution:
I already use this export/import module - http://www.opencart.com/index.php?route ... load_id=32

Using the tool I exported my store, removed the association to manufacturer in MS Excel (deleted contents of cell), imported the edited data which sorted the problem.

Hope this helps :)

Newbie

Posts

Joined
Fri Nov 30, 2012 9:38 pm

Post by Qphoria » Tue Oct 29, 2013 11:51 pm

Confirmed Bug (been there since autocomplete was added)
This is one of the few (if not only) auto-completes that not only have the selection, but also use the same field for the value. So it needed to have additional handling when cleared.

The FIX:

1. EDIT: admin/view/template/catalog/product_form.tpl

2. FIND:

Code: Select all

$('input[name=\'manufacturer\']').autocomplete({
3. BEFORE, ADD:

Code: Select all

$('input[name=\'manufacturer\']').blur(function() {
	if ($('input[name=\'manufacturer\']').attr('value') == '') {
		$('input[name=\'manufacturer_id\']').attr('value', '0');
	}
});

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Larry1967 » Sun Jan 05, 2014 3:03 am

Worked perfectly! Thanks much!

Newbie

Posts

Joined
Sat Jan 04, 2014 11:27 am

Post by billynoah » Thu Apr 03, 2014 1:27 am

Yes.

Image


Active Member

Posts

Joined
Tue Jan 15, 2013 12:46 pm

Post by Sparx-262 » Mon Apr 07, 2014 4:35 pm

Perfect! Thanks for the fix!

Newbie

Posts

Joined
Mon Dec 09, 2013 3:43 am

Post by excelgrp » Wed Jul 16, 2014 5:23 pm

Great cheers for this fix, this is certainly one annoying bug in opencart and am surprised it's still yet to be fixed as I only installed latest version of opencart the other day :)

Newbie

Posts

Joined
Tue May 08, 2012 4:58 am
Who is online

Users browsing this forum: No registered users and 23 guests