Forum Replies Created
-
AuthorPosts
-
May 12, 2017 at 8:23 pm in reply to: Need a Mobile App for Event Tickets and Tickets Plus!!! #1283365
Terrance
ParticipantSo 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.
Terrance
Participantsrc/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_priceBut 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(); }Terrance
Participantsrc/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 -
AuthorPosts
