Clarify Facebook Checkout CommerceCheckoutPane by title

Created on 28 August 2024, 4 months ago
Updated 11 September 2024, 3 months ago

Problem/Motivation

"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 [];
  }

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

2.0

Component

Code (Facebook Pixel Commerce)

Created by

🇩🇪Germany Anybody Porta Westfalica

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024