ledspros
Forum Replies Created
-
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Eco-participationHello, not sure to understand your answer. I have your plugin premium for all my clients… May you read again my question…
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] TranslationHello,
It is working very well. You are the best đ
Very happy to use your plug-in ( with premium ) for several of my clients.
Thanks a lot for your help.
Perfect !Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] TranslationHello, I have tryed your last code but unfortunatly, always same things:
1/ âEn cours dâapprovisionnementâ have disappeared on invoice: Great !
2/ âEn cours dâapprovisionnementâ is translated by âLivraison 5 Ă 8 joursâ and appears on quote: very great !
3/ But the line still appears on Delivery shipping ( =packing slip )âŚFor information the last code you let me:
add_filter( ‘wc_order_is_editable’, ‘__return_true’, 10, 2 );
add_filter( ‘woocommerce_backordered_item_meta_name’, ‘woocommerce_backordered_item_meta_name’, 10, 2 );
function woocommerce_backordered_item_meta_name( $name, $product ) {
return ‘Livraison 5 Ă 8 jours’;
}add_action( ‘wpo_wcpdf_before_html’, ‘wpo_wcpdf_item_meta_remove_backordered’, 10, 2 );
function wpo_wcpdf_item_meta_remove_backordered( $document_type, $document = null ) {
if ($document_type == ‘invoice’) {
add_filter( ‘woocommerce_order_item_get_formatted_meta_data’, ‘woocommerce_order_item_meta_remove_backordered’, 10, 2 );
}
}
function woocommerce_order_item_meta_remove_backordered( $formatted_meta, $item ) {
foreach ( $formatted_meta as $meta_id => $meta ) {
if ($meta->display_key == apply_filters( ‘woocommerce_backordered_item_meta_name’, __( ‘Backordered’, ‘woocommerce’ ), $item ) || $meta->display_key == __( ‘Backordered’, ‘woocommerce’ ) || stripos($meta->display_key, ‘Livraison ‘) !== false ) {
unset($formatted_meta[$meta_id]);
}
}
return $formatted_meta;
}Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] TranslationSorry, unfortunatly the line doesnât disappeared on Delivery shipping ( packing slip )âŚ
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] TranslationHello,
Thanks,
1/ “En cours d’approvisionnement” disappeared on invoice: Great !
2/ “En cours d’approvisionnement” is translated by “Livraison 5 Ă 8 jours” and appears on quote: very great !
3/ But it doesn’t disappeared on Delivery shipping ( packing slip )…
For information I let all codes you let me:add_filter( ‘wc_order_is_editable’, ‘__return_true’, 10, 2 );
add_filter( ‘woocommerce_backordered_item_meta_name’, ‘woocommerce_backordered_item_meta_name’, 10, 2 );
function woocommerce_backordered_item_meta_name( $name, $product ) {
return ‘Livraison 5 Ă 8 jours’;
}add_action( ‘wpo_wcpdf_before_html’, ‘wpo_wcpdf_item_meta_remove_backordered’, 10, 2 );
function wpo_wcpdf_item_meta_remove_backordered( $document_type, $document = null ) {
if ($document_type == ‘invoice’) {
add_filter( ‘woocommerce_order_item_get_formatted_meta_data’, ‘woocommerce_order_item_meta_remove_backordered’, 10, 2 );
}
}
function woocommerce_order_item_meta_remove_backordered( $formatted_meta, $item ) {
foreach ( $formatted_meta as $meta_id => $meta ) {
if ($meta->display_key == apply_filters( ‘woocommerce_backordered_item_meta_name’, __( ‘Backordered’, ‘woocommerce’ ), $item ) ) {
unset($formatted_meta[$meta_id]);
}
}
return $formatted_meta;
}Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] TranslationHi,
Few times ago, you give me a code to delete the line “En cours d’approvisionnement”. It is working perfectly. But is it possible to remove the line only for invoice and delivery order, but let the line to the quote ?
This is your code:add_action( ‘wpo_wcpdf_before_html’, ‘wpo_wcpdf_item_meta_remove_backordered’ );
function wpo_wcpdf_item_meta_remove_backordered() {
add_filter( ‘woocommerce_order_item_get_formatted_meta_data’, ‘woocommerce_order_item_meta_remove_backordered’, 10, 2 );
}
function woocommerce_order_item_meta_remove_backordered( $formatted_meta, $item ) {
foreach ( $formatted_meta as $meta_id => $meta ) {
if ($meta->display_key == apply_filters( ‘woocommerce_backordered_item_meta_name’, __( ‘Backordered’, ‘woocommerce’ ), $item ) ) {
unset($formatted_meta[$meta_id]);
}
}
return $formatted_meta;
}Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] TranslationOk, thanks for all
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] TranslationEffectively, it works with only new orders.
Thanks for help,
Best RegardsForum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] TranslationSorry,but
1/ I have copy all codes in function.php
2/ translated “backordered” by “Livraison 5 Ă 8 jours” in locotranslate/plugin/woocommerce” but no changes…add_filter( ‘wc_order_is_editable’, ‘__return_true’, 10, 2 );
add_filter( ‘woocommerce_backordered_item_meta_name’, ‘woocommerce_backordered_item_meta_name’, 10, 2 );
function woocommerce_backordered_item_meta_name( $name, $product ) {
return ‘Livraison 5 Ă 8 jours’;
}Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] TranslationHello, do you received my last message ?
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] TranslationSorry. may I have to write the both 1) and 2) ?
It seems that if I copy 1) in function.php it broke the website…Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] TranslationForum: Plugins
In reply to: [Customer Reviews for WooCommerce] Reviews on googleHi,
I sent you an email with the picture.
Best Regards,
Leds-ProsForum: Plugins
In reply to: [Site Reviews] installation impossibleHi,
Thanks a lot for your great answer and help.
Best Regards,
Leds-ProsForum: Plugins
In reply to: [Customer Reviews for WooCommerce] Reviews on googleHello,
Thanks for your return. Is it possible to send you a picture, may be it will be more clear that my poor english…