Woocommerce - lexoffice: Create invoice with deposits

Hi, I create a lexoffice invoice as soon as a woocommerce order is placed.
Now, in woocommerce, I can create coupons which are only applicable to one product. Now, in the exported woocommerce data, I see the line items and I see coupon items. Lets say, 3 line items and just 1 coupon item because one coupon is placed. How can I assign the coupon to the product? There is no relation visible.
But in the lexoffice module, I need to place the discount at the item. So I need to filter to which product the coupon is assigned.

And more: In woocommerce, I can create an abolute coupon, lets say 100,-. But in lex, I need to specify discounts in percent.

Any ideas?

Hi there,

Based on the screenshot, you’re trying to retrieve the information (discount) from a complex array. I’d suggest checking this link out as you will need to use the Get + Map function which is really useful when getting items from a complex array.

1 Like