pictogram
Forum Replies Created
-
Thanks @andrewshu for your reply.
Do you mean this ? https://prnt.sc/2-OGm2kykhy_
What I was expected is that restricted post do not show at all, not even “Restricted content”, but still not locking the whole website.
Hi @wfpeter,
Thanks for your support and tips.
I will look into this with these tips.
Case closed.
Thanks
I have resolved my issue and posted about it 10 days ago.
As I mentionned it, these 2 strings are set in the default forms. I didn’t looked inside the forms. And when I checked in these forms I did translate them and it’s correct.
Thanks
Found it !!!
The strings were hardcoded in the forms themselves : https://prnt.sc/8-J-a_xbqiBz
I must admit I didn’t looked in default forms.
Hi,
thanks for your support. Still having the issue though !!
Please have a look at : https://www.loom.com/share/a3b43452249649bd93dd5dd546128f45Thanks
Hi,
Thanks for your quick support.
I did all of what is recommanded in your doc page and it did not resolve my issue. Strings are still showing in english. Are these strings hardcoded ?
As I mentionned in my previous post, .PO and .MO files are already in /wp-content/languages/plugins/ and “Username” and “Password” strings are already translated in these files.
As far as I can see, these are the only strings not displaying in french ? Strange
Hello @stevejburge
+++ for this request.
One of my client is in great need for this feature.
And there’s almost no options for this feature.Thanks
Forum: Plugins
In reply to: [Search order by SKU] Quick FixHi,
Thanks for the fix.
Any clue how your fix could be tweaked for variation’s SKU ?
It actually works only for SKU set on product level but not on variation level.
My WC install does not use product SKU but variation SKU only.Thanks
Thanks for your reply
Thanks a lot
Hi,
I have this code that creates a custom field in each variation,
// 1. Add custom field input @ Product Data > Variations > Single Variation add_action( 'woocommerce_variation_options_pricing', 'fierbourg_add_custom_field_to_variations', 10, 3 ); function fierbourg_add_custom_field_to_variations( $loop, $variation_data, $variation ) { woocommerce_wp_text_input( array( 'id' => 'custom_field[' . $loop . ']', 'class' => 'short', 'label' => __( 'Custom Field', 'woocommerce' ), 'value' => get_post_meta( $variation->ID, 'custom_field', true ) ) ); } // 2. Save custom field on product variation save add_action( 'woocommerce_save_product_variation', 'fierbourg_save_custom_field_variations', 10, 2 ); function fierbourg_save_custom_field_variations( $variation_id, $i ) { $custom_field = $_POST['custom_field'][$i]; if ( isset( $custom_field ) ) update_post_meta( $variation_id, 'custom_field', esc_attr( $custom_field ) ); } // 3. Store custom field value into variation data add_filter( 'woocommerce_available_variation', 'fierbourg_add_custom_field_variation_data' ); function fierbourg_add_custom_field_variation_data( $variations ) { $variations['custom_field'] = '<div class="woocommerce_custom_field">Dates: <span>' . get_post_meta( $variations[ 'variation_id' ], 'custom_field', true ) . '</span></div>'; return $variations; }
but I can’t adjust your snippet with it. What am I missing
// 4. Display custom field to product page variations add_filter( 'woovr_variation_info', 'woovr_variation_extra_info', 99, 2 ); function woovr_variation_extra_info( $info, $product ) { return $info . '<div class="woovr-variation-extra">Your custom text for variation ID ' . $product->get_id() . ' here!</div>'; }
Thanks for your support
Thanks
Thanks a lot
Ok, thanks for the tip,
And how would I display infos from regular WC fields, like prodduct category, variations infos, …?
Thanks for your support