Put add to cart on same line

Home Forums Ticket Products Event Tickets Plus Put add to cart on same line

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #964729
    Jonathan
    Participant

    Hi,

    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

    #964813
    Barry
    Member

    Hi 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 🙂

    #964882
    Jonathan
    Participant

    Hi,

    I have read through this and still a little bit lost how to achieve this im new to PHP and struggling

    Adam

    #964891
    Barry
    Member

    Hi Adam,

    Which element are you struggling with – were you able to successfully set up a template override for instance?

    #965011
    Jonathan
    Participant

    Barry,

    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

    #965058
    Barry
    Member

    Hi 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!

    #968391
    Barry
    Member

    Hi!

    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!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Put add to cart on same line’ is closed to new replies.