WebTechKitchen; Your Web Technology Kitchen, contact us to create, or maintain your websites and other digital properties.

Create an advancedqueue

Submitted by barnettech on Tue, 11/09/2021 - 17:04

Create an advancedqueue

create a file like advancedqueue.advancedqueue_queue.ipc_merge_sync.yml in modules/custom/ipc_syncdb/config/install

id: ipc_merge_sync
label: 'IPC Merge Sync'
backend: database
backend_configuration: {}
processor: cron
processing_time: 180
locked: true

then import it with drush cim --partial --source=/home/ipc/www/ipc/docroot/modules/custom/ipc_syncdb/config/install

Shopify templates for OLJS

Submitted by barnettech on Fri, 09/10/2021 - 11:22

look in theme.liquid to add the javascript to the head
look in header.liquid to find the header HTML in the theme.

Put this in their config:

{
  "send_stats": false,
  "translate_images": false,
  "language_selector" : [
            {
                "U" : "U",
                "T" : "T",
                "I" : "OneLinkJS_langSel",
                "C" : "C",
                "position" : "first"
            }
        ]
}

and the one liner in the head of the document.

Drupal 8 logger example

Submitted by barnettech on Tue, 08/31/2021 - 10:23
 \Drupal::logger('ipc_order_sync')->notice('Adding the following order to the enqueJob @order_id
         with transaction id of @transaction_id',
          [
            '@order_id' => $order['order_id'],
            '@transaction_id' => $order['transaction_id'],
          ]);