Add a woocomerce product which is not an event to event

Home Forums Ticket Products Event Tickets Plus Add a woocomerce product which is not an event to event

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #948142
    oniregoc
    Participant

    Hello,

    until now I succed adding a product to an event with the shortcode [product id=”ID”] in the texte field but of course the product appear in the top of the page.

    How can I make that product wihch is not an event appear next to the woocommerce ticket in the bottom of the page ?

    My product is coupon that clients can buy as a gift to offer so it’s logical to put it near the ticket as an option.

    #948197
    Barry
    Member

    Hi oniregoc,

    Might a template override allow you to accomplish this? You could then safely customize the ticket form (the template you’d be interested in is wootickets/tickets.php) and use do_shortcode() to add the desired product.

    If you also make clever use of either WordPress’s own custom fields (or else Event Calendar PRO’s additional fields) you could set the actual product ID from the event editor.

    Does that help at all?

    #948213
    oniregoc
    Participant

    Not really…

    calendar pro additional filed : can’t display product with the shorcode [product id=”99″]

    and template override means the additional field with do_shortcode() let event creator decide which product to add dynamicaly.

    I tried to use Advanced Custom Field but with no success until now.

    I can see the field when creating a new event but displaying the page do not show additionnal field content.

    Is there any conflict with ACF ?

    #948219
    Barry
    Member

    and template override means the additional field with do_shortcode() let event creator decide which product to add dynamicaly

    If that’s a problem you could hardcode the product ID instead, then the event creator will not be able to change it.

    I tried to use Advanced Custom Field but with no success until now.

    I can see the field when creating a new event but displaying the page do not show additionnal field content.

    Is there any conflict with ACF ?

    Not that I’m aware of, but unless I’m mistaken I’d point out you need to do some customization work within your templates to actually expose any custom fields you set up using ACF – reading though the ACF documentation, particularly with regards to template tags like the_field() and get_the_field() is probably worthwhile here 🙂

    #948282
    oniregoc
    Participant

    Hello

    <?php echo get_field('Add product shortcode');?> is doing the trick in single-event.php

    Thanks

    #948733
    Barry
    Member

    Awesome!

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Add a woocomerce product which is not an event to event’ is closed to new replies.