VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: alatak on September 26, 2017, 10:03:08 AM

Title: Multi variant custom field
Post by: alatak on September 26, 2017, 10:03:08 AM
Hello

I am using multivariant custom field:
- in the category view all options are displayed correctly
- in the product view, at first all option are displayed correctly, but if i select one, the first option disappears from the list.

Title: Re: Multi variant custom field
Post by: kloczka on September 26, 2017, 14:59:16 PM
Hi,

I have the same problem... :(

Joomla ver. 3.8.0
VM ver. 3.2.4
PHP 5.6.23
MySQL 5.6.36
Title: Re: Multi variant custom field
Post by: Milbo on September 28, 2017, 14:57:08 PM
When you use only labels, then you must not set a value for the parent. Just keep the "Select a variant". When you use product attributes, you do not have this problem. The reason behind that is that labels are only set for children.
Title: Re: Multi variant custom field
Post by: alatak on September 28, 2017, 15:10:00 PM
Hello

QuoteWhen you use only labels, then you must not set a value for the parent. Just keep the "Select a variant".
I never noticed that before.
With Virtueplanet templates it works like a charme setting a value to the parent. Ok i know   template ovveride a lot of VM functions.

QuoteJust keep the "Select a variant". When you use product attributes, you do not have this problem.
Ok so the parent has the SElect a variant attribute.
Once you select a variant  "Select a variant" disappears from the list.
I do understand that the client must at this step do a selection,  but why remove that option from the list ?
Title: Re: Multi variant custom field
Post by: atrus on September 28, 2017, 15:15:13 PM
Same problem here. Just tested also with a product attribute (Width), same issue, looks like a bug max, hope you can take alook
Title: Re: Multi variant custom field
Post by: Milbo on September 28, 2017, 16:42:18 PM
Damn, I had a kind of typo in /components/com_virtuemart/sublayouts

I added the $product->virtuemart_product_id instead of the $customfield->virtuemart_product_id
Title: Re: Multi variant custom field
Post by: alatak on September 28, 2017, 20:00:28 PM
Thank you Max,


works like a charm now
(happy)
Title: Re: Multi variant custom field
Post by: kloczka on September 29, 2017, 09:41:14 AM
Thank you Max,

It's working fine!
Title: Re: Multi variant custom field
Post by: kloczka on September 29, 2017, 12:25:40 PM
upsz!

I do not know what happened
(expired cache, I suspect)
I get this error:

Fatal error: Call to undefined method VirtueMartModelCustomfields::renderCustomfieldPrice() in /chroot/home/securemm/securemme.hu/html/components/com_virtuemart/sublayouts/customfield.php on line 516