Automattic\WooCommerce\Internal\Admin
CustomerEffortScoreTracks::enqueue_ces_survey_for_edited_shop_order
Enqueue the CES survey trigger for an existing shop order.
Method of the class: CustomerEffortScoreTracks{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->enqueue_ces_survey_for_edited_shop_order();
CustomerEffortScoreTracks::enqueue_ces_survey_for_edited_shop_order() CustomerEffortScoreTracks::enqueue ces survey for edited shop order code WC 10.3.6
private function enqueue_ces_survey_for_edited_shop_order() {
if ( $this->has_been_shown( self::SHOP_ORDER_UPDATE_ACTION_NAME ) ) {
return;
}
$this->enqueue_to_ces_tracks(
array(
'action' => self::SHOP_ORDER_UPDATE_ACTION_NAME,
'title' => __(
'How easy was it to update an order?',
'woocommerce'
),
'firstQuestion' => __(
'The order details screen is easy to use.',
'woocommerce'
),
'secondQuestion' => __(
'The order details screen\'s functionality meets my needs.',
'woocommerce'
),
'onsubmit_label' => $this->onsubmit_label,
'pagenow' => 'shop_order',
'adminpage' => 'post-php',
'props' => array(
'order_count' => $this->get_shop_order_count(),
),
)
);
}