Skip to content

Commit

Permalink
Add new-state to order states for purchase event as well
Browse files Browse the repository at this point in the history
  • Loading branch information
jissereitsma committed Oct 22, 2024
1 parent 87bb801 commit ae359c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions DataLayer/Event/Purchase.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ private function getOrderStates(): array
private function getDefaultOrderStates(): array
{
return [
Order::STATE_NEW,
Order::STATE_PENDING_PAYMENT,
Order::STATE_PAYMENT_REVIEW,
Order::STATE_HOLDED,
Expand Down
2 changes: 1 addition & 1 deletion etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<view_cart_occurances>everywhere</view_cart_occurances>
<view_cart_on_mini_cart_expand_only>0</view_cart_on_mini_cart_expand_only>
<product_list_value_on_category>product_first_category</product_list_value_on_category>
<order_states_for_purchase_event>payment_review,pending_payment,holded,processing,complete</order_states_for_purchase_event>
<order_states_for_purchase_event>new,payment_review,pending_payment,holded,processing,complete</order_states_for_purchase_event>
</settings>
</googletagmanager2>
</default>
Expand Down

0 comments on commit ae359c1

Please sign in to comment.