- Issue created by @Anybody
- Status changed to Needs review
4 months ago 5:29pm 28 August 2024 - Status changed to Fixed
4 months ago 5:37pm 28 August 2024 Automatically closed - issue fixed for 2 weeks with no activity.
"Facebook Checkout" CommerceCheckoutPane title is super unclear. As site owner you have no idea what it does and where it should be placed.
Let's clarify this a bit by name. What it does is:
/**
* {@inheritdoc}
*/
public function buildPaneForm(array $pane_form, FormStateInterface $form_state, array &$complete_form) {
// Only fire the FB event on page load.
// See https://www.drupal.org/project/facebook_pixel/issues/3246045#comment-14405106
// for the reasons. Otherwise it's fired multiple times on AJAX requests.
if (!$this->requestStack->getCurrentRequest()->isXmlHttpRequest()) {
$data = $this->facebookComment->getOrderData($this->order);
$this->facebookEvent->addEvent('InitiateCheckout', $data);
}
return [];
}
Fixed
2.0
Code (Facebook Pixel Commerce)
Automatically closed - issue fixed for 2 weeks with no activity.