VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: NRE on July 19, 2012, 10:21:24 AM

Title: Can't set related product in backend
Post by: NRE on July 19, 2012, 10:21:24 AM
Hi, my first post here so a big "Ciao!" to everybody :)
I've a problem with related products: when I type some letters (or product full name) product icon appear empty with only the grey box (see attachment), and if I select a related product and save it (even if I can't see its image) the product won't be saved.
Any solution?

My conf:
database    5.1.49-3
PHP    5.3.3-7+squeeze8
Web Server Apache/2.2.16 (Debian)
Joomla! 2.5.6 Stable [ Ember ] 19-June-2012 14:00 GMT
VM 2.0.8e

Thank you

[attachment cleanup by admin]
Title: Re: Can't set related product in backend
Post by: rvbgnu on July 20, 2012, 21:59:17 PM
Hi nre,
That looks like a file/folder permission issue... Could you see your product images and icons/thumbnail on the "Product Images" tab?
And what about the "Media FIles" (in VirtueMart > Shop (menu left hand side) > Media Files), can you see the image thumb as well?

If not,
Either: try to upload an image as "Thumb" in your product detail, "Upload File" and select "Replace thumb". Check that the two image folder, below in the blue area, are "Writeable" (in green). If not, you must change these files permissions.

OR: check in VM > Configuration (menu left) > Configuration > Templates (Tab) > Media Files Settings: check if "Enable Dynamic Thumbnail Resizing?" is enabled. If it is enabled, then there is something wrong, maybe with the file permissions again.

Title: Re: Can't set related product in backend
Post by: NRE on July 23, 2012, 10:43:06 AM
Hi and thank you for replay, yes I can upload (and create) thumbnail and I correctly see the thumb image in media list.
Also I've already changed succefully thumbs size by deleting old thumbs images and re-create them again, so I don't think is a permission problem.
Note: even if I select an empty box image in custom tab and then save it (I can see product name followed by "::" in the text field), the related product is not saved.

Any other idea? :)
Thank you.
Title: Re: Can't set related product in backend
Post by: NRE on July 23, 2012, 10:59:38 AM
Another info: this is the first line of the JSON replay.

   Object { id="37", value="Stefano::", label=
<div class="vm_thumb_image">
<span></span>
<input type="hidden" value="" name="field[3][field_type]" />
<input type="hidden" value="" name="field[3][virtuemart_custom_id]" />
<input type="hidden" value="0" name="field[3][virtuemart_customfield_id]" />
<input type="hidden" value="" checked="checked" name="field[3][admin_only]" />
<div class="vmicon vmicon-16-remove"></div>
         </div>"


Is that normal?
Thank you.
Title: Re: Can't set related product in backend
Post by: dhefley on October 19, 2012, 15:53:06 PM
NRE - did you ever find a solution?? This is also happening to me!!  Clean install of Joomla 2.5.7 and VM 2.0.12b.

I get very similar JSON (for a product named 'test'):

[{"id":"11","value":"test::test","label":"<div class=\"vm_thumb_image\">\n\t\t\t\t<span><\/span>\n\t\t\t\t\n\t\t\t<input type=\"hidden\" value=\"\" name=\"field[0][field_type]\" \/>\n\t\t\t<input type=\"hidden\" value=\"\" name=\"field[0][virtuemart_custom_id]\" \/>\n\t\t\t<input type=\"hidden\" value=\"0\" name=\"field[0][virtuemart_customfield_id]\" \/>\n\t\t\t<input type=\"hidden\" value=\"\" checked=\"checked\" name=\"field[0][admin_only]\" \/>\n\t\t\t\t<div class=\"vmicon vmicon-16-remove\"><\/div><\/div>"}]

Also, I can create and work with thumbs perfectly!
Title: Re: Can't set related product in backend
Post by: NRE on October 19, 2012, 16:21:32 PM
Hi, yes.
You can get my solution here http://forum.virtuemart.net/index.php?topic=103281.msg360197#msg360197
Hope that's the same situation.
Good luck!