Support » Plugin: WooCommerce » Multiple checkout pages?

  • Resolved AJ Mallory

    (@jasonm4563)


    Hello,

    I have a need for multiple checkout URLs. I’ve found that I can change the URL and permalink programmatically by returning a second Checkout URL using these filters: ‘woocommerce_get_checkout_url’ and ‘woocommerce_get_checkout_page_permalink’. I’ve added a second page with the checkout shortcode and setup some conditionals in my templates to give me different content based on the different URLs per my needs.

    Everything is fine except when I go to the final step the payment template that renders the credit card form doesn’t run and if I submit without it I get an error and then the payment template does run and outputs the payment form. I suspect the cart total isn’t getting set as I can see it’s blank from order review. I can’t figure out where/how the total gets set or should get set.

    Thanks for any help/pointers.

    https://wordpress.org/plugins/woocommerce/

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Multiple checkout pages?’ is closed to new replies.