Hello
Could you try this code ?
https://algolplus.com/plugins/code-samples/#complex_reports_products_columns
you must modify line
$this->product_columns = array();
to
$this->product_columns = array("Product Name1","Product Name2","Product Name3",);
-
This reply was modified 6 years, 5 months ago by
algol.plus.
Thread Starter
bgcs3
(@bgcs3)
Hello!
Thank you for your fast reply. I copy the modified code to Custom PHP code to modify output, but nothing has changed.
I have sku and quantity fields.
The problem is if an order contains only 1 item, this item quantity write to the first product column (for example D2 cell). I want to reach that for example at D2 cell contains only product 1 quantities, E2 contains only product 2 quantities, and F2 contains only product 3 quantities.
Best regards!
The code will work this way.
it’s a reason why I’ve asked you to edit code and put product names.
please, add code to functions.php OR using https://ww.wp.xz.cn/plugins/code-snippets/
You should see checkbox at bottom
-
This reply was modified 6 years, 5 months ago by
algol.plus.
Thread Starter
bgcs3
(@bgcs3)
And what can i do if the three product has the same name? 🙂
Thread Starter
bgcs3
(@bgcs3)
Sorry , i don’t see the format. It Works! Your support is superb!!