VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Tommi on May 27, 2012, 11:00:52 AM

Title: Problem in display products in the dropdown when using generic variant child
Post by: Tommi on May 27, 2012, 11:00:52 AM
He met someone with a problem when using generic variant child?
When you are the parent product will be displayed dropdown - for example packaging. After unpacking you parent product as many times as is assigned to categories.
He does not know anyone where I make a mistake?


[attachment cleanup by admin]
Title: Re: Problem in display products in the dropdown when using generic variant child
Post by: Tommi on May 27, 2012, 21:35:59 PM
Please, help me...
Title: Re: Problem in display products in the dropdown when using generic variant child
Post by: jjk on May 29, 2012, 09:51:56 AM
I'm sorry, but I don't understand your problem and your question.
Title: Re: Problem in display products in the dropdown when using generic variant child
Post by: Tommi on May 29, 2012, 09:56:28 AM
Please see: http://www.kompava.sk/index.php?option=com_virtuemart&view=productdetails&virtuemart_category_id=20&virtuemart_product_id=19. And oopening items from dropdown (balenie). Parent product is there more times because it is stored in several categories.
Title: Re: Problem in display products in the dropdown when using generic variant child
Post by: John2400 on May 29, 2012, 11:00:59 AM
Hi Tommi,


your issue appears to be that in your attribute drop down box ( for a child variant)  you have the same item repeated many times.

You believe that this is because you have added the parent product to several categories and that is why is shows up so many times in the child product drop down box.

I cannot solve your issue - however my wording(English)  might help others solve your problem.

* I notice that you also sent a report to the moderator - that button is not for the issue you sent.   Please continue to post on the site.

thank you.


Title: Re: Problem in display products in the dropdown when using generic variant child
Post by: jjk on May 29, 2012, 12:05:05 PM
I don't think that assigning a product to multiple categories is the problem, because in my shop it this doesn't produce duplicate entries in the dropdown list.
I suppose that you accidentially produced child products with identical names. You can try to temporarily delete the "generic child variant" in the 'Custom Fields' tab, so the individual child products become visible again in the backend. Then search for the product name in the backend product list and check if there are duplicate entries, which you can delete. Afterwards enable the "generic child variant" again in the parent product.

In my shop I do not set the Manufacturer and Product Category fields for the child products, because this produced a problem (currently don't remember which one).
Title: Re: Problem in display products in the dropdown when using generic variant child
Post by: Tommi on May 29, 2012, 15:32:57 PM
I tried it. It did not help. Can you send me the URL of your shop?
To send you an access to the admin, he would have to look at it?
Title: Re: Problem in display products in the dropdown when using generic variant child
Post by: jjk on May 29, 2012, 16:41:37 PM
Your problem seems to be that for some reason you have duplicate child products with the same product id.
Compare a screenshot below from your shop with one from my shop (mine is not visible to the public yet).
Perhaps you can see the duplicate child products if you look at your database table(s) xxxx_virtuemart_products_en_gb (sl-SL) with phpMyAdmin or a MySQL GUI like 'HeidiSQL'.


[attachment cleanup by admin]
Title: Re: Problem in display products in the dropdown when using generic variant child
Post by: Tommi on May 29, 2012, 17:49:56 PM
No, I have one table with the same product ID. But there are two tables:

- kmp_virtuemart_products
- kmp_virtuemart_products_sk_sk

and there is a product with the same ID but only once. You can edit the file customfields.php to appear only child products? Or where can I find this feature in SQL file customfields.php?

Thanks...
Title: Re: Problem in display products in the dropdown when using generic variant child
Post by: jjk on May 29, 2012, 19:37:19 PM
Quote from: Tommi on May 29, 2012, 17:49:56 PM

- kmp_virtuemart_products
- kmp_virtuemart_products_sk_sk

That is correct. If you add another language there will be one more like kmp_virtuemart_products_xx_XX

QuoteYou can edit the file customfields.php to appear only child products?
As far as I know just unpublishing the parent doesn't work when using generic child variants. I don't know about altering the code.

What happens when you delete the manufacturer in the child products? Looks to me like you have assigned a manufacturer to at least one of your child products?
Title: Re: Problem in display products in the dropdown when using generic variant child
Post by: Tommi on May 29, 2012, 20:17:17 PM
I have only one manufacturer, and it is assigned automatically.
When you assign a product to ďalšje categories in dropdown appears as another, and this is a problem.
Title: Re: Problem in display products in the dropdown when using generic variant child
Post by: Tommi on May 29, 2012, 20:30:01 PM
Quote from: Tommi on May 29, 2012, 20:17:17 PM
I have only one manufacturer, and it is assigned automatically.
When you assign a product to ďalšje categories in dropdown appears as another, and this is a problem.
Can you please, where is the SQL code to display the generic variant child?
Title: Re: Problem in display products in the dropdown when using generic variant child
Post by: jjk on May 29, 2012, 21:46:23 PM
Quotewhere is the SQL code to display the generic variant child?
You probably mean php code. However, I don't know that yet.
Which versions of Joomla and VirtueMart 2 are you using and which template? Maybe you simply have a javascript conflict somewhere.
Just to let you know that duplicate parent product are not normal - see screenshot below (no duplicates!):


[attachment cleanup by admin]
Title: Re: Problem in display products in the dropdown when using generic variant child
Post by: Tommi on May 29, 2012, 22:03:02 PM
I use Joomla 2.5.4 and VM 2.0.6.

In javascript it is wrong, I tried to disable all options Javacsript.

The explanation:

- Argin Dring - this is the product of parental
- Argin Dring (350/32) is a child product.

If you assign a child to a different product category, the list is displayed twice.

[attachment cleanup by admin]
Title: Re: Problem in display products in the dropdown when using generic variant child
Post by: jjk on May 29, 2012, 22:20:33 PM
I can't reproduce that problem, but I'm using VM2 latest SVN version. Perhaps you can make a local copy of your website and try version 2.0.7d or the SVN version.
I do have parent products assigned to two categories in two languages and I don't have duplicates in the dropdown list.
Title: Re: Problem in display products in the dropdown when using generic variant child
Post by: Tommi on May 29, 2012, 22:23:59 PM
I'm going to try ...

I tried not to VirtueMart another site and it's the same. Maybe I have a bad install.

Thanks.
Title: Re: Problem in display products in the dropdown when using generic variant child
Post by: Tommi on May 29, 2012, 22:45:01 PM
I reinstalled the version 2.0.7d and it's okay.

It's probably an error in version 2.0.6.

Thank you all for your help!