lewebsimple
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced AJAX Product Filters] add_disabled_term breaks ACF term updateNo error message is displayed, the ACF field on the taxonomy term simply refuses to save because inserting
isdisabled
ininit
gobbles up the POST request and the field is saved on the isdisabled term instead of the edited term.Simply adding a check above the
wp_insert_term
fixes the error:public function add_disabled_term() { // FIX: Inserting the term over and over again breaks ACF term field updates if ( term_exists( 'isdisabled', 'berocket_taxonomy_data' ) ) { return; } wp_insert_term( 'isdisabled', 'berocket_taxonomy_data', array( 'description' => '', 'parent' => 0, 'slug' => 'isdisabled', ) ); }
This will also prevent trying to insert the same term on each request (!!)
The issue can be fixed by adding a replacing the if..else block at line 114 with the following:
$status = $processing_result; if ( ! $status && $method === 'not_in_list' ) { break; }
- This reply was modified 3 years, 3 months ago by lewebsimple.
Forum: Plugins
In reply to: [Carts Guru] Database gets hugeThis is caused by WC session being uninitialized for logged-out users, thus generating a new cart for every request to the site.
Forcing the session initialization prevents most of the cart duplication:
add_action( 'woocommerce_init', 'yourtheme_woocommerce_init_session' ); function yourtheme_woocommerce_init_session() { if ( ! WC()->session->has_session() ) { WC()->session->set_customer_session_cookie( true ); } }
The error occurs when multiple select filters are present, and the user selects a second option from a filter.
There seems to be an infinite loop in yith-woocommerce-ajax-product-filter-premium/widgets/class.yith-wcan-navigation-widget.php at line 235.I think I got it working by changing line 236 to the following:
$key = array_search( $term->slug, $data['terms'] );
- This reply was modified 5 years, 3 months ago by lewebsimple.
- This reply was modified 5 years, 3 months ago by lewebsimple.
Same issue here, very annoying !!!
Forum: Plugins
In reply to: [WooCommerce] Updating Woocommerce broke BookingsWhy is this marked as resolved?
I’m having the same problem when updating to WooCommerce 3.4.0, using the following versions:
woocommerce-bookings – 1.11.1
woocommerce-accommodation-bookings – 1.1.2Forum: Plugins
In reply to: [WooCommerce] Payment fatal errorSame problem here…
Forum: Plugins
In reply to: [Stripe for WooCommerce] erroneous Required Field warningsSame thing here…..
- This reply was modified 8 years, 1 month ago by lewebsimple.