我在我的 wordpress 网站中使用了 paypal 的 shopp 插件。在shopp->orders
页面中有一个“导出选项”。购买页面导出订单的功能是
function exportcolumns () {
$prefix = "p.";
return array(
$prefix.'id' => __('Line Item ID','Shopp'),
$prefix.'optionlabel' => __('Product Variation Name','Shopp'),
$prefix.'description' => __('Product Description','Shopp'),
$prefix.'sku' => __('Product SKU','Shopp'),
$prefix.'quantity' => __('Product Quantity Purchased','Shopp'),
$prefix.'unitprice' => __('Product Unit Price','Shopp'),
$prefix.'total' => __('Product Total Price','Shopp'),
$prefix.'data' => __('Product Data','Shopp'),
$prefix.'downloads' => __('Product Downloads','Shopp')
);
}
在 this$prefix.'optionlabel' => __('Product Variation Name','Shopp')
中,包含3482 Gouchh, Two Sems, With Insurance
单个字段中的值。在导出为 xls 时,我必须将其分成 3 个字段。
我怎样才能做到这一点?