Skip to content

Commit bc65727

Browse files
authored
Merge pull request #237 from sdinteractive/ADO-313-capi-changes
ADO-313: Fixes issue with the purchase event
2 parents fac8ac0 + 27f82f3 commit bc65727

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Meta/Conversion/Model/Tracker/Purchase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ private function prepareData(OrderInterface $order): array
151151
$contentIds[] = $item->getSku();
152152
$contentName[] = $item->getName();
153153
}
154-
return ['contents' => $contents, 'content_ids' => $contentIds, 'content_name' => $contentName];
154+
return ['contents' => $contents, 'content_ids' => $contentIds, 'content_name' => json_encode($contentName)];
155155
}
156156

157157
/**

0 commit comments

Comments
 (0)