VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: semen_123 on February 16, 2023, 18:28:22 PM

Title: Related Products + other Custom Field
Post by: semen_123 on February 16, 2023, 18:28:22 PM
If I add similar (related) products to the main product, and then add data or files to the main product through custom fields, then the data of custom fields are displayed as many times in the product card as similar (related) products are added.
Why is this happening?
VirtueMart 3.8.9 10473
Title: Re: Related Products + other Custom Field
Post by: pinochico on February 16, 2023, 18:32:46 PM
template?
Title: Re: Related Products + other Custom Field
Post by: semen_123 on February 16, 2023, 18:53:22 PM
Quote from: pinochico on February 16, 2023, 18:32:46 PM
template?

No, I think it's about the type, field_type = E

If you change the type with your hands in the database, then there are no duplicates.

Title: Re: Related Products + other Custom Field
Post by: semen_123 on February 16, 2023, 18:59:12 PM
Screenshot.

I tried on different templates. The result is the same: the value of the custom field is displayed several times if there are related products

Moreover, data from different vmcustom plugins are duplicated: istraxx_download_simple or jkattachment
Title: Re: Related Products + other Custom Field
Post by: semen_123 on February 16, 2023, 19:35:49 PM
Screenshots

this situation occurs when products "refer" to each other as Related Products
Title: Re: Related Products + other Custom Field
Post by: jenkinhill on February 17, 2023, 17:08:49 PM
VirtueMart 3.8.9 10473 is 2 years old now. I suggest you look at using the current VM 4.0.12 version rather than try to solve an issue in an old version:

http://dev.virtuemart.net/attachments/download/1359/com_virtuemart.4.0.12.10777_package_or_extract.zip