Skip to content

Commit

Permalink
Updated the keyword from 'campaign_type' to 'type'
Browse files Browse the repository at this point in the history
  • Loading branch information
mamatharao05 committed May 7, 2024
1 parent ef57fb8 commit fa6f4e3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions includes/Listeners/WonderCart.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function create_campaign_modal_open( $args, $event ) {
public function campaign_selected( $args, $event ) {
$data = array(
'label_key' => 'campaign_slug',
'campaign_type' => $args['type'],
'type' => $args['type'],
'campaign_slug' => $args['type'],
);

Expand All @@ -105,7 +105,7 @@ public function campaign_selected( $args, $event ) {
public function campaign_abandoned( $args, $event ) {
$data = array(
'label_key' => 'campaign_slug',
'campaign_type' => $args['type'],
'type' => $args['type'],
'campaign_slug' => $args['type'] . '-' . $args['id'],
);

Expand Down Expand Up @@ -154,8 +154,8 @@ public function checkout_campaigns_used() {
}
if ( count( $campaigns ) > 0 ) {
$data = array(
'label_key' => 'campaign_type',
'campaign_type' => array_unique( $campaigns ),
'label_key' => 'type',
'type' => array_unique( $campaigns ),
'campaign_count' => count( $campaigns ),
'campaign_total' => '$' . $campaign_total,
);
Expand Down

0 comments on commit fa6f4e3

Please sign in to comment.