VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: annpaul on April 29, 2023, 08:15:41 AM

Title: Bug in displaying custom fields in parent/child products
Post by: annpaul on April 29, 2023, 08:15:41 AM
Using VM 4.0.12 on Joomla 4.2.6

I have created a custom field as shown in the image below. This field has 4 possible values and all my products need the customer to select one of those values while purchasing the product.
So, I have added this field to an unpublished product and created the 4 values (shown in image). I am using this product as a base/parent product for all products.

Now, I created 6 actual purchasable products with the base product as the parent.

I was expecting that all 6 of these products will show the options configured in the base product and this was indeed happening for the most part. However, I noticed that the options were not showing up for 1 or 2 of the products. Then I realized that whenever I changed the configuration of a product and saved it, the options would be shown for that product but not some other product. So basically, it was like 4 products were shown with options and 2 products were shown without the options. No matter what I did, there would always be two products without any options.

So, I hired a developer to fix this issue and he figured out that it was some caching issue in customfields.php and suggested this fix (shown in image). After this fix the issue was resolved.

My question now is to confirm whether this is really a bug in VM or a known feature which I am not able to use correctly.

thank you.

Title: Re: Bug in displaying custom fields in parent/child products
Post by: GJC Web Design on April 29, 2023, 11:35:27 AM
For members the current version is VM4.0.18 and 4.0.20 will be released shortly.

This bug may well have been fixed now - I seem to remember this being reported...
Title: Re: Bug in displaying custom fields in parent/child products
Post by: annpaul on April 29, 2023, 12:06:03 PM
OK, so it was a bug? If so, would there be a bug fix for older versions?
Title: Re: Bug in displaying custom fields in parent/child products
Post by: annpaul on April 29, 2023, 12:07:48 PM
Is there a change list or release notes for the versions so that I can decide whether I should purchase the latest version?
Title: Re: Bug in displaying custom fields in parent/child products
Post by: jenkinhill on April 29, 2023, 12:23:52 PM
You can check the repository to see the high number of issues being addressed/updated.  http://dev.virtuemart.net/projects/virtuemart/repository/revisions