• Resolved Phillip Burger

    (@phillipburger)


    We have a system where we create an order once an application is approved, but we want to allow customer to still enter a coupon code / affiliate code. That code is no longer able to be entered on the order-pay page, how can we enable this?

    If not able to for some reason, what are other options? Customer would need to tell us the code and we manually modify the order to enter it and then it will reflect on order-pay page?

Viewing 4 replies - 1 through 4 (of 4 total)
  • con

    (@conschneider)

    Engineer

    Hello @phillipburger,

    > We have a system where we create an order once an application is approved, but we want to allow customer to still enter a coupon code / affiliate code. That code is no longer able to be entered on the order-pay page, how can we enable this?

    Yup, correct. The order pay template is not the full checkout in only shows the payment gateway options and that is that. You could try to code your way through this: https://stackoverflow.com/questions/15744689/apply-a-coupon-programmatically-in-woocommerce or maybe: https://stackoverflow.com/questions/22928367/how-to-create-custom-discount-for-the-cart-in-woocommerce

    Please note that we provide no warranty or support for custom code or 3rd party plugins (meaning we cannot not help you further with this code snippet or ww.wp.xz.cn / GitHub plugins). Use them at your own risk.

    **Also: Before you do that, please do make a full backup!**

    If not able to for some reason, what are other options? Customer would need to tell us the code and we manually modify the order to enter it and then it will reflect on order-pay page?

    I like your thinking. Model the process instead of bending the tool. That would certainly work yes.

    Kind regards,

    Thread Starter Phillip Burger

    (@phillipburger)

    Okay, that makes sense. Thank you.

    @phillipburger I was having the same dilemma on a project and ended up purchasing Sprout Invoices (before @conschneider replied) which added the ability for users to pay for invoices through Woocommerce checkout page (which allows coupon codes). I don’t work for them or anything but I wanted to suggest it as it may be a quicker solution than custom code.

    Thread Starter Phillip Burger

    (@phillipburger)

    @ccgjosh – thank you for letting me know. My solution ended up being to use the Membership process to set certain products to only be purchasable by users who have a membership. Then, instead of us creating the orders and dealing with problems like this ticket (as well as how to create manual orders that also create subscriptions), we would then just give someone a short time limited membership and a link to allow them to purchase the item

    This allows them to still follow the full checkout process and it auto creates the subscription as needed.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘order-pay endpoint does not allow coupon code entry’ is closed to new replies.