How to replace Add to Cart with Check Out button in event page

Home Forums Ticket Products Event Tickets Plus How to replace Add to Cart with Check Out button in event page

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #249952
    Sudev
    Participant

    I don’t want “add to cart” option and it should be redirect to check out page directly for woo commerce tickets.

    #250218
    Barry
    Member

    Hi!

    So you’re going to need to set up a custom wootickets/tickets.php template for this – that’s pretty easy and you can find full details in our Themer’s Guide – but in essence you would copy the existing template found at:

    plugins/wootickets/views/wootickets/tickets.php

    And place a copy within your theme:

    themes/YOUR_THEME/tribe-events/wootickets/tickets.php

    Then just find this piece of code:

    $woocommerce->cart->get_cart_url()

    Change it to:

    $woocommerce->cart->get_checkout_url()

    Does that help?

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘How to replace Add to Cart with Check Out button in event page’ is closed to new replies.