Home › Forums › Ticket Products › Event Tickets Plus › Change button text and go direct to checkout
- This topic has 2 replies, 2 voices, and was last updated 12 years ago by
Barry.
-
AuthorPosts
-
March 30, 2014 at 7:19 pm #124980
ztalk112
ParticipantHi,
I understand that this may require some customization on my part (although I wish it didn’t), but I’d like to know what do I need to do to:
1. Change the add-to-cart button text (I’d much prefer “Book Now”) for tickets deployed with Woo Tickets.
2. Deliver the user directly to the checkout page when they click the (Woo Tickets) add-to-cart button on an event page.
I’m looking for instructions that I can give to php freelancer (any recommendations?).
Thx in anticipation.
March 31, 2014 at 8:23 pm #125813Barry
MemberHi – great questions!
Your first stop, or the first stop for any freelancer you engage to do this work, should be our Themer’s Guide which describes the fundamentals of customizing any of our event plugins.
1. Change the add-to-cart button text (I’d much prefer “Book Now”) for tickets deployed with Woo Tickets.
This is pretty straightforward and I’d recommend giving it a try yourself unless you really don’t feel comfortable doing so. Essentially, armed with the basics about overriding templates from the Themer’s Guide, you would set up a custom wootickets/tickets.php template within your theme. Then, you’d locate the following line:
<?php esc_html_e( 'Add to cart', 'tribe-wootickets' );?>We’re using PHP and the WordPress translation API because we want to support different languages, so that looks perhaps intimidatingly complex given all it actually seems to do is print Add to cart, but you can simply change this to whatever you like, ie something as simple as:
Book Now!2. Deliver the user directly to the checkout page when they click the (Woo Tickets) add-to-cart button on an event page.
This would be slightly more complicated – ultimately you would need to research/talk to the WooThemes support team as at this point you’re really crossing the threshold into WooCommerce custom dev (or indeed hire someone who is familiar with that plugin). With that said, for the right developer it doesn’t have to be all that hard to implement and could be as simple as changing the form action (in the same template we just discussed – wootickets/tickets.php – and add in an extra parameter to the URL query for the form action, so instead of taking the user to:
http://example.com/cart/?wootickets_process=1It takes them to:
http://example.com/cart/?wootickets_process=1&redirect=checkoutThen catch this on the cart page and shunt them straight to the checkout page with a redirect. There may even be a natty way of doing this in a single step already proffered by the WooCommerce API – but we’d need to leave you/your developer to look into the details.
I hope that helps 🙂
April 15, 2014 at 5:38 am #132975Barry
MemberThis thread’s not seen much activity for the last couple of weeks so I’ll go ahead and close it. Of course if you still need help with this or any other issue please don’t hesitate to create a new thread (or threads) and one of the team will be only too happy to help. Thanks!
-
AuthorPosts
- The topic ‘Change button text and go direct to checkout’ is closed to new replies.
