PieterC
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce Hear About Us] Question placementHi Mrboats,
We’ll look into it at a next update. In the meanwhile, you could probably solve your wish already manually with this topic:
https://ww.wp.xz.cn/support/topic/change-order-of-billing-fields-on-checkout-page/
Forum: Plugins
In reply to: [WooCommerce Hear About Us] Many notices showing up in the logsHey Louis,
Thanks for letting us know. We were aware of the problem. We are using the “old” way to get an order ID.
We’ll try to release an update asap which would clear this right up. Please note that this does not affect plugin functionality in any way.
Have a nice day,
Koen
Hey Isaac,
This is the code related to custom variables:
public static function getVariables() { return apply_filters( 'wcp_variables', array( 'order_id' => __( 'The ID of the order.', 'woocommerce-plivo' ), 'home_url' => __( 'The home URL.', 'woocommerce-plivo' ), 'shop_name' => __( 'The name of the shop.', 'woocommerce-plivo' ), ) ); } public static function getVariableValues( $order_id ) { return apply_filters( 'wcp_variable_values', array( 'order_id' => $order_id, 'home_url' => home_url(), 'shop_name' => get_option( 'blogname' ), ), $order_id ); }So you’ll want to use those two filters to add custom variables.
Best regards,
Koen
Forum: Plugins
In reply to: [WooCommerce Hear About Us] Anyone tested with WC 3.0?Hi Tevya,
Yes, the plugin is still just working. We should do a version bump, but it feels not right when nothing else has been added yet, since we have a shortlist of small things to make the plugin even better.
We’ll try to make some time to give the plugin (and version number) a little TLC soon.Regards,
Pieter
Forum: Plugins
In reply to: [WooCommerce Hear About Us] Order emailHey Jessica,
Just tried this out with the latest WP + Plugin versions, and it behaves as expected. Do you still experience problems?
Regards,
Koen
Forum: Plugins
In reply to: [WooCommerce Hear About Us] Order emailHello Jessica,
Thanks for getting in touch. Might be a compatibility issue, we’ll be looking into this.
If you’re interested, you can keep an eye on our GitHub page to see the progress.
Regards,
Koen
Forum: Plugins
In reply to: [WooCommerce Hear About Us] Where are the settings?Hi Houston,
Thank you for reaching out. You can find your settings under WooCommerce > Accounts (/wp-admin/admin.php?page=wc-settings&tab=account) at the bottom.
If you don’t find them there, could you give a bit more information about your install? What WP, WooCommerce version & plugin cocktail are you running?
Kind regards,
Pieter
Hey Louis,
The name of that metafield is “_wchau_source”.
Good luck!
Koen
Forum: Plugins
In reply to: [WooCommerce Hear About Us] Remove source from customer emailHey Sarah,
We made some changes and the above code no longer works. Now you will need to do this:
add_filter( 'woocommerce_email_order_meta_keys' , 'remove_hearaboutus_fields',15 ); function remove_hearaboutus_fields( $fields ) { unset($fields[__( 'Source', 'woocommerce-hear-about-us' )]); return $fields; }If that doesn’t work, please try and remove that filter all together:
function remove_wchau_email_field() { global $WCHAU; remove_filter( 'woocommerce_email_order_meta_keys', array( $WCHAU->customField, 'add_field_to_email' ) ); } add_action('init', 'remove_wchau_email_field', 15);Hope this solves your problem.
Koen
Forum: Plugins
In reply to: [WooCommerce Hear About Us] Feature request: ReportingUpdate for anyone following this topic, we’ve been busy on other projects, but this feature is still on the roadmap. We’ll update this topic when the time is ready.
Regards,
Pieter
Hi Tallydigtalbiz,
It has indeed been fixed in our latest 1.5.2 release (see changelog).
Regards,
Pieter
Hi Chris,
Thank you for reaching out. We’ll look into this very soon.
Regards,
Pieter
Forum: Plugins
In reply to: [WooCommerce Hear About Us] working with paypal expressHello detoner,
We currently do not plan to support this, unfortunately.
Regards,
Koen
Forum: Plugins
In reply to: [WooCommerce Hear About Us] Remove source from customer emailHi Pandaj,
Your code should work, but you’re probably removing the fields before we’re inserting it.
Have you tried giving it a later priority (ie 15)?
add_filter( 'woocommerce_email_order_meta_keys' , 'remove_hearaboutus_fields',15 ); function remove_hearaboutus_fields( $fields ) { unset($fields['wchau_source']); return $fields; }Forum: Plugins
In reply to: [WooCommerce Hear About Us] Remove source from customer emailHi Pandaj,
You can use the default WooCommerce ‘woocommerce_email_order_meta_keys’ filter to filter this field from the customer emails.
Regards,
Pieter