Home › Forums › Ticket Products › Event Tickets Plus › Put add to cart on same line
- This topic has 6 replies, 2 voices, and was last updated 10 years, 11 months ago by
Barry.
-
AuthorPosts
-
May 24, 2015 at 3:40 am #964729
Jonathan
ParticipantHi,
At the below link i have my event page if you take a look at the add to ticket box this appears underneath the ticket information is there a way to make this all one line as would look so much neater
http://www.batesbodyfactory.co.uk/event/bbf-body-conditioning-22/
Thanks
Adam
May 25, 2015 at 8:37 am #964813Barry
MemberHi Jonathan,
Great question!
You can find out more about safely overriding and customizing our templates by reading through our Themer’s Guide.
In this particular case you would probably need to revise the wootickets/tickets.php template – you can then have everything display on one line, if that makes sense for you (of course if you begin adding multiple tickets per event this may make less sense).
I hope that helps 🙂
May 25, 2015 at 11:29 am #964882Jonathan
ParticipantHi,
I have read through this and still a little bit lost how to achieve this im new to PHP and struggling
Adam
May 25, 2015 at 12:23 pm #964891Barry
MemberHi Adam,
Which element are you struggling with – were you able to successfully set up a template override for instance?
May 26, 2015 at 1:07 am #965011Jonathan
ParticipantBarry,
The template overide was fine.
im not sure what part of the PHP i need to move or change to make the “Add to cart” on one line
Adam
May 26, 2015 at 6:40 am #965058Barry
MemberHi Adam,
Here’s a minimal example of doing this:
https://gist.github.com/anonymous/65949b3468e4941aaf28
I’ve basically moved the add-to-cart button into a new table cell at the end of each row of tickets.
Downsides include the fact that you will have multiple add-to-cart buttons if you ever create a product with multiple tickets (though you could solve this with a further tweak – or you could take a pure CSS approach, possibly – but in any case it ought to serve as a good starting point for you, especially if you will only ever have one ticket per product).
Hope that helps!
June 10, 2015 at 5:40 am #968391Barry
MemberHi!
It’s been a while so I’m going to go ahead and close this topic.
- Need help with anything else? Go right ahead and post a new topic, one of the team will be only too happy to help
- Still need help with this issue and need to re-open it? Again, please simply create a new topic and link to this one to provide the team with some context
Thanks!
-
AuthorPosts
- The topic ‘Put add to cart on same line’ is closed to new replies.
