Tompi
Forum Replies Created
-
Forum: Plugins
In reply to: [Auto Last Youtube Video] Doesn't work with channel IDI don’t remember what way we used with it but I remember to speak with the client about 3 options:
– changing the type of youtube account
– make some changes in the plugin and hard code the user name
– make the changes manuallyAll I can say is that it was a small project with a low budget and I didn’t spend lot of time with it.
Forum: Plugins
In reply to: [WooCommerce] Custom billing fields not displaying in order adminHi Brand.
For this, I think you should edit the “order-details-customer.php” template (in the “order” folder).
You should add something like the following code where you want your field(s) to appear (the code is based on the example I used from the beginning):
<?php if ( $order->billing_DNI ) : ?> <?php _e( 'ID Card:' ); ?> <?php $order->billing_DNI; ?> <?php endif; ?>
Feel free to wrap each line with the HTML tag you want/need.
I hope this helped.
Forum: Plugins
In reply to: [WooCommerce] Custom billing fields not displaying in order adminYeah, Thank you Mike!
It was the filter I was looking for.
If this can help someone else, here is the code I used.
add_filter('woocommerce_email_customer_details_fields', 'tompi_add_email_billing_field', 15, 3); function tompi_add_email_billing_field( $fields, $sent_to_admin, $order ) { $fields['billing_DNI'] = array( 'label' => __('ID Card'), 'value' => $order->billing_DNI ); return $fields; }
I agree with Brand, I think you should include it in the documentation at I didn’t found it even after hours of googling.
Anyway, thanks for your help!
Forum: Plugins
In reply to: [WooCommerce] Custom billing fields not displaying in order adminHi Mike, the priority is not the problem. I don’t really mind if it shows before or after the other details, while it appears together with them.
The problem is that the new field doesn’t appear in the same “block” as the other ones.
I let you a link to see what I mean: https://www.dropbox.com/s/y3xdrmn9hdi5z2a/Captura%20de%20pantalla%202016-04-15%2011.29.52.png?dl=0Forum: Plugins
In reply to: [WooCommerce] Custom billing fields not displaying in order adminI wanted to show it in the mail with the user’s email address and phone but with this last hook, it just shows under them.
What should I change to have it working just as I expected?
Forum: Plugins
In reply to: [WooCommerce] Custom billing fields not displaying in order adminadd_action( 'woocommerce_email_customer_details', 'tompi_add_email_billing_field', 15, 3 ); function tompi_add_email_billing_field( $order, $sent_to_admin, $plain_text) { if ( $plain_text ) { echo __('ID Card') . ': ' . $order->billing_DNI . "\n"; } else { echo '<p><strong>' . __('ID Card') . ':</strong> <span class="text">' . $order->billing_DNI . '</span></p>'; } }
Forum: Plugins
In reply to: [WooCommerce] Custom billing fields not displaying in order adminTo have it showing in the admin, I found (after seeking in the core of woocommerce) that adding the following worked:
add_filter( 'woocommerce_admin_billing_fields' , 'tompi_add_admin_billing_field' ); function tompi_add_admin_billing_field( $fields ) { $fields['DNI'] = array( 'label' => __('ID Card') ); return $fields; }
Forum: Plugins
In reply to: [WooCommerce] Custom billing fields not displaying in order adminHi Mike,
Here is my code:
add_filter( 'woocommerce_checkout_fields' , 'tompi_add_billing_field' ); function tompi_add_billing_field( $fields ) { $fields['billing']['billing_DNI'] = array( 'label' => __('ID Card'), 'placeholder' => _x('ID Card', 'placeholder'), 'required' => true, 'class' => array('form-row-wide input-text'), 'clear' => true ); return $fields; }
You’re right in some way, as it automatically stores and shows in the checkout page (front end) but not in the admin edit order page.
Forum: Plugins
In reply to: [WooCommerce] Custom billing fields not displaying in order adminYeah, I have the same problem.
Some idea?
Hi Marco,
Everything was working fine before the version 3 update.
Forum: Plugins
In reply to: [WooCommerce] Store notice doesn't work wellCuriously, between 3-5 hours after saving the changes, they appear!
Forum: Plugins
In reply to: [WooCommerce] Best Multilingual Plugin that is Compatible with WoocommerceWPML works quite well for me.
Hi all,
I’ve seen there is a change in the way you have to translate the form.
You now don’t have to do it in the “string translations” but you have to go to the “translation manager”, add the form(s) to the translation basket and send items to translation.
Then you’ll have to enter the “translations” menu, and edit the form(s) you need to.I thought this would be the solution but, at least in my case, even after translating the form and all the fields there, it still doesn’t appear well on the front end.
I hope this can help.
Thanks and cheers.
I did it exactly the same way and before the major update it was working fine.
Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] WPMLI don’t understand why it’s marked as “Solved” as it’s not.
I updated WP to 4.4 and this plugin too but it’s still doing the same.