REST API https://michalak.world/ en Shopify Admin REST API Checkout Object PUT Request https://michalak.world/article/shopify-admin-rest-api-checkout-object-put-request <span>Shopify Admin REST API Checkout Object PUT Request</span> <span><span>useradmin</span></span> <span>Thu, 09/21/2023 - 16:29</span> <div class="primary-image field field--name-field-image field--type-image field--label-above"> <div class="field__label">Image</div> <div class="field__item"> <img loading="lazy" src="/sites/default/files/default_images/cover.png" width="2010" height="1343" alt="Default blog post image" title="Default blog post image" /> </div> </div> <div class="text-content clearfix field field--name-body field--type-text-with-summary field--label-above"> <div class="field__label">Body</div> <div class="field__item"><p>It is not possible to update a checkout object via Shopiy's Admin REST API unless the custom app created the checkout object. </p> <p>Per Shopify Staff:</p> <blockquote>The checkout PUT endpoint is intended to only be used to modify checkouts that were created by that same app.</blockquote> <p>Reference: </p> <ul><li>https://community.shopify.com/c/graphql-basics-and/update-checkout-not-working-on-api-2023-01-checkouts/m-p/2025238/highlight/true#M5766</li> </ul></div> </div> <section data-drupal-selector="comments" class="comments"> <h2 class="comments__title">Comments</h2> <div class="add-comment"> <div class="add-comment__form"> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=92&amp;2=comment&amp;3=comment" token="g2PgVxDFSIuQKdkmVIeEepo1PoHZNpkHBYObCFNlw-g"></drupal-render-placeholder> </div> </div> </section> <div class="field field--name-field-tags field--type-entity-reference field--label-above field--tags"> <h3 class="field__label field--tags__label">Tags</h3> <ul class="links field__items field--tags__items"> <li class="field--tags__item"><div> <h2><a href="/tag/integration"> <div class="field field--name-name field--type-string field--label-hidden field__item">Integration</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/node-js"> <div class="field field--name-name field--type-string field--label-hidden field__item">Node JS</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/rest-api"> <div class="field field--name-name field--type-string field--label-hidden field__item">REST API</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/shopify"> <div class="field field--name-name field--type-string field--label-hidden field__item">Shopify</div> </a></h2> </div> </li> </ul> </div> Thu, 21 Sep 2023 21:29:47 +0000 useradmin 92 at https://michalak.world Shopify Draft Order Metafields https://michalak.world/article/shopify-draft-order-metafields <span>Shopify Draft Order Metafields</span> <span><span>useradmin</span></span> <span>Thu, 08/03/2023 - 10:58</span> <div class="primary-image field field--name-field-image field--type-image field--label-above"> <div class="field__label">Image</div> <div class="field__item"> <img loading="lazy" src="/sites/default/files/default_images/cover.png" width="2010" height="1343" alt="Default blog post image" title="Default blog post image" /> </div> </div> <div class="text-content clearfix field field--name-body field--type-text-with-summary field--label-above"> <div class="field__label">Body</div> <div class="field__item"><p>While trying to track data on draft orders and orders I wanted to use metafields.  This lead me to find out that draft orders <em>cannot</em> have metafields configured. </p> <p>These lead me to two options to track data.  </p> <ul><li>Note attributes on the order</li> <li>A custom mysql database table for my app to track the data.</li> </ul><p>I've used both depending on the type of data and how store clerks needed to update the data. </p></div> </div> <section data-drupal-selector="comments" class="comments"> <h2 class="comments__title">Comments</h2> <div class="add-comment"> <div class="add-comment__form"> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=86&amp;2=comment&amp;3=comment" token="CGmpPRhnlMXaFimtyH7eZb79-Tr-YnlGRCFI43XIPaE"></drupal-render-placeholder> </div> </div> </section> <div class="field field--name-field-tags field--type-entity-reference field--label-above field--tags"> <h3 class="field__label field--tags__label">Tags</h3> <ul class="links field__items field--tags__items"> <li class="field--tags__item"><div> <h2><a href="/tag/graphql"> <div class="field field--name-name field--type-string field--label-hidden field__item">GraphQL</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/metafield"> <div class="field field--name-name field--type-string field--label-hidden field__item">Metafield</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/node-js"> <div class="field field--name-name field--type-string field--label-hidden field__item">Node JS</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/polaris"> <div class="field field--name-name field--type-string field--label-hidden field__item">Polaris</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/rest-api"> <div class="field field--name-name field--type-string field--label-hidden field__item">REST API</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/shopify"> <div class="field field--name-name field--type-string field--label-hidden field__item">Shopify</div> </a></h2> </div> </li> </ul> </div> Thu, 03 Aug 2023 15:58:10 +0000 useradmin 86 at https://michalak.world https://michalak.world/article/shopify-draft-order-metafields#comments Drupal 8 - Sending Faxes with Twilio https://michalak.world/article/drupal-8-sending-faxes-twilio <span>Drupal 8 - Sending Faxes with Twilio</span> <span><span>useradmin</span></span> <span>Sun, 12/06/2020 - 08:53</span> <div class="primary-image field field--name-field-image field--type-image field--label-above"> <div class="field__label">Image</div> <div class="field__item"> <img loading="lazy" src="/sites/default/files/default_images/cover.png" width="2010" height="1343" alt="Default blog post image" title="Default blog post image" /> </div> </div> <div class="text-content clearfix field field--name-body field--type-text-with-summary field--label-above"> <div class="field__label">Body</div> <div class="field__item"><p><br /> Yep, you read the title correctly and it says “fax.”  Faxes are still used more than I thought, and it is really cool that Twilio has an API to send and receive faxes that is quite easy to use.</p> <p>Today in this post I will be talking about sending faxes from your Drupal website.  Which is quite easy and doesn’t take much code to achieve.</p> <p>I have pulled together a code example from the Twilio API documents and as you can see below there isn’t much there.</p> <p><code>use Twilio\Rest\Client; </code></p> <p><code>$twilio = new Client($sid, $token);<br /> $to = “+1234567890”;<br /> $from = “+0987654321”;<br /> $document = “https://example.com/document.pdf”;<br /><br /> $response = twilio-&gt;fax-&gt;v1-&gt;faxes-&gt;create($to, $document,["from" =&gt; $from]); </code></p> <p>A couple of notes on the Twilio fax API:</p> <ul><li>There isn’t much of a response back which can make error handling or logging a little difficult.</li> <li>The document being faxed must be a PDF.</li> </ul><p><br /> Resources:</p> <ul><li>Twilio: <a href="https://www.twilio.com/fax">https://www.twilio.com/fax</a></li> </ul></div> </div> <section data-drupal-selector="comments" class="comments"> <h2 class="comments__title">Comments</h2> <div class="add-comment"> <div class="add-comment__form"> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=83&amp;2=comment&amp;3=comment" token="LI5W_Ja-CIpAVq29BYN0CHhRaUFC8TFuAew8fUEGPNY"></drupal-render-placeholder> </div> </div> </section> <div class="field field--name-field-tags field--type-entity-reference field--label-above field--tags"> <h3 class="field__label field--tags__label">Tags</h3> <ul class="links field__items field--tags__items"> <li class="field--tags__item"><div> <h2><a href="/tag/api"> <div class="field field--name-name field--type-string field--label-hidden field__item">API</div> </a></h2> <div class="text-content clearfix field field--name-description field--type-text-long field--label-hidden field__item"><p>API</p></div> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal-7"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal 7</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal-8"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal 8</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal-development"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal Development</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/integration"> <div class="field field--name-name field--type-string field--label-hidden field__item">Integration</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/rest-api"> <div class="field field--name-name field--type-string field--label-hidden field__item">REST API</div> </a></h2> </div> </li> </ul> </div> Sun, 06 Dec 2020 14:53:29 +0000 useradmin 83 at https://michalak.world Drupal Backend Developer for Hire https://michalak.world/video/drupal-backend-developer-hire <span>Drupal Backend Developer for Hire</span> <span><span>useradmin</span></span> <span>Tue, 04/23/2019 - 09:45</span> <div class="field field--name-field-video field--type-video-embed-field field--label-hidden field__item"><div data-video-embed-field-lazy="&lt;div class=&quot;video-embed-field-provider-youtube video-embed-field-responsive-video&quot;&gt;&lt;iframe width=&quot;854&quot; height=&quot;480&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;allowfullscreen&quot; src=&quot;https://www.youtube.com/embed/n9vCLvp8cds?autoplay=0&amp;amp;start=0&amp;amp;rel=0&quot;&gt;&lt;/iframe&gt; &lt;/div&gt; " class="video-embed-field-lazy"><a href="/video/drupal-backend-developer-hire" hreflang="en"><img src="/sites/default/files/video_thumbnails/n9vCLvp8cds.jpg" alt="" /> </a><button class="video-embed-field-lazy-play"></button> </div> </div> <div class="field field--name-field-tags field--type-entity-reference field--label-above field--tags"> <h3 class="field__label field--tags__label">Tags</h3> <ul class="links field__items field--tags__items"> <li class="field--tags__item"><a href="/tag/commerce-shipping" hreflang="en">Commerce Shipping</a></li> <li class="field--tags__item"><a href="/tag/drupal" hreflang="en">Drupal</a></li> <li class="field--tags__item"><a href="/tag/drupal-7" hreflang="en">Drupal 7</a></li> <li class="field--tags__item"><a href="/tag/drupal-8" hreflang="en">Drupal 8</a></li> <li class="field--tags__item"><a href="/tag/drupal-commerce" hreflang="en">Drupal Commerce</a></li> <li class="field--tags__item"><a href="/tag/drupal-development" hreflang="en">Drupal Development</a></li> <li class="field--tags__item"><a href="/tag/drupal-performance" hreflang="en">Drupal Performance</a></li> <li class="field--tags__item"><a href="/tag/payment-gateway" hreflang="en">Payment Gateway</a></li> <li class="field--tags__item"><a href="/tag/purchase-orders" hreflang="en">Purchase Orders</a></li> <li class="field--tags__item"><a href="/tag/rest-api" hreflang="en">REST API</a></li> <li class="field--tags__item"><a href="/tag/security" hreflang="en">Security</a></li> <li class="field--tags__item"><a href="/tag/update" hreflang="en">Update</a></li> <li class="field--tags__item"><a href="/tag/warehouse-mangement" hreflang="en">Warehouse Mangement</a></li> </ul> </div> Tue, 23 Apr 2019 14:45:59 +0000 useradmin 68 at https://michalak.world Drupal Development https://michalak.world/video/drupal-development <span>Drupal Development</span> <span><span>useradmin</span></span> <span>Sun, 04/21/2019 - 15:49</span> <div class="text-content clearfix field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>I am a Drupal developer specializing in Backend Drupal Development and Drupal Commerce Development.</p></div> <div class="field field--name-field-video field--type-video-embed-field field--label-hidden field__item"><div data-video-embed-field-lazy="&lt;div class=&quot;video-embed-field-provider-youtube video-embed-field-responsive-video&quot;&gt;&lt;iframe width=&quot;854&quot; height=&quot;480&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;allowfullscreen&quot; src=&quot;https://www.youtube.com/embed/tEojZwF0LBo?autoplay=0&amp;amp;start=0&amp;amp;rel=0&quot;&gt;&lt;/iframe&gt; &lt;/div&gt; " class="video-embed-field-lazy"><a href="/video/drupal-development" hreflang="en"><img src="/sites/default/files/video_thumbnails/tEojZwF0LBo.jpg" alt="" /> </a><button class="video-embed-field-lazy-play"></button> </div> </div> <div class="field field--name-field-tags field--type-entity-reference field--label-above field--tags"> <h3 class="field__label field--tags__label">Tags</h3> <ul class="links field__items field--tags__items"> <li class="field--tags__item"><a href="/tag/api" hreflang="en">API</a></li> <li class="field--tags__item"><a href="/tag/commerce-shipping" hreflang="en">Commerce Shipping</a></li> <li class="field--tags__item"><a href="/tag/composer" hreflang="en">Composer</a></li> <li class="field--tags__item"><a href="/tag/drupal" hreflang="en">Drupal</a></li> <li class="field--tags__item"><a href="/tag/drupal-7" hreflang="en">Drupal 7</a></li> <li class="field--tags__item"><a href="/tag/drupal-8" hreflang="en">Drupal 8</a></li> <li class="field--tags__item"><a href="/tag/drupal-commerce" hreflang="en">Drupal Commerce</a></li> <li class="field--tags__item"><a href="/tag/drupal-development" hreflang="en">Drupal Development</a></li> <li class="field--tags__item"><a href="/tag/drupal-performance" hreflang="en">Drupal Performance</a></li> <li class="field--tags__item"><a href="/tag/form-api" hreflang="en">Form API</a></li> <li class="field--tags__item"><a href="/tag/integration" hreflang="en">Integration</a></li> <li class="field--tags__item"><a href="/tag/payment-gateway" hreflang="en">Payment Gateway</a></li> <li class="field--tags__item"><a href="/tag/purchase-orders" hreflang="en">Purchase Orders</a></li> <li class="field--tags__item"><a href="/tag/rest-api" hreflang="en">REST API</a></li> <li class="field--tags__item"><a href="/tag/security" hreflang="en">Security</a></li> <li class="field--tags__item"><a href="/tag/update" hreflang="en">Update</a></li> <li class="field--tags__item"><a href="/tag/video" hreflang="en">Video</a></li> <li class="field--tags__item"><a href="/tag/warehouse-mangement" hreflang="en">Warehouse Mangement</a></li> </ul> </div> Sun, 21 Apr 2019 20:49:23 +0000 useradmin 67 at https://michalak.world Drupal Developer https://michalak.world/video/drupal-developer <span>Drupal Developer</span> <span><span>useradmin</span></span> <span>Sun, 04/21/2019 - 15:43</span> <div class="text-content clearfix field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Introduction about myself as a Drupal Backend Developer/Drupal Commerce Developer</p></div> <div class="field field--name-field-video field--type-video-embed-field field--label-hidden field__item"><div data-video-embed-field-lazy="&lt;div class=&quot;video-embed-field-provider-youtube video-embed-field-responsive-video&quot;&gt;&lt;iframe width=&quot;854&quot; height=&quot;480&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;allowfullscreen&quot; src=&quot;https://www.youtube.com/embed/1OEF596XZts?autoplay=0&amp;amp;start=0&amp;amp;rel=0&quot;&gt;&lt;/iframe&gt; &lt;/div&gt; " class="video-embed-field-lazy"><a href="/video/drupal-developer" hreflang="en"><img src="/sites/default/files/video_thumbnails/1OEF596XZts.jpg" alt="" /> </a><button class="video-embed-field-lazy-play"></button> </div> </div> <div class="field field--name-field-tags field--type-entity-reference field--label-above field--tags"> <h3 class="field__label field--tags__label">Tags</h3> <ul class="links field__items field--tags__items"> <li class="field--tags__item"><a href="/tag/api" hreflang="en">API</a></li> <li class="field--tags__item"><a href="/tag/commerce-shipping" hreflang="en">Commerce Shipping</a></li> <li class="field--tags__item"><a href="/tag/drupal" hreflang="en">Drupal</a></li> <li class="field--tags__item"><a href="/tag/drupal-7" hreflang="en">Drupal 7</a></li> <li class="field--tags__item"><a href="/tag/drupal-8" hreflang="en">Drupal 8</a></li> <li class="field--tags__item"><a href="/tag/drupal-commerce" hreflang="en">Drupal Commerce</a></li> <li class="field--tags__item"><a href="/tag/drupal-development" hreflang="en">Drupal Development</a></li> <li class="field--tags__item"><a href="/tag/drupal-performance" hreflang="en">Drupal Performance</a></li> <li class="field--tags__item"><a href="/tag/drush" hreflang="en">Drush</a></li> <li class="field--tags__item"><a href="/tag/integration" hreflang="en">Integration</a></li> <li class="field--tags__item"><a href="/tag/payment-gateway" hreflang="en">Payment Gateway</a></li> <li class="field--tags__item"><a href="/tag/rest-api" hreflang="en">REST API</a></li> <li class="field--tags__item"><a href="/tag/update" hreflang="en">Update</a></li> <li class="field--tags__item"><a href="/tag/video" hreflang="en">Video</a></li> </ul> </div> Sun, 21 Apr 2019 20:43:31 +0000 useradmin 64 at https://michalak.world Video Update! Drupal Backend and Commerce Development https://michalak.world/article/video-update-drupal-backend-and-commerce-development <span>Video Update! Drupal Backend and Commerce Development</span> <span><span>useradmin</span></span> <span>Fri, 03/01/2019 - 03:41</span> <div class="primary-image field field--name-field-image field--type-image field--label-above"> <div class="field__label">Image</div> <div class="field__item"> <img loading="lazy" src="/sites/default/files/2019-04/michalak-video-update-image.png" width="1962" height="1036" alt="Michalak video update" title="Michalak video update" /> </div> </div> <div class="text-content clearfix field field--name-body field--type-text-with-summary field--label-above"> <div class="field__label">Body</div> <div class="field__item"><p>Looking for a Drupal developer?  Specifically a Drupal Commerce or a backend developer? Then you came to the right place. <br /> I am a backend Drupal developer with extensive experience working with Drupal Commerce for both Drupal 7 and 8 for over seven years now.</p> <p>My niche is to customize Drupal Commerce functionality according to clients specifications.  Types of customization include checkout flows, catalogs, products, and user sessions.  I have also created various proprietary Drupal commerce tools for clients such as warehouse management, product borrowing, purchase orders, and products on hold. </p> <p>I also enhance Drupal projects to integrate and automate custom business functionality and globalize my client's websites.  <br /> Globalize you ask?  Improving websites to be multilingual, GDPR compliant, multi-currency, and tax reconciliation, Sales Tax and VAT tax.</p> <p>As for business functionality, the end goal is to automate and integrate business process that help my clients with their business workflow.  A couple of examples: Setting up a REST API for consuming orders to eliminate email and custom PDF generation.  </p> <p>There are many examples of PDF generation, but my favorite is batching PDFs for a print company.  An employee would spend at least eight hours a day generating PDFs.  Now the PDFs are generated automatically without error and as orders come through.  The employee also thanked me for eliminating this tedious job.</p> <p>Thank you for watching my video.   If you have any questions, please feel free to reach out.</p> <p>Have a great day!</p> </div> </div> <section data-drupal-selector="comments" class="comments"> <h2 class="comments__title">Comments</h2> <div class="add-comment"> <div class="add-comment__form"> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=44&amp;2=comment&amp;3=comment" token="jpdZrMBRWUjAYN_ne_tmNTYNeAZl-k3ekseHN6k5s9s"></drupal-render-placeholder> </div> </div> </section> <div class="field field--name-field-tags field--type-entity-reference field--label-above field--tags"> <h3 class="field__label field--tags__label">Tags</h3> <ul class="links field__items field--tags__items"> <li class="field--tags__item"><div> <h2><a href="/tag/commerce-shipping"> <div class="field field--name-name field--type-string field--label-hidden field__item">Commerce Shipping</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal-8"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal 8</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal-commerce"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal Commerce</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal-development"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal Development</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/form-api"> <div class="field field--name-name field--type-string field--label-hidden field__item">Form API</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/integration"> <div class="field field--name-name field--type-string field--label-hidden field__item">Integration</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/payment-gateway"> <div class="field field--name-name field--type-string field--label-hidden field__item">Payment Gateway</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/purchase-orders"> <div class="field field--name-name field--type-string field--label-hidden field__item">Purchase Orders</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/rest-api"> <div class="field field--name-name field--type-string field--label-hidden field__item">REST API</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/update"> <div class="field field--name-name field--type-string field--label-hidden field__item">Update</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/video"> <div class="field field--name-name field--type-string field--label-hidden field__item">Video</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/warehouse-mangement"> <div class="field field--name-name field--type-string field--label-hidden field__item">Warehouse Mangement</div> </a></h2> </div> </li> </ul> </div> Fri, 01 Mar 2019 09:41:48 +0000 useradmin 44 at https://michalak.world