hprata

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • hprata
    Participant

    Hello we have another question regarding your suggestion.

    What is the conditional function that checks if you are in the “my tickets” section? And does that distinguish between the tickets table on the singular Event page? If there is a conditional in place where can we find it?

    Thanks in advance!
    Also do you mind removing the image above. I didn’t notice it had an email address in it when I put it up.

    in reply to: How do I make event tickets visible in woocommerce #1169607
    hprata
    Participant

    Sorry I don’t think I explained what I wanted to accomplish properly. I need to use woocommerce name your price extension, but it does not work with event tickets plus For some reason.

    I want to add a link to the tickets in woocommerce catalog on the event listings and event page, instead of using the ticket entry form at the bottom of the event page generated by event tickets plus.

    I tried this code but did not work. it links to the event not the ticket in woocommerece

    ————-

    <?php
    $count = 0;
    echo '<ul>';
    
    foreach ( $tickets as $ticket ) {
    	global $product;
    	$count++;
    
     	if ( class_exists( 'WC_Product_Simple' ) ) $product = new WC_Product_Simple( $ticket->ID );
    	else $product = new WC_Product( $ticket->ID );
    
    	$price = $product->get_price_html();
    	$link = '<a href="' . $product->get_permalink() . '">Buy!</a>';
    	echo "<li> $ticket->name $price $link </li>";
     }
    
    if ( 0 === $count )
    	echo '<li> There are no tickets available for this event </li>';
    
    echo '</ul>';
    hprata
    Participant

    This reply is private.

    hprata
    Participant

    How do I send the files privately?

    hprata
    Participant

    Is there anyway The Event Calendar crew can take a look. This is for a Not for Profit org that can Not afford custom programming. They purchased this plug in believing it was fully compatible with woocommerce and its supported extensions, including name your price.

Viewing 5 posts - 1 through 5 (of 5 total)