Xeroom – Xero Accounts Integration with WooCommerce › Forums › Xeroom Support Forum › Discount setting on WC before sent to Xero
Tagged: discount hook set
- March 28, 2019 at 8:29 am #8073hiheaven01Participant
I am new to Xero. Please help the following:
I need to to set a discount percentage (column “Disc %”) to a line item before invoice is sent to xero (manually or automatic).
What hook on WC to be used for this and how to in PHP ?
What hook that Xero plugin uses before sending invoice to Xero?
- March 28, 2019 at 12:56 pm #8074Peter LloydKeymaster
Hi – sorry but we don’t use WC hooks or support customisations of Xeroom. We do support the standard discounts resulting from sales prices and also vouchers.
- March 28, 2019 at 4:32 pm #8075hiheaven01Participant
Thanks for the quick reply.
I saw on page: http://www.xeroom.com/installation-instructions
There is a hook called “woocommerce_checkout_order_processed” that is called
when the order is created. I guess that is when order is created , not
when invoice is sent.
I tried have sale price on a variation item. But when invoice is sent to Xero.
the “Disc %” is empty. Only when I use coupon code from WC, this discount
value is sent with the invoice OK.
So, is it alright if i use the REST API to change the discount value (if needed) ?
- April 8, 2019 at 12:41 pm #8261Peter LloydKeymaster
Hi – I have checked and you are quite right that field is missing. I think it became a casualty when we reworked the discount vouchers as it was previously showing before that. I will ask the developers if they can fix it and let you know. In the meantime you can try the REST API but I don’t know if that will work or not.
- July 14, 2020 at 11:36 am #9029kevinsmithParticipant
Hi, i can see that people here are discussing to coup up with the problems faced when making discount coupons code. Well few days back i was looking forward to find some discount coupons site to save some of my money. Then i went through a blog revglue.com/blog-detail/5-how-to-setup-a-uk-discount-voucher-website-in-ten-minutes which not only provided me with the latest coupon codes of almost every big international brand but also made my mind to make my own coupon vouchers marketplace. Managing huge data and updating it daily is really a headache but this site provides these services for their customers and relief them from this pain. By the way i am still looking forward to get some suggestions on buying their services. If anyone is using their services do let me know. Thanks
- The forum ‘Xeroom Support Forum’ is closed to new topics and replies.