Woozy Face
Forum Replies Created
-
@adriandw donβt you feel bad taking over and mastering my post…?
The fix for me was upgrading to MailPoet 3.
So thatβs all for now folks.
Meh. it’s fine…
Well that explains a lot! Thank you, however the issue came back… π is there anyway i could use the log of your plugin for free and a short period of time so i can track whats going on? i don’t want the premium version just want to see whats going on…
Thanks
Found it! there was this code in functions which broke everything.
Why was it even added? i know not specificly by you but can you tell me more bout this since you are an expert on mailing?
// SMTP Authentication
add_action( ‘phpmailer_init’, ‘send_smtp_email’ );
function send_smtp_email( $phpmailer ) {
$phpmailer->isSMTP();
$phpmailer->Host = SMTP_HOST;
$phpmailer->SMTPAuth = SMTP_AUTH;
$phpmailer->Port = SMTP_PORT;
$phpmailer->Username = SMTP_USER;
$phpmailer->Password = SMTP_PASS;
$phpmailer->SMTPSecure = SMTP_SECURE;
$phpmailer->From = SMTP_FROM;
$phpmailer->FromName = SMTP_NAME;
}Forum: Plugins
In reply to: [WooCommerce] Conditional fields?I already got it working
Forum: Plugins
In reply to: [WooCommerce] Conditional fields?Hi there, Thanks for the quickest reply ever!
I’ve tried something but if I activate the plugin it gets an fatal error Could you please give me a hand and help me to get this working?
<?php /** * Plugin Name: Conditional WooCommerce Checkout Fields * Description: Adds the abilitiy to conditionally show / hide checkout fields. * Version: 1.0 * Author: EasyComp Zeeland * Author URI: http://easycompzeeland.nl */ /** * Check if a specific product category is in the cart */ function wc_ninja_category_is_in_the_cart( $categories ) { // Products currently in the cart $cart_ids = array(); // Categories currently in the cart $cart_categories = array(); // Find each product in the cart and add it to the $cart_ids array foreach( WC()->cart->get_cart() as $cart_item_key => $values ) { $cart_product = $values['data']; $cart_ids[] = $cart_product->id; } // Connect the products in the cart w/ their categories foreach( $cart_ids as $id ) { $products_categories = get_the_terms( $id, 'product_cat' ); // Loop through each product category and add it to our $cart_categories array foreach ( $products_categories as $products_category ) { $cart_categories[] = $products_category->slug; } } // If one of the special categories are in the cart, return true. if ( ! empty( array_intersect( $categories, $cart_categories ) ) ) { return true; } else { return false; } } /** * Conditionally remove checkout fields */ function wc_ninja_remove_checkout_field( $fields ) { $categories = array( 'mobiel', 'online' ); // If mobile is in cart if ( wc_ninja_category_is_in_the_cart( $categories ) ) { unset( $fields['additional']['vaststart'] ); } if ( wc_ninja_category_is_in_the_cart( $categories ) ) { unset( $fields['additional']['providervast'] ); } if ( wc_ninja_category_is_in_the_cart( $categories ) ) { unset( $fields['additional']['klantnummervast'] ); } if ( wc_ninja_category_is_in_the_cart( $categories ) ) { unset( $fields['additional']['aansluitingvast'] ); } if ( wc_ninja_category_is_in_the_cart( $categories ) ) { unset( $fields['additional']['einddatumvast'] ); } return $fields; } add_filter( 'woocommerce_checkout_fields' , 'wc_ninja_remove_checkout_field' ); /** * Conditionally remove checkout fields vast */ function wc_ninja_remove_checkout_field( $fields ) { $categories = array( 'voip', 'online' ); // If mobile is in cart if ( wc_ninja_category_is_in_the_cart( $categories ) ) { unset( $fields['additional']['nummerbehoudmobielstart'] ); } if ( wc_ninja_category_is_in_the_cart( $categories ) ) { unset( $fields['additional']['behoudennrmobiel'] ); } if ( wc_ninja_category_is_in_the_cart( $categories ) ) { unset( $fields['additional']['providermobiel'] ); } if ( wc_ninja_category_is_in_the_cart( $categories ) ) { unset( $fields['additional']['klantnummermobiel'] ); } if ( wc_ninja_category_is_in_the_cart( $categories ) ) { unset( $fields['additional']['aansluitingmobiel'] ); } } add_filter( 'woocommerce_checkout_fields' , 'wc_ninja_remove_checkout_field' );If you get this working I would like to buy you a cup of coffee or tea! Just hit me up with a donation link!
Still no fix? Thats not very kind mailpoet team π
Forum: Plugins
In reply to: [Service Area Postcode Checker] is it hungry for API?Please continue explaining ^^_
Forum: Plugins
In reply to: [Christmas Greetings] Mobile logo moved down?!no followup?
Forum: Plugins
In reply to: [Christmas Greetings] how to keep the music playing in the background?no followup?
still reading this? @purplecodes
Well watch your screenshot again. Do you see the squares? Thatβs definitely an issue.
Greetings
Hi there, i did not install any plugins for a long time π so it seems a little odd, however I did what you told me already but no luck. The strange thing is that they show up sometimes but mostly not.
- This reply was modified 7 years, 7 months ago by Woozy Face.
Anyone please?
Forum: Plugins
In reply to: [WP Fastest Cache - WordPress Cache Plugin] 500 error on first time visitI Found the bugging plugin removed it and now the site is amazingly fast! thanks!