VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: dslove on December 16, 2016, 11:51:04 AM

Title: Cannot add Manufacturer to new or existing product in VM 3.0.18.6
Post by: dslove on December 16, 2016, 11:51:04 AM
Joomla 3.6.5 / VM 3.0.18.6 / PHP PHP 5.6.21 / MySQL 5.6.34

Update to VM 3.0.18.6 seems to have made the manufacturers unavailable when creating or editing products. They do appear fine in the "Manufacturers" section though.
Also, when editing a product that already has a manufacturer, upon save the manufacturer is removed automatically.
Title: Re: Cannot add Manufacturer to new or existing product in VM 3.0.18.6
Post by: Jörgen on December 16, 2016, 12:14:55 PM
Have had this issue just recently. Some JavaScript mixup I guess.

Starting the webbrowser fresh solved my issue. Worth a try, does not take long :)

regards

Jörgen @ Kreativ Fotografi
Title: Re: Cannot add Manufacturer to new or existing product in VM 3.0.18.6
Post by: dslove on December 16, 2016, 12:29:34 PM
Dear Jörgen thank you for your immediate response :)

Unfortunately, I tried emptying all website cache (site + admin side), all browser cache, and then restarting my browser (I even tried a different browser), wihtout any success :(

Please see screenshot.
Title: Re: Cannot add Manufacturer to new or existing product in VM 3.0.18.6
Post by: Jörgen on December 16, 2016, 13:03:07 PM
OK,

At least You tried, it happened exactly like this to me, I restarted the browser and I was good to go. Has never come back since then. Saving a Product in this case does exactly what You say, it removes the manufacturer. I have 3.0.18.5 installed right and no issues like this. Do You have any extra plugins or some fancy theme in the admin installed that could cause this ?

regards

Jörgen @ Kreativ Fotografi
Title: Re: Cannot add Manufacturer to new or existing product in VM 3.0.18.6
Post by: dslove on December 16, 2016, 13:07:45 PM
No, just the default Joomla admin template.
Also, none of the plugins I have installed are relevant to the website's back end.
Title: Re: Cannot add Manufacturer to new or existing product in VM 3.0.18.6
Post by: Studio 42 on December 16, 2016, 18:55:31 PM
Are your manufacturers published?
Try to clear Joomla cache, you have a cache for manufacturer categories, that can perhaps give some problems.
Title: Re: Cannot add Manufacturer to new or existing product in VM 3.0.18.6
Post by: dslove on December 17, 2016, 11:38:16 AM
Quote from: Studio 42 on December 16, 2016, 18:55:31 PM
Are your manufacturers published?
Try to clear Joomla cache, you have a cache for manufacturer categories, that can perhaps give some problems.

Thank you for the suggestion Studio 42, as I mentioned above Joomla cache and browser cache have been cleared multiple times.
In the attachment you can see that manufacturers are published. Sometimes the obvious eludes us, but unfortunately this is not such a case...
Title: Re: Cannot add Manufacturer to new or existing product in VM 3.0.18.6
Post by: Studio 42 on December 18, 2016, 09:47:48 AM
I tested on vm 3.0.18.5 and the manufacturer is added to the product.
I changed manufacturers in the product and it work too.
Try in YOURSITE/administrator/index.php?option=com_virtuemart&view=updatesmigration button
            Install or if necessary update tables      
If this solve the problem
Title: Re: Cannot add Manufacturer to new or existing product in VM 3.0.18.6
Post by: dslove on December 19, 2016, 08:47:14 AM
Quote from: Studio 42 on December 18, 2016, 09:47:48 AM
I tested on vm 3.0.18.5 and the manufacturer is added to the product.
I changed manufacturers in the product and it work too.
Try in YOURSITE/administrator/index.php?option=com_virtuemart&view=updatesmigration button
            Install or if necessary update tables      
If this solve the problem

Thank you for the suggestion Studio 42, unfortunately this didn't help at all.
Also, the category selection field (right under the Manufacturers field) is working fine. So, I guess it is not a JS issue?
Title: Re: Cannot add Manufacturer to new or existing product in VM 3.0.18.6
Post by: Studio 42 on December 19, 2016, 10:59:34 AM
On your javascript debug console, have you some report?
You can open the console with F12 and check in console tab
Title: Re: Cannot add Manufacturer to new or existing product in VM 3.0.18.6
Post by: dslove on December 19, 2016, 11:12:51 AM
No errors in the console Studio 42, I have already checked with Firebug.
Title: Re: Cannot add Manufacturer to new or existing product in VM 3.0.18.6
Post by: Studio 42 on December 19, 2016, 11:33:39 AM
Try this in your console :
jQuery('#virtuemart_manufacturer_id').val('3');
And save your product
this should in your case add the "Ride-on" manufacturer.
In your "html" tab, search for "virtuemart_manufacturer_id" to see if the manufacturers select list is empty or not.
Title: Re: Cannot add Manufacturer to new or existing product in VM 3.0.18.6
Post by: dslove on December 19, 2016, 11:48:59 AM
Ok, so I logged in again to try your solution and this error popped up now on the Console. It had not appeared during the last 3 times I opened the console:

[object Object] sandbox.js (line 340)
Title: Re: Cannot add Manufacturer to new or existing product in VM 3.0.18.6
Post by: dslove on December 19, 2016, 12:03:30 PM
This is crazy, I cannot get this error to appear again after seeing it that one time.
The issue persists though, Manufacturers still not available while editing product.
Title: Re: Cannot add Manufacturer to new or existing product in VM 3.0.18.6
Post by: Studio 42 on December 19, 2016, 18:21:41 PM
Can you check if the select list is empty.
Search for "virtuemart_manufacturer_id" in the HTML file
Title: Re: Cannot add Manufacturer to new or existing product in VM 3.0.18.6
Post by: dslove on December 20, 2016, 07:55:11 AM
Quote from: Studio 42 on December 19, 2016, 18:21:41 PM
Can you check if the select list is empty.
Search for "virtuemart_manufacturer_id" in the HTML file

It seems empty, please see http://imgur.com/a/R8QmI (I cannot upload directly to this forum, I keep getting the message "Upload folder is full")
Title: Re: Cannot add Manufacturer to new or existing product in VM 3.0.18.6
Post by: Studio 42 on December 20, 2016, 09:58:26 AM
Use your shop multi language and you don't translated manufacturers ?
Try to activate Virtuemart debug, to see if VM report something strange.
I checked the 2 called functions and exept perhaps a session problem, i don't see how you cannot have the list returned.
Title: Re: Cannot add Manufacturer to new or existing product in VM 3.0.18.6
Post by: dslove on December 20, 2016, 10:13:22 AM
Quote from: Studio 42 on December 20, 2016, 09:58:26 AM
Use your shop multi language and you don't translated manufacturers ?

Studio 42, this was the issue! The client had not translated the manufacturers! As soon as I translated 2 manufacturers, they immediately appeared in the selection list.
Up until VM 3.0.18.3 this was not an issue though. It only appeared after the update to VM 3.0.18.6

Thank you VERY much for your time & input!