Shopify templates for OLJS

Submitted bybarnettech onFri, 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 bybarnettech onTue, 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'],

Setting up xdebug and debugging from drush and cli in PHPSTROM

Submitted bybarnettech onTue, 04/20/2021 - 10:22

These directions worked with some modifications:…

I was using PHP on the command line with homebrew, so installed xdebug with pecl install xdebug
then I was able to put the following in the php.ini file, find the php.ini file for the command line by running php --ini and look for Loaded Configuration File in the output.

The below is for XDEUG 3.0