Hello guys,
I have a Zap that creates a Coupon in a WooCommerce website.
I need a custom meta data, and luckily Zapier allows that.
The problem is the format of the data.
The field is serialized, so when I add the entry I need:
a:1:{i:0;a:4:{s:10:"product_id";s:4:"2087";s:8:"quantity";s:1:"1";s:15:"discount_amount";s:3:"100";s:13:"discount_type";s:7:"percent";}}
It turns into this in the database:
s:136:"a:1:{i:0;a:4:{s:10:"product_id";s:4:"2087";s:8:"quantity";s:1:"1";s:15:"discount_amount";s:3:"100";s:13:"discount_type";s:7:"percent";}}";
It's considered a string and serialized again.
I can't find the right format to use, anyone can help with that?
Thanks
Daniele