<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Shaykh Abdul Muhaiman</title>
    <description>The latest articles on DEV Community by Shaykh Abdul Muhaiman (@shaykhabdulmuhaiman).</description>
    <link>https://dev.to/shaykhabdulmuhaiman</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4234969%2Fe4bf3c91-ee91-45e2-94d0-4511162a1210.png</url>
      <title>DEV Community: Shaykh Abdul Muhaiman</title>
      <link>https://dev.to/shaykhabdulmuhaiman</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shaykhabdulmuhaiman"/>
    <language>en</language>
    <item>
      <title>How to add Material and Pack Size filters to a Shopify collection</title>
      <dc:creator>Shaykh Abdul Muhaiman</dc:creator>
      <pubDate>Thu, 12 Nov 2026 13:30:04 +0000</pubDate>
      <link>https://dev.to/shaykhabdulmuhaiman/how-to-add-material-and-pack-size-filters-to-a-shopify-collection-1d9b</link>
      <guid>https://dev.to/shaykhabdulmuhaiman/how-to-add-material-and-pack-size-filters-to-a-shopify-collection-1d9b</guid>
      <description>&lt;p&gt;A shopper looking for a six-pack of linen napkins needs two pieces of information: what the napkins are made of and how many come in the pack. Giving those details their own filters makes them easier to find across a collection.&lt;/p&gt;

&lt;h2&gt;
  
  
  Define the product metafields
&lt;/h2&gt;

&lt;p&gt;In Shopify admin, go to &lt;strong&gt;Settings → Custom data → Products&lt;/strong&gt;. Create &lt;strong&gt;Material&lt;/strong&gt; and &lt;strong&gt;Pack Size&lt;/strong&gt; as single-line text metafields if each product has one value for each field. Use consistent choices such as &lt;code&gt;Cotton&lt;/code&gt;, &lt;code&gt;Linen&lt;/code&gt;, and &lt;code&gt;Cotton blend&lt;/code&gt; for Material, and &lt;code&gt;4-pack&lt;/code&gt;, &lt;code&gt;6-pack&lt;/code&gt;, and &lt;code&gt;12-pack&lt;/code&gt; for Pack Size.&lt;/p&gt;

&lt;p&gt;Use a list field for Material if multiple independent values genuinely apply. For a blend, decide whether a single label like “Cotton blend” best reflects how shoppers browse your catalog. If customers choose pack size as a variant on the same product page, consider filtering by the existing product option instead.&lt;/p&gt;

&lt;h2&gt;
  
  
  Populate the fields and enable the filters
&lt;/h2&gt;

&lt;p&gt;Assign values to a few products in the same collection. In &lt;strong&gt;Apps → Search &amp;amp; Discovery → Filters&lt;/strong&gt;, add each metafield as a filter source and give it a clear storefront label. Open the collection in a theme that supports storefront filtering.&lt;/p&gt;

&lt;p&gt;Shopify displays only filter values that apply to the current collection or search results. If “6-pack” is missing, first check whether a product in the collection actually has that value assigned.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test the filters together
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Test product&lt;/th&gt;
&lt;th&gt;Material&lt;/th&gt;
&lt;th&gt;Pack Size&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Everyday napkins&lt;/td&gt;
&lt;td&gt;Cotton&lt;/td&gt;
&lt;td&gt;6-pack&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dinner napkins&lt;/td&gt;
&lt;td&gt;Linen&lt;/td&gt;
&lt;td&gt;6-pack&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cocktail napkins&lt;/td&gt;
&lt;td&gt;Linen&lt;/td&gt;
&lt;td&gt;4-pack&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;ol&gt;
&lt;li&gt;Select &lt;strong&gt;Linen&lt;/strong&gt; and check that both linen products appear.&lt;/li&gt;
&lt;li&gt;Add &lt;strong&gt;6-pack&lt;/strong&gt; and check that only the dinner napkins remain.&lt;/li&gt;
&lt;li&gt;Clear &lt;strong&gt;Linen&lt;/strong&gt; and check that both six-packs return.&lt;/li&gt;
&lt;li&gt;Repeat on mobile and make sure the selected filters are visible and easy to clear.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://help.shopify.com/en/manual/online-store/storefront-search/search-and-discovery-filters" rel="noopener noreferrer"&gt;Shopify Help Center: Adding filters with Search &amp;amp; Discovery&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: This article was generated by ChatGPT from the topic of the companion LinkedIn carousel.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>shopify</category>
      <category>ecommerce</category>
      <category>webdev</category>
    </item>
    <item>
      <title>A Practical Speed Checklist for Shopify Product Pages</title>
      <dc:creator>Shaykh Abdul Muhaiman</dc:creator>
      <pubDate>Wed, 11 Nov 2026 06:48:17 +0000</pubDate>
      <link>https://dev.to/shaykhabdulmuhaiman/a-practical-speed-checklist-for-shopify-product-pages-3npk</link>
      <guid>https://dev.to/shaykhabdulmuhaiman/a-practical-speed-checklist-for-shopify-product-pages-3npk</guid>
      <description>&lt;p&gt;When a Shopify product page feels slow on mobile, start by looking at what the browser loads and when. Here are three checks you can run before changing the theme.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Find the LCP element
&lt;/h2&gt;

&lt;p&gt;Run a mobile performance test and identify the Largest Contentful Paint (LCP) element. On a product page it might be the featured image, but the report will tell you which element actually counted for that run.&lt;/p&gt;

&lt;p&gt;If it’s the main product image, make sure it appears in the initial HTML and loads eagerly. Consider &lt;code&gt;fetchpriority="high"&lt;/code&gt; for that image when it’s the main LCP candidate. Keep offscreen gallery images lazy-loaded.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Check which image mobile visitors download
&lt;/h2&gt;

&lt;p&gt;Open DevTools, select a mobile viewport, and reload with the Network panel open. Find the product image request and compare the downloaded image width with the space it occupies on screen, accounting for device pixel ratio.&lt;/p&gt;

&lt;p&gt;In Liquid, use Shopify CDN image widths in your responsive markup. Make sure &lt;code&gt;sizes&lt;/code&gt; describes the image’s rendered slot at each breakpoint so the browser can choose an appropriate &lt;code&gt;srcset&lt;/code&gt; candidate. Include intrinsic &lt;code&gt;width&lt;/code&gt; and &lt;code&gt;height&lt;/code&gt; so the browser can reserve space before the image loads.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Scope scripts to the pages that need them
&lt;/h2&gt;

&lt;p&gt;Look for scripts loaded globally that support a feature used on only one template. Before moving a script, check for shared entry points. A product gallery script might also power a quick view on collection pages.&lt;/p&gt;

&lt;p&gt;After changing script loading, test variant selection, gallery navigation, quick view where applicable, and add to cart.&lt;/p&gt;

&lt;h2&gt;
  
  
  Verify the change
&lt;/h2&gt;

&lt;p&gt;Repeat the mobile test under the same conditions and compare the median LCP. If the theme change is shared, check the homepage and a collection page too. Review real-user data when it’s available.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.linkedin.com/feed/update/urn:li:activity:7526173244358582273/" rel="noopener noreferrer"&gt;See the five-slide version on LinkedIn&lt;/a&gt;&lt;/p&gt;

</description>
      <category>shopify</category>
      <category>webperf</category>
      <category>liquid</category>
      <category>frontend</category>
    </item>
    <item>
      <title>I built a Shopify Admin API token generator for custom apps</title>
      <dc:creator>Shaykh Abdul Muhaiman</dc:creator>
      <pubDate>Mon, 09 Nov 2026 11:12:03 +0000</pubDate>
      <link>https://dev.to/shaykhabdulmuhaiman/i-built-a-shopify-admin-api-token-generator-for-custom-apps-5e4e</link>
      <guid>https://dev.to/shaykhabdulmuhaiman/i-built-a-shopify-admin-api-token-generator-for-custom-apps-5e4e</guid>
      <description>&lt;p&gt;When I start a Shopify Admin API integration, I want to make one test request before wiring the API into the rest of the app. Getting to that first request can mean configuring a callback, completing OAuth, and checking which scopes Shopify granted.&lt;/p&gt;

&lt;p&gt;I built a Next.js tool that guides you through that exchange for a compatible custom app. You configure the app in Shopify, authorize it for the target store, and get a result page with the token and granted scopes.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://shaykhabdulmuhaiman.com/tools/shopify-token-generator" rel="noopener noreferrer"&gt;Try the Shopify Admin API Token Generator&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/shaykh-abdul-muhaiman-shopify-developer/shopify-admin-api-token-generator" rel="noopener noreferrer"&gt;GitHub setup guide and troubleshooting&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it with a development store
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;In the Shopify Dev Dashboard, configure your app and add the exact callback URL shown in the &lt;a href="https://github.com/shaykh-abdul-muhaiman-shopify-developer/shopify-admin-api-token-generator/blob/main/docs/SETUP.md" rel="noopener noreferrer"&gt;setup guide&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Start with a read-only scope such as &lt;code&gt;read_products&lt;/code&gt;, release the app configuration, and install the app on the store you’re authorized to use.&lt;/li&gt;
&lt;li&gt;Open the tool, enter your store’s permanent &lt;code&gt;.myshopify.com&lt;/code&gt; domain and the app credentials, then complete Shopify authorization.&lt;/li&gt;
&lt;li&gt;Check the granted scopes and make your first read-only request with the &lt;a href="https://github.com/shaykh-abdul-muhaiman-shopify-developer/shopify-admin-api-token-generator/blob/main/docs/USAGE.md" rel="noopener noreferrer"&gt;GraphQL example&lt;/a&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If Shopify rejects the callback, check that the URL in the Dev Dashboard matches the setup guide exactly. If authorization succeeds but the API request fails, check the &lt;strong&gt;granted&lt;/strong&gt; scopes on the result page.&lt;/p&gt;

&lt;p&gt;The hosted exchange requires a client secret. I’d try it with a dedicated development app and minimal permissions. Keep secrets and tokens out of storefront code, screenshots, and GitHub issues. The public repo contains the setup docs and API examples.&lt;/p&gt;

&lt;p&gt;If the guide saves you time, a GitHub star helps other Shopify developers find it. If you try the tool, I’d especially like feedback on which setup step could be clearer.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;AI disclosure: I used AI assistance to draft and edit this post based on my project documentation.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>shopify</category>
      <category>oauth</category>
    </item>
  </channel>
</rss>
