Xeroom – Xero Accounts Integration with WooCommerce › Forums › Xeroom Support Forum › Discount setting on WC before sent to Xero
Tagged: discount hook set
- This topic has 4 replies, 3 voices, and was last updated 7 months, 3 weeks ago by
kevinsmith.
-
AuthorPosts
-
-
March 28, 2019 at 8:29 am #8073
hiheaven01
ParticipantI 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?
Thanks
-
March 28, 2019 at 12:56 pm #8074
Peter Lloyd
KeymasterHi – 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.
Thanks
Pete -
March 28, 2019 at 4:32 pm #8075
hiheaven01
Participanthi Pete,
Thanks for the quick reply.
I saw on page: http://www.xeroom.com/installation-instructionsThere 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) ?
Thanks
-
April 8, 2019 at 12:41 pm #8261
Peter Lloyd
KeymasterHi – 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.
Thanks
Pete -
July 14, 2020 at 11:36 am #9029
kevinsmith
ParticipantHi, 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
-
-
AuthorPosts
- The forum ‘Xeroom Support Forum’ is closed to new topics and replies.