Terrance

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Terrance
    Participant

    So Rest API would be only for The Events Calendar, not Ticket plugin? I needed for Ticket Plugin. So you have planning for adding Rest API support for Tickets Plugin.

    in reply to: Major Issues with WC3.0 #1265236
    Terrance
    Participant

    src/Tribe/Commerce/WooCommerce/Main.php at line 1980

    
    // add_filter( 'woocommerce_get_price', array( $this, 'get_regular_price' ), 99, 2 ); // commented 
    add_filter( 'woocommerce_product_get_price', array( $this, 'get_regular_price' ), 99, 2 ); // added to fix  the woocommerce_get_price
    $price_html = $product->get_price_html();
     
    // remove_filter( 'woocommerce_get_price', array( $this, 'get_regular_price' ), 99 ); // commented 
    remove_filter( 'woocommerce_product_get_price', array( $this, 'get_regular_price' ), 99 );  // added to fix  the woocommerce_get_price

    But I could not fix the third issues of

    Notice: id was called incorrectly. Product properties should not be accessed directly. Please see Debugging in WordPress for more information. (This message was added in version 3.0.)

    So this thread may help you
    https://github.com/hyyan/woo-poly-integration/issues/97
    https://wordpress.org/support/topic/woocommerce-3-0-notice/

    I just did a temporary fix at line 1819 in public function get_price_html( $product, $attendee = false )

    src/Tribe/Commerce/WooCommerce/Main.php

    if ( $should_show_regular_price ) {
    			// $price_html = $this->get_regular_price_html( $product );
    			$price_html = $product->get_price_html();
    		} else {
    			$price_html = $product->get_price_html();
    		}
    
    in reply to: Major Issues with WC3.0 #1265233
    Terrance
    Participant

    src/Tribe/Commerce/WooCommerce/Main.php

     // $product_data = $product->get_post_data(); // commented 
      $product_data = get_post( $ticket_id ); // added to fix 
    fixed the WC_Product::get_post_data error
    
Viewing 3 posts - 1 through 3 (of 3 total)