posthog-1.0.0-alpha5/modules/posthog_commerce/posthog_commerce.install

modules/posthog_commerce/posthog_commerce.install
<?php

/**
 * @file
 * Contains posthog_commerce module install functions.
 */

/**
 * Enable tracking for all commerce events.
 */
function posthog_commerce_update_10001() {
  \Drupal::configFactory()->getEditable('posthog_commerce.settings')
    ->set('track_commerce_cart_entity_added', TRUE)
    ->set('track_commerce_order_completed', TRUE)
    // This isn't implemented yet, set it to false:
    ->set('track_commerce_order_paid', FALSE)
    ->save();
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc