areklam
Forum Replies Created
-
Forum: Plugins
In reply to: [Reachu Embed Commerce] Attempt to read property “ID” on nullYou’ll also need to check if
$_POST["product"]
is empty in the same function.Solution can literally be
function save_detail( $post_id ){ if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE || empty( $_POST["product"] ) ) { return $post_id; } update_post_meta($post_id, "product", sanitize_text_field($_POST["product"])); }
Forum: Plugins
In reply to: [Integration for Adyen with WooCommerce] Undefined variable $method_typeThis breaks the WooCommerce settings pages, not just by using a separate plugin.
In “class_googlepay.php” the function payment_method_type() have to change the empty check, since $method_type can be empty.
On line 117 I added && !empty( $method_type )
if ( empty( $google_method ) && !empty( $method_type ) ) { set_transient( PREFIX . '_google_method', $method_type, \HOUR_IN_SECONDS ); $google_method = 'googlepay'; }
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] WooCommerce as MU-pluginThat actually worked.
I would have thought adding the filter to the theme would be enough, especially since only WooCommerce is a MU plugin and not this plugin. Anyways, thanks for helping out ??
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] WooCommerce as MU-pluginI’ve tried that filter without success. I could not get it to actually trigger.
Not sure if this is some incompatibility with Roots Sage, but I could not get this message to appear, but if I use a normal WordPress hook like
init
I could see the test message:add_filter('wpo_wcpdf_is_woocommerce_activated', function () { die(var_dump('test')); });