Dave van Hoorn
Forum Replies Created
-
Hi Tatvic,
After debugging the plugin worked fine. Thanks for getting back to me. I’ve found a new bug / improvement for WPML Woocommerce stores. I’ll create another thread for this.
Unfortunately I have the same issue. I thought it might be because I was logged in as an admin, but ordering and checking out the source as a visitor didn’t help.
Please post a solution. The url for my webshop is https://www.aquavitwater.nl
Forum: Fixing WordPress
In reply to: Is there a known Chrome bug with WP 4.3 on Mac?Damn! You’re right. And I feel pretty stupid now. Thanks for sticking with me though, it’s fixed.
Forum: Fixing WordPress
In reply to: Is there a known Chrome bug with WP 4.3 on Mac?Copied from my Chrome flags:
Disable slimming paint. Mac, Windows, Linux, Chrome OS, Android
Do not use the slimming paint display lists for drawing. Note the enable-slimming-paint flag takes precedence over this flag if both are present. #disable-slimming-paint
Enable
Enable slimming paint. Mac, Windows, Linux, Chrome OS, Android
Use the slimming paint display lists for all drawing. Takes precedence over the disable-slimming-paint flag if both are present. #enable-slimming-paint
DisableWhere was this fix confirmed?
Forum: Fixing WordPress
In reply to: Is there a known Chrome bug with WP 4.3 on Mac?I’m sorry, but changing the Chrome flags did not solve the issue. I tried it on another device (Macbook Pro – Chrome 45.0.2454.85 (64-bit) – no extensions) and relaunched Chrome by the “Relaunch Now” button in the bottom left corner of the window. The menu’s still messy.
Forum: Fixing WordPress
In reply to: Is there a known Chrome bug with WP 4.3 on Mac?Hi Samuel, unfortunately that didn’t do it for me. @raffjones and your followup in the core ticket did. Posting it here for reference:
Paste this in your functions.php
add_action('admin_enqueue_scripts', 'chrome_fix'); function chrome_fix() { if ( strpos( $_SERVER['HTTP_USER_AGENT'], 'Chrome' ) !== false ) wp_add_inline_style( 'wp-admin', '#adminmenu { transform: translateZ(0); }' ); }
Forum: Plugins
In reply to: [WooCommerce] Fatal error when trying to add checkout custom fieldThanks mav666, but that dash in the function name might be confusing to some.
Corrected answer:
function custom_checkout_function(){ if( !$_POST['your-name-id'] ){ wc_add_notice( __( 'Your error message.' ), 'error' ); } } add_action( 'woocommerce_checkout_process', 'custom_checkout_function' );
Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] Sync does not pass other fieldsHi Iris,
You should edit some of the plugin code to make sure your fields are being sent to MailChimp.
If you open up and scroll down in the file ‘ListSynchronizer.php’ of the MailChimp Sync plugin (it’s in the src folder), you’ll see FNAME and LNAME are being pulled from the wp_usermeta table by calling get_user_meta.
If you’re sure the users zip code is being set as user meta upon registration, all you need to do is add a line in the extract_merge_vars_from_user function:
if( '' !== get_user_meta( $user->ID, 'zip_code', true ) ) { $data['ZIPCODE'] = get_user_meta( $user->ID, 'zip_code', true ); }
Make sure to match ‘zip_code’ with the meta_key in the wp_usermeta table, and check that the MERGE tag in the MailChimp settings correspondents with what you set in $data[]. Obviously all has to match, otherwise the zip code still won’t show up in MailChimp.
Remember that editing core / plugin code isn’t a great idea because of futures updates, these will erase your custom code. Consider this as a quick and dirty fix.
Good luck ??