Hello guys,
I’m building a custom Google feed which a user can customize by excluding/including certain products. Now this is working properly, I want to expand it by also including the option to choose a variation of an certain product.
For this to happen, I need to transfer the selected product id (on the left) to the right field (variation), so I can use it using the ‘acf/fields/post_object/result/name=variation’ filter (post_parent==product id).
I tried to do this using javascript (appending classes, data attributes, id attribute), but I can’t get it working.
Does someone has a solid way to ‘transfer’ data from one field to an other?
Hi @marijnvanons
In this case, you need to get the data by using AJAX. Like the one I shared on that thread, there’s an old tutorial with the similar topic. Kindly check it out here: https://www.bobz.co/dynamically-populate-select-fields-choice-in-advanced-custom-fields/.
I hope this helps 🙂
Should have read that post more thoroughly, thanks for the link!