Hi I have a site where I have applied PPOM by categories. It works well, however if a product appears in more than one category then this throws the duplicate data error.
I have gotten around this by using a piece of workaround code that you have posted on one of the plugin support forums.
add_filter(‘ppom_has_unique_fields’, function($check, $ppom){
$check = true;
return $check;
}, 22, 2);
This removes the error however where a product appears in more than one category then the meta options are duplicated for however many categories there are.
Here is an example
I assume the values for outputting the options are stored in an array? is there a way to check the size of the array and only output 1 set of options?