Forum Replies Created
-
AuthorPosts
-
AlvaroSouzaParticipant
Thanks! 🙂
AlvaroSouzaParticipantsorry to bother again, i just have one more doubt. I add this code on theme function or in wcmp_vendor_order (editing the wcmp plugin)?
AlvaroSouzaParticipantHi moumita, thank you again :), i will serach this page to change the code. Very nice day for you all!
AlvaroSouzaParticipantHi Ninja, came back to work alone, I don’t know how kkkk probably a host issue. Let me take another question, there s a way, that always a vendor send a tracking number ,in addition to going to the customer, get to my email too?
AlvaroSouzaParticipantHi, Im so grateful, thank u so much. I’ll follow on github 🙂
AlvaroSouzaParticipantI will check and i ll return to feedback
AlvaroSouzaParticipantHi raj, how are you? This worked on the last update, but i found a new parameter mismatch on shipping vendor’s tracking:
Uncaught ArgumentCountError: Too few arguments to function
GoDaddy\WordPress\MWC\Core\WooCommerce\ShipmentsTable::maybeRenderEmailShipmentsTable(),
2 passed in /var/www/wp-includes/class-wp-hook.php on line 303 and exactly 4
expected in /var/www/wp-content/mu-plugins/gd-system-plugin/plugins/mwc-core/src/WooCommerce/ShipmentsTable.php:79
Stack trace: #0 /var/www/wp-includes/class-wp-hook.php(303): GoDaddy\WordPress\MWC\Core\WooCommerce\ShipmentsTable->
maybeRenderEmailShipmentsTable(Object(WC_Order), true)
#1 /var/www/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(”, Array)
#2 /var/www/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
#3 /var/www/wp-content/plugins/dc-woocommerce-multi-vendor/templates/emails/vendor-notify-shipped.php(55): do_action(‘woocommerce_ema…’, Object(WC_Order), true)
#4 /var/www/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include(‘/var/www/wp-con…’)
#5 /var/www/wp-content/plugins/dc-woocommerce-multi-vendor/classes/emails/class-wcmp-email- in /var/www/wp-content/mu-plugins/gd-system-plugin/plugins/mwc-core/src/WooCommerce/ShipmentsTable.php on line 79AlvaroSouzaParticipantHi i look, it it doesnt work for i want, cause its just works with wcmp methods(like paypal). I need PagSeguro and Pix Gateways (Useful on my country)
AlvaroSouzaParticipantI will read to take a look, i ll back for feedback
AlvaroSouzaParticipantThank you so much, you re plugin is awesome and you re support too. I already rated it 5 stars!
AlvaroSouzaParticipantHi Raju, thanks for answer, I thinks thist 4-party is very essencial in a lot fo countries.if you don’t want to change the original plugin, advise to create another WCMP (WCMP South America or just WCMP Brazil) and put this update, this is will help a lot of people.
You re amazing, greetings from Brazil.Please if you have this update, please contact me at guilheralvaro@gmail.com,I and all Brazilians will be very grateful. Thank U so muchAlvaroSouzaParticipantI discovered the problem and a temporary solution, the real solution will be on your part.
So come on. The problem is that you are going back 3 parameters instead of 4 in the hooks, you are missing the parameter $email.
You should release an update by changing line 21 of the vendor_new_order.php file to look like this\: <?php do_action(‘woocommerce_email_before_order_table’, $order, true, false); ?> and should change to this way <?php do_action(‘woocommerce_email_before_order_table’, $order, true, false, $email); ?> to make it work!AlvaroSouzaParticipantyes sure, i know this, i tested with a vendor product
AlvaroSouzaParticipantI think I found the error, the code expects 4 parameters and your plugin sends 3, it’s missing to add the $email to the do_action hook.
“::email_instructions(), 3 passed in /var/www/wp-includes/class-wp-hook.php on line 292 and exactly 4 expected”:[15-Jun-2021 19:36:43 UTC] The WC_Order_Item_Product::offsetSet function is deprecated since version 4.4.0.
[15-Jun-2021 19:36:43 UTC] The WC_Order_Item_Product::offsetSet function is deprecated since version 4.4.0.
[15-Jun-2021 19:36:45 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Piggly\WC\Pix\Gateway\PixGateway::email_instructions(), 3 passed in /var/www/wp- includes/class-wp-hook.php on line 292 and exactly 4 expected in /var/www/wp-content/plugins/pix-by-piggly/src/Gateway/PixGateway.php:490
Stack trace:
#0 /var/www/wp-includes/class-wp-hook.php(292): Piggly\WC\Pix\Gateway\PixGateway->email_instructions(Object(Automattic\WooCommerce\Admin\Overrides\Order), true, false)
#1 /var/www/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array)
#2 /var/www/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
#3 /var/www/wp-content/plugins/dc-woocommerce-multi-vendor/templates/emails/vendor-new-order.php(21): do_action(‘woocommerce_ema…’, Object(Automattic\WooCommerce \Admin\Overrides\Order), true, false)
#4 /var/www/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include(‘/var/www/wp-con…’)
#5 /var/www/wp-content/plugins/woocommerce/includes/wc-core-functions.php(364): wc_get_template(’emails in /var/www/wp-content/plugins/pix-by-piggly/ src/Gateway/PixGateway.php on line 490AlvaroSouzaParticipantThis is my WP-DEBUG LOG
[15-Jun-2021 18:00:16 UTC] The WC_Order_Item_Product::offsetSet function is deprecated since version 4.4.0.
[15-Jun-2021 18:00:16 UTC] The WC_Order_Item_Product::offsetSet function is deprecated since version 4.4.0.
[15-Jun-2021 18:00:18 UTC] payment_method was called incorrectly. Order properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_checkout’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Pix_Gateway->process_payment, WC_Order->update_status, WC_Order->save, WC_Order->status_transition, do_action(‘woocommerce_order_status_pending_to_on-hold’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Emails::send_transactional_email, do_action_ref_array(‘woocommerce_order_status_pending_to_on-hold_notification’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Email_Customer_On_Hold_Order->trigger, WC_Email->get_content, WC_Email_Customer_On_Hold_Order->get_content_html, wc_get_template_html, wc_get_template, include(‘/plugins/woocommerce/templates/emails/customer-on-hold-order.php’), do_action(‘woocommerce_email_order_details’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Emails->order_details, wc_get_template, include(‘/plugins/woocommerce/templates/emails/email-order-details.php’), do_action(‘woocommerce_email_after_order_table’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Pagarme_Banking_Ticket_Gateway->email_instructions, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
[15-Jun-2021 18:00:18 UTC] payment_method was called incorrectly. Order properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_checkout’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_payment, WC_Pix_Gateway->process_payment, WC_Order->update_status, WC_Order->save, WC_Order->status_transition, do_action(‘woocommerce_order_status_pending_to_on-hold’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Emails::send_transactional_email, do_action_ref_array(‘woocommerce_order_status_pending_to_on-hold_notification’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Email_Customer_On_Hold_Order->trigger, WC_Email->get_content, WC_Email_Customer_On_Hold_Order->get_content_html, wc_get_template_html, wc_get_template, include(‘/plugins/woocommerce/templates/emails/customer-on-hold-order.php’), do_action(‘woocommerce_email_order_details’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Emails->order_details, wc_get_template, include(‘/plugins/woocommerce/templates/emails/email-order-details.php’), do_action(‘woocommerce_email_after_order_table’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Pagarme_Credit_Card_Gateway->email_instructions, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.
[15-Jun-2021 18:00:18 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function WC_Pix_Gateway::email_instructions(), 3 passed in /var/www/wp-includes/class-wp-hook.php on line 292 and exactly 4 expected in /var/www/wp-content/plugins/incuca-tech-pix-for-woocommerce/includes/class-wc-pix-gateway.php:413
Stack trace:
#0 /var/www/wp-includes/class-wp-hook.php(292): WC_Pix_Gateway->email_instructions(Object(Automattic\WooCommerce\Admin\Overrides\Order), true, false)
#1 /var/www/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array)
#2 /var/www/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
#3 /var/www/wp-content/plugins/dc-woocommerce-multi-vendor/templates/emails/vendor-new-order.php(21): do_action(‘woocommerce_ema…’, Object(Automattic\WooCommerce\Admin\Overrides\Order), true, false)
#4 /var/www/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include(‘/var/www/wp-con…’)
#5 /var/www/wp-content/plugins/woocommerce/includes/wc-core-functions.php(364): wc_get_template(’emails/vendor-n… in /var/www/wp-content/plugins/incuca-tech-pix-for-woocommerce/includes/class-wc-pix-gateway.php on line 413 -
AuthorPosts