WPIntell

Source evidence

custom parameter

Notiqoo – Order Notification & Customer Chat for WooCommerce · support · 2024-07-31T14:12:00+00:00

mixedsentiment
mediumseverity
0.78relevance
5replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 28 rows with source links

17.9% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

23 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
rdcc34 resolved
Hi can any one give me full code for custom parameter such as tracking link Hello @rdcc34 , add_filter('woom_additional_template_params', 'function_name', 10, 2); function function_name($parameters, $order) { $custom_params = array( "param1" => '', "param2" => '' ); if ($order !== null) { $custom_params = array( "param1" => 'value1', "param2" => 'value2' ); } $parameters = array_merge($parameters, $custom_params); return $parameters; } The code mentioned above demonstrates how to provide customised parameters when selecting a template message on the WC Messaging template setting page. Once you’ve specified the parameters you require, you can select the template messages and matching parameters as needed. For an example you can refer the blog post : https://sevengits.com/add-custom-parameters-on-wc-messaging-templates/ Thank you! I use this code but it show error, can any one check it what is wrong add_filter('woom_additional_template_params', 'function_name', 10, 2); function function_name( $parameters, $order ) { $custom_params = array ( "order_total" => '', ); if ( $order !== null ) { $custom_params = array ( "order_total" => $order ->get_total() ); } $parameters = array_merge( $parameters, $custom_params ); return $parameters ; } Hello @rdcc34 , Previous code has some styling issues.You can go for the code give below: add_filter('woom_additional_template_params', 'woom_add_order_total_to_params', 10, 2); function woom_add_order_total_to_params($parameters, $order) { $custom_params = array( "order_total" => '', ); if ($order !== null) { $custom_params = array( "order_total" => $order->get_total() ); } $parameters = array_merge($parameters, $custom_params); return $parameters; } You can refer the blog post : https://sevengits.com/add-custom-parameters-on-wc-messaging-templates/ Thank you! Hi can you give me a full code for purched product name and tracking link Hello @rdcc34 , https://customdomain.com/product?utm_source=campaign_source&utm_medium=medium&utm_campaign=name&utm_id=campaignID How your tracking link will look like? is it look like above or you have a custom tracking link? If you can explain your use case little bit more we can add more supports in upcoming versions. Thank you!

Comments

5 shown
ashlyjohny 2024-08-01T11:50:00+00:00

Hello @rdcc34 , add_filter('woom_additional_template_params', 'function_name', 10, 2); function function_name($parameters, $order) { $custom_params = array( "param1" => '', "param2" => '' ); if ($order !== null) { $custom_params = array( "param1" => 'value1', "param2" => 'value2' ); } $parameters = array_merge($parameters, $custom_params); return $parameters; } The code mentioned above demonstrates how to provide customised parameters when selecting a template message on the WC Messaging template setting page. Once you’ve specified the parameters you require, you can select the template messages and matching parameters as needed. For an example you can refer the blog post : https://sevengits.com/add-custom-parameters-on-wc-messaging-templates/ Thank you!

rdcc34 2024-08-02T09:58:00+00:00

I use this code but it show error, can any one check it what is wrong add_filter('woom_additional_template_params', 'function_name', 10, 2); function function_name( $parameters, $order ) { $custom_params = array ( "order_total" => '', ); if ( $order !== null ) { $custom_params = array ( "order_total" => $order ->get_total() ); } $parameters = array_merge( $parameters, $custom_params ); return $parameters ; }

ashlyjohny 2024-08-02T11:17:00+00:00

Hello @rdcc34 , Previous code has some styling issues.You can go for the code give below: add_filter('woom_additional_template_params', 'woom_add_order_total_to_params', 10, 2); function woom_add_order_total_to_params($parameters, $order) { $custom_params = array( "order_total" => '', ); if ($order !== null) { $custom_params = array( "order_total" => $order->get_total() ); } $parameters = array_merge($parameters, $custom_params); return $parameters; } You can refer the blog post : https://sevengits.com/add-custom-parameters-on-wc-messaging-templates/ Thank you!

rdcc34 2024-08-02T19:20:00+00:00

Hi can you give me a full code for purched product name and tracking link

ashlyjohny 2024-08-03T04:54:00+00:00

Hello @rdcc34 , https://customdomain.com/product?utm_source=campaign_source&utm_medium=medium&utm_campaign=name&utm_id=campaignID How your tracking link will look like? is it look like above or you have a custom tracking link? If you can explain your use case little bit more we can add more supports in upcoming versions. Thank you!