dkutcher
Forum Replies Created
-
Forum: Plugins
In reply to: [Mailchimp for WooCommerce] Remove out of stock or other products from sync?No, this isn’t resolved, but doesn’t seem like it’s possible to be resolved. There’s no way to “clear the store” and then only sync in-stock items, so it just leaves them there which doesn’t accomplish anything unfortunately.
Forum: Plugins
In reply to: [Mailchimp for WooCommerce] Remove out of stock or other products from sync?Thank you @builtbyjordan , I hope that future dev on the plugin allows for these options.
My attempt at using the filter seems to be failing… attempting to verify against an array of product IDs that are no longer in stock. What am I doing wrong? The plugin just hangs on sync.
function maybe_exclude_product_from_syncing( $product_id ): bool {
$outofstock = array(2562,2721,2055,2726,2454,2406,2095,2602,2120,2900,2901,2487,2488,2401,2528,2032,2784,2793,2850,2188,2043,2905,2486,2512);
if(in_array($product_id, $outofstock)){
return false;
}
}
add_filter( ‘mailchimp_should_push_product’, ‘maybe_exclude_product_from_syncing’, 10, 1 );Note: this might be connected to a filed in WooCommerce > Settings > Products > Advanced > “Enable Table Usage”. When unchecked it now works.
Forum: Themes and Templates
In reply to: [Neve] Sidebar not showing on Mobile (woocommerce products only)I can confirm this is also the case for my own store. No sidebar on mobile in the shop.