In setting up a campaign, Capture Activity doesn’t offer us the option of selecting WooCommerce. Only Automagic and Zapier.
Going into TP’s settings and selecting “WooCommerce Settings” gives us this:
______
We couldn’t find any WooCommerce webhooks for your campaigns.
We were unable to find any WooCommerce webhooks set up to send order data to your TrustPulse campaigns. If you believe this to be in error, first check your campaigns “Capture Activity” settings to be sure they are connected to your WooCommerce account and have webhooks connected. If you still are having trouble, Please reach out to our support team for assistance.
—————
This happens with both campaigns we’ve already created, and brand new ones. Help?
]]>After updating to 1.2.1, we’re seeing this error, which is also breaking all REST API requests across the site. PHP 8.1, WordPress 6.4.3.
]]>PHP Fatal error: Uncaught Error: Class “TPAPI_RestApi” not found in /home/***/public_html/wp-content/plugins/trustpulse-api/trustpulse.php:429
hey i want to display a clickable woocommerce product hyperlink when someone purchases the woocommerce product
]]>TrustPulse doesn’t recognise the webhook created even though all details are entered exactly as in the guide for setup.
]]>Please mention that it is a paid plugin clearly. Hiding such information makes TrustPulse not TrustWorthy ??
]]>The Trustpulse plugin tries to modify the WooCommerce REST API responses. As it is processing orders, it tries to use the order’s line items’ product ids to fetch the products in order to get metadata to add to the response.
If the product has been deleted, the following error occurs:
PHP Fatal error: Uncaught Error: Call to a member function get_permalink() on bool in /var/www/html/wp-content/plugins/trustpulse-api/TPAPI/WooCommerce.php:95
Stack trace:
#0 /var/www/html/wp-includes/class-wp-hook.php(303): TPAPI_WooCommerce::add_tp_product_data_to_wc_api(Object(WP_REST_Response), Object(Automattic\WooCommerce\Admin\Overrides\Order), Object(WP_REST_Request))
#1 /var/www/html/wp-includes/plugin.php(189): WP_Hook->apply_filters(Object(WP_REST_Response), Array)
#2 /var/www/html/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php(420): apply_filters('woocommerce_res...', Object(WP_REST_Response), Object(Automattic\WooCommerce\Admin\Overrides\Order), Object(WP_REST_Request))
#3 /var/www/html/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php(391): WC_REST_Orders_V2_Controller->prepare_object_for_response(Object(Automattic\WooCommerce\Admin\Overrides\Order), Object(WP_REST_Request))
#4 /var/www/html/wp-inc in /var/www/html/wp-content/plugins/trustpulse-api/TPAPI/WooCommerce.php on line 95
The solution is to check a valid product was returned before attempting to access its properties, in TPAPI/WooCommerce.php:93
// Product URL
if ( function_exists('wc_get_product') ) {
$wc_product = wc_get_product( $product['product_id'] );
if ( $wc_product instanceof WC_Product ) {
$permalink = $wc_product->get_permalink();
$response->data['line_items'][ $key ]['tp_product_url'] = $permalink;
}
}
https://plugins.trac.www.ads-software.com/browser/trustpulse-api/trunk/TPAPI/WooCommerce.php
]]>When I went to register trustpulse for my recently opened (1-3 days ago), It says total due $0 and takes me to pay this $0 on stripe. As a free account it shoukd not show this. Pls help me fix it.
]]>