ITP TECHNOLOGIE
Forum Replies Created
-
Full error with WooCommerce plugin ….
I’m getting this error with the WooCommerce plugin from Awesome Support when my RestAPI is working…09.220.157.18 - ck_b91fe34779bf7910dc499d4bc47f6cf081a19407 [12/Jun/2023:13:33:38 +0200] "GET /wp-json/wc/v3/products/?sku=TSM_IP11_64GB_MAUVE_AB HTTP/1.1" 500 1485 "-" "PostmanRuntime/7.29.0" 172.31.29.114 - - [12/Jun/2023:13:33:38 +0200] "GET / HTTP/1.1" 301 425 "-" "ELB-HealthChecker/2.0" [Mon Jun 12 13:33:40.205153 2023] [php:error] [pid 10058] [client 13.36.151.155:0] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /var/www/html/wp-content/plugins/awesome-support-woocommerce/includes/class-aswc-custom-fields.php:133\nStack trace:\n#0 /var/www/html/wp-content/plugins/awesome-support-woocommerce/includes/class-aswc-custom-fields.php(37): aswc_get_orders_list()\n#1 /var/www/html/wp-includes/class-wp-hook.php(308): awesome_support_woocommerce_register_field('')\n#2 /var/www/html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)\n#3 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)\n#4 /var/www/html/wp-settings.php(623): do_action('init')\n#5 /var/www/html/wp-config.php(152): require_once('/var/www/html/w...')\n#6 /var/www/html/wp-load.php(50): require_once('/var/www/html/w...')\n#7 /var/www/html/wp-cron.php(46): require_once('/var/www/html/w...')\n#8 {main}\n thrown in /var/www/html/wp-content/plugins/awesome-support-woocommerce/includes/class-aswc-custom-fields.php on line 133 13.36.151.155 - - [12/Jun/2023:13:33:39 +0200] "POST /wp-cron.php?doing_wp_cron=1686569619.7688920497894287109375 HTTP/1.1" 500 1467 "-" "WordPress/6.2;
- This reply was modified 1 year, 4 months ago by ITP TECHNOLOGIE.
Forum: Plugins
In reply to: [WP Offload SES Lite] is_readable(): open_basedir restriction in effect.So, to avoid having the problem, are you advising to disable the visibility of issues, or am I misunderstanding?
Hello, I have created an Email type custom field that I added in the payment section : https://prnt.sc/YxsM_o5ETHsB
My first problem is that in my orders, I find myself with the label in custom : https://prnt.sc/RgLS51U-DyI3
My second issue is that I want to retrieve this email address to also send invoices, credit notes, and quotes to it, but it’s not working…
This is the code found in my functions.php
add_filter( 'woocommerce_email_headers', 'woocommerce_emails_bcc_copy', 10, 3); function woocommerce_emails_bcc_copy( $headers, $email_id, $order, $email = null ) { // Si la notification par e-mail est "Completed order" ou "Processing order" if ( in_array( $email_id, array('refunded', 'completed', 'expedier') ) ) { // Remplacez 'b2bking_custom_field_171853' par la clé de métadonnées réelle de votre champ personnalisé if ( $extra_email_address = $order->get_meta( 'Comptabilité' ) ) { $billing_full_name = $order->get_formatted_billing_full_name(); $headers .= 'BCC: ' . $billing_full_name . ' <' . $extra_email_address . '>' . "\r\n"; } } return $headers; }
Why is it that the name of the custom field in my order is “Comptabilité” and not “b2bking_custm_field_171853” ?
Another screen :
https://prnt.sc/BLx76OPxk8xPI’m sorry, I don’t understand why my post was duplicated and why the moderation approved this one instead of the other one containing screenshots, even though I marked in response that this post was the wrong one ^^
I’m reposting my original post with the correct functions code and the screenshots just in the response.Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Double email invoicedoesn’t works ??
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Double email invoiceYes is a good name ! ( i use B2Bking for create this field )
same error
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Double email invoicemy new code doesn’t works
add_filter( 'woocommerce_email_headers', 'woocommerce_emails_bcc_copy', 10, 3);
function woocommerce_emails_bcc_copy( $headers, $email_id, $order, $email = null ) {
// Si la notification par e-mail est "Completed order" ou "Processing order"
if ( in_array( $email_id, array('customer_completed_order', 'customer_processing_order') ) ) {
// Remplacez 'b2bking_custom_field_171853' par la clé de métadonnées réelle de votre champ personnalisé
if ( $extra_email_address = get_user_meta( $order->get_user_id(), 'b2bking_custom_field_171853', true ) ) {
$billing_full_name = $order->get_formatted_billing_full_name();
$headers .= 'BCC: ' . $billing_full_name . ' <' . $extra_email_address . '>' . "\r\n";
}
}
return $headers;
}- This reply was modified 1 year, 4 months ago by ITP TECHNOLOGIE.
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Double email invoiceI successfully copied and pasted the code into my function.php file, and I changed the code from:
$extra_email_address = $order->get_meta( ‘extra_email_address’ )
to :
$extra_email_address = $order->get_meta( ‘b2bking_custom_field_171853’ )
However, when I create an invoice, it is not being sent to the address I entered in the custom field.Forum: Plugins
In reply to: [Contact Form 7] grecaptcha.execute is not a functionPlugin: Yoast SEO: WooCommerce
Forum: Plugins
In reply to: [WooCommerce] Call to a member function get_tax_class() on boolThe problem remains the same. Every day, the same error…
- This reply was modified 1 year, 5 months ago by ITP TECHNOLOGIE.
Forum: Plugins
In reply to: [WooCommerce] 502 () /?wc-ajax=checkout:1up
You did not understand. I’m trying to make the LOG also visible to the client…