I'd like to export the woocommerce array "redq_day_ranges_cost" into XML format with WP All Export. If I try to unserialize the array I run into this PHP Error: unserialize(): Error at offset...
I tried the things mentioned here: How to repair a serialized string which has been corrupted by an incorrect byte count length?
The problem is, that WP All Export already fails on saving an export template due to that error, so I feel a little lost here.
This is the data to be exported:
a:7:{
i:0;a:4
{s:8:"min_days";s:1:"1";s:8:"max_days";s:1:"1";s:10:"range_cost";s:2:"340";s:15:"cost_applicable";s:5:"fixed";}
i:1;a:4:
{s:8:"min_days";s:1:"2";s:8:"max_days";s:1:"2";s:10:"range_cost";s:2:"450";s:15:"cost_applicable";s:5:"fixed";}
i:2;a:4:
{s:8:"min_days";s:1:"3";s:8:"max_days";s:1:"3";s:10:"range_cost";s:2:"570";s:15:"cost_applicable";s:5:"fixed";}}
the plan is to export it something like
<min_days>1</min_days>
<max_days>1</max_days>
<range_cost>340</range_cost>
<cost_applicable>fixed</cost_applicable>
So far, if I call unserialize in the function editor the result is the named error. If I call it inline within the XML Editor it results in 3 rows of
<redq_day_ranges_cost>Array</redq_day_ranges_cost>