Hi Jon,
Sorry for late reply, I just back again and wonder to see that you can fix your code easily, brilliant.
I can see you set 'column' => 4
for some 'hidden' fields, it's not necessary as these fields are hidden and some repeated code can be rewrite to cleaner 😉
All foreach like so:
...
foreach ( $_POST as $key => $value )
{
if ( strpos( $key, 'p52_quote_phone_' ) )
unset( $_POST[$key] );
}
...
Can be combine and rewrite to 1 foreach like so:
foreach ( $_POST as $key => $value )
{
if ( strpos( $key, 'p52_quote_phone_' ) || strpos( $key, 'p52_quote_company_' ) || strpos( $key, 'p52_quote_delivery_address' ) ... ) // Replace ... with all fake fields you've set
unset( $_POST[$key] );
}
For cloned group, I firstly designed for 1 product only and if we switch to cloned groups, it's time consuming because it's related to populate custom data and out of our scope, we're sorry about that.
Best Regards
Tan