VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: gpessoa on December 23, 2021, 20:56:20 PM

Title: Duplicate custom field related products
Post by: gpessoa on December 23, 2021, 20:56:20 PM
Hi ppl
Is there a possibility to duplicate the entire custom field "related products" section (both on front and in the admin / backend)
The idea is having another "related" set of items!
I already duplicate the original custom field "related product" but I see nothing  on beckEnd!
Thank in Advanced
Title: Re: Duplicate custom field related products
Post by: pinochico on December 23, 2021, 21:04:43 PM
QuoteIs there a possibility?

Yes, of course, our developers created duplicated functions from related products to new function == related accessories.
You need create custom new function in model product, update view product in administration and next, next....
Title: Re: Duplicate custom field related products
Post by: gpessoa on December 24, 2021, 14:02:34 PM
Hi Pinochio
Can you be more specific?
File names on folder names, please!
Like edit:
custom on administrator/components/com_virtuemart/models
Title: Re: Duplicate custom field related products
Post by: Studio 42 on December 28, 2021, 15:40:28 PM
Simply use this customfield plugin https://shop.st42.fr/en/products/extra-product.htm
You can show the plugin at any valid Virtuemart customfield position and are not limited to 1 related list
Title: Re: Duplicate custom field related products
Post by: gpessoa on January 04, 2022, 18:43:25 PM
QuoteYou can show the plugin at any valid Virtuemart customfield position and are not limited to 1 related list

Hi,
Can this be easily handle with Rollandd CSVi?
Like related_products are!
Title: Re: Duplicate custom field related products
Post by: Studio 42 on January 05, 2022, 14:31:38 PM
QuoteCan this be easily handle with Rollandd CSVi?
I do not know, but the related products are only an array of product IDS in the customfields param
HEre a sample of the params

subtitle="Compatible with"|ids={
    "2374": "1",
    "1884": "1",
    "2373": "1",
    "1831": "1",
    "2129": "1",
    "1859": "1",
    "1926": "1",
    "2375": "1",
    "1925": "1"
}|
Title: Re: Duplicate custom field related products
Post by: gpessoa on January 11, 2022, 01:34:15 AM
having to use the product ID doesn't work for me... :'(
Title: Re: Duplicate custom field related products
Post by: Milbo on January 12, 2022, 12:45:50 PM
Just use the new core. The new core HAS this feature. Without ids! just the same as we already have. Just as extra customfield. https://dev.virtuemart.net/attachments/1297/com_virtuemart.3.8.9.10578_package_or_extract.zip (reupped)
Title: Re: Duplicate custom field related products
Post by: gpessoa on January 12, 2022, 20:19:53 PM
Thank you Max
This is great News  8)