AiTrillion log cleared
'; } // display the admin options page function aitrillion_options_page() { ?>
AiTrillion syncing status logs |
|
| Failed products sync: | 'product', 'meta_query' => array( array('key' => '_aitrillion_product_sync', //meta key name here 'value' => 'false', 'compare' => '=', ) ) ); $wc_query = new WP_Query($params); $failed_products = $wc_query->found_posts; $failed_products = 0; $orders = get_option( '_aitrillion_created_orders' ); if($orders){ // remove duplicate ids $orders = array_unique($orders); $failed_products = count($orders); } $orders = get_option( '_aitrillion_updated_orders' ); if($orders){ // remove duplicate ids $orders = array_unique($orders); $failed_products = $failed_products + count($orders); } echo $failed_products; ?> |
| Failed order sync: | -1, // Query all orders 'meta_key' => '_aitrillion_order_sync', 'meta_value' => 'false', 'meta_compare' => '=', // The comparison argument )); if(!empty($orders)){ echo count($orders); }else{ echo '0'; } ?> |
| Failed categories sync: | false, // also retrieve terms which are not used yet 'meta_query' => array( array( 'key' => '_aitrillion_category_sync', 'value' => 'false', 'compare' => '=' ) ), 'taxonomy' => 'product_cat', ); $terms = get_terms( $args ); if(!empty($terms)){ echo count($terms); }else{ echo '0'; } ?> |
| Failed customers sync: | '_aitrillion_user_sync', 'meta_value' => 'false' )); if(!empty($customers)){ echo count($customers); }else{ echo '0'; } ?> |
Use below shortcode and place on any page to display Aitrillion widget
| List review + Write a review section | [aitrillion_list_review] |
| Product Featured Review Shortcode | [aitrillion_product_featured_reviews] |
| Site Reviews Shortcode | [aitrillion_site_reviews] |
| New Arrivals Shortcode | [aitrillion_new_arrival] |
| Trending Product Shortcode | [aitrillion_trending_product] |
| Recent View Shortcode | [aitrillion_recent_view] |
| Affiliate Shortcode | [aitrillion_affiliate] |
| Loyalty Shortcode | [aitrillion_loyalty] |
AiTrillion requires woocommerce. Please install and activate woocommerce.