VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Development & Testing => Topic started by: marcel.miguel on October 03, 2014, 17:06:00 PM

Title: Generic Child Variant not
Post by: marcel.miguel on October 03, 2014, 17:06:00 PM
We have configured a Joomla 3.3.6 and VirtueMart 2.9.9e from a Bitnami VM.
We have configured "Generic Child Variant" and a product with variants.
On this product, If we change the custom fields, nothing happens but there is a javascript console error:
"updateDynamicUpdateListeners found URL attri undefined ".

We have tested it with default beez5 template without success.
Title: Re: Generic Child Variant not
Post by: John2400 on October 04, 2014, 03:31:18 AM
http://forum.virtuemart.net/index.php?topic=125948.0

The post refers to variants and stock control.. Across the custom fields . It simply mentions that they are working on them.
Title: Re: Generic Child Variant not
Post by: patbe60 on October 04, 2014, 11:38:03 AM
As far as I can see "generic child variant" is not working. I was using it in VM 2. In VM 2.9.9e nothing happens when selecting parent or child.

I'm using "child variant" instead. Selecting is possible and works fine. The only problem is, that every time I save the product in the BE the parents product is loosing its price. Typing in the price again in the product information tab solves the problem until the next saving.

[attachment cleanup by admin]
Title: Re: Generic Child Variant not
Post by: GJC Web Design on October 04, 2014, 21:07:36 PM
this  refers to the the dynamic JS loading

Quote"updateDynamicUpdateListeners found URL attri undefined ".

I think your template isn't compatible - try with std Beez

check your VM templates for the calls

vmJsApi::jDynUpdate();
vmJsApi::addJScript('updDynamicListeners',"
jQuery(document).ready(function() { // GALT: Start listening for dynamic content update.
   // If template is aware of dynamic update and provided a variable let's
   // set-up the event listeners.
   if (Virtuemart.container)
      Virtuemart.updateDynamicUpdateListeners();

}); ");
Title: Re: Generic Child Variant not
Post by: marcel.miguel on October 06, 2014, 10:23:38 AM
I've just tested it again with beez3 with no luck. When selecting a variant does not change the page to the variant.

The "child variants" works ok.
Title: Re: Generic Child Variant not
Post by: Milbo on October 06, 2014, 10:51:20 AM
Quote from: patbe60 on October 04, 2014, 11:38:03 AM
As far as I can see "generic child variant" is not working. I was using it in VM 2. In VM 2.9.9e nothing happens when selecting parent or child.
I need to adjust the JS, thank you.

Quote from: patbe60 on October 04, 2014, 11:38:03 AM
I'm using "child variant" instead. Selecting is possible and works fine. The only problem is, that every time I save the product in the BE the parents product is loosing its price. Typing in the price again in the product information tab solves the problem until the next saving.
Thank you.

There is also some other small bug in child variants, which I am hunting. I remember that in some conditions it seems not to work and if you just store it again, it works.
Title: Re: Generic Child Variant not
Post by: patbe60 on October 06, 2014, 13:52:55 PM
Additionally there is also a language problem:
When using a constant (e.g. VM_YES) in the value field of generic child variant and child variant instead of a value (Yes)  the constant is not replaced by the value in the details view of a product. This happens when selcting Cart Input = yes. When selecting Cart Input = no, the correct value (Yes) is shown in the details view. This worked fine in VM 2.
In the cart and in the confirm email it works fine with both custom fields also in VM 2.9.9e.