News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Problem in display products in the dropdown when using generic variant child

Started by Tommi, May 27, 2012, 11:00:52 AM

Previous topic - Next topic

Tommi

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]


jjk

I'm sorry, but I don't understand your problem and your question.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

Tommi


John2400

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.



jjk

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).
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

Tommi

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?

jjk

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]
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

Tommi

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...

jjk

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?
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

Tommi

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.

Tommi

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?

jjk

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]
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

Tommi

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]

jjk

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.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations