News:

Support the VirtueMart project and become a member

Main Menu

customProductData does not display all custom fields

Started by hazael, March 18, 2023, 10:24:02 AM

Previous topic - Next topic

hazael

I've noticed that some custom fields in the cart option, when checked and added to it, don't show up in the mod_virtuemart_cart cart preview.

In the cart option I have custom fields - visible in the attached image. Only the custom fields belonging to the custom_fields_for_all plugin are not displayed
customProductData shows only one option. How to fix it?

/index.php?option=com_virtuemart&nosef=1&view=cart&task=viewJS&format=json

Quote{"products":
[{
"product_name":"<a href=\"\/alfa-1\" >ALFA<\/a>",
"customProductData":"<div class=\"vm-customfield-mod\"> <span class=\"product-field-type-S\">Wybrana ilosc zestawow 3<\/span><br \/><\/div>",
"product_sku":"ALFA1",
"prices":"19710 z\u0142",
"image":"<img  class=\"wizualizacja\"  src=\"\/images\/virtuemart\/product\/resized\/22609_510x340.jpg\"  alt=\"budynek szeregowy ALFASEGSRODK\"  \/>",
"subtotal":"19710 z\u0142",
"subtotal_tax_amount":"4533 z\u0142",
"subtotal_discount":"-7290 z\u0142",
"subtotal_with_tax":"24243 z\u0142",
"quantity":3
}],
"totalProduct":3,
"billTotal":"Razem <strong>24243 z\u0142<\/strong>",
"billTotal_tax_amount":"4533 z\u0142",
"billTotal_net":"19710 z\u0142",
"billTotal_discounted_net":"19710 z\u0142",
"dataValidated":false,
"totalProductTxt":"3 produkty",
"linkName":"Poka\u017c koszyk",
"cart_show_link":"\/koszyk",
"cart_show":"<a class=\"details\" style=\"float:right;\" href=\"\/koszyk\" rel=\"nofollow\" >Pokaz koszyk<\/a>"
}