<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mr. Ritik Yadav on Medium]]></title>
        <description><![CDATA[Stories by Mr. Ritik Yadav on Medium]]></description>
        <link>https://medium.com/@mr-ritikyadav?source=rss-41526317c618------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*riXQrBg6BUyQ1azY03EN6Q.jpeg</url>
            <title>Stories by Mr. Ritik Yadav on Medium</title>
            <link>https://medium.com/@mr-ritikyadav?source=rss-41526317c618------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 23:44:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mr-ritikyadav/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Safari Issue: “A Problem Repeatedly Occurred”]]></title>
            <link>https://mr-ritikyadav.medium.com/safari-issue-a-problem-repeatedly-occurred-4ef916263a3e?source=rss-41526317c618------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ef916263a3e</guid>
            <category><![CDATA[safari]]></category>
            <category><![CDATA[e-commerce-business]]></category>
            <category><![CDATA[sfcc]]></category>
            <category><![CDATA[browsers]]></category>
            <category><![CDATA[apple]]></category>
            <dc:creator><![CDATA[Mr. Ritik Yadav]]></dc:creator>
            <pubDate>Fri, 16 Oct 2026 14:56:01 GMT</pubDate>
            <atom:updated>2026-10-16T14:56:01.615Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z6QKWjS1gUp7EgQWwgEdeQ.png" /><figcaption>A Problem Repeatedly Occurred</figcaption></figure><h4>Problem</h4><p>A problem repeatedly occurred in <strong>Safari</strong> when using an anchor tag with an empty/placeholder URL:</p><pre>&lt;a href=&quot;#&quot;&gt;...&lt;/a&gt;</pre><h4>Root Cause</h4><p>In Safari, the href=&quot;#&quot; caused the browser to treat the element as a navigation link and update the page URL/hash. This resulted in the issue shown in the screenshot.</p><h4>Resolution</h4><p>Updated the anchor tag from:</p><pre>&lt;a href=&quot;#&quot;&gt;...&lt;/a&gt;</pre><p>to:</p><pre>&lt;a href=&quot;javascript:void(0)&quot;&gt;...&lt;/a&gt;</pre><h4>Result</h4><p>After changing the href value, the unwanted navigation behavior was prevented and the issue was resolved in Safari.</p><p><strong>Root Cause:</strong> href=&quot;#&quot;<br><strong>Fix:</strong> href=&quot;javascript:void(0)&quot;<br><strong>Browser:</strong> Safari</p><h4>Author</h4><p>Mr. Ritik Yadav</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ef916263a3e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[YouTube Ad Skip Script — Quick Test]]></title>
            <link>https://mr-ritikyadav.medium.com/youtube-ad-skip-script-quick-test-a234049893ef?source=rss-41526317c618------2</link>
            <guid isPermaLink="false">https://medium.com/p/a234049893ef</guid>
            <category><![CDATA[ideas]]></category>
            <category><![CDATA[advertising]]></category>
            <category><![CDATA[youtube]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <dc:creator><![CDATA[Mr. Ritik Yadav]]></dc:creator>
            <pubDate>Thu, 01 Oct 2026 14:41:01 GMT</pubDate>
            <atom:updated>2026-10-01T14:41:01.610Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Fs-1miYwzUkb9wzItHpgA.png" /><figcaption>YouTube Ad Skip Script — Quick Test</figcaption></figure><p>If you’re looking for a simple way to test whether YouTube ads can be skipped automatically, try the script below.</p><p>The main purpose of this script is <strong>not to modify YouTube’s interface heavily</strong>. It simply tries to detect an advertisement and, when possible, <strong>click the Skip button or move past the ad as quickly as possible</strong>.</p><p>I’ve tested this approach and, in my experience, it works in around <strong>95% of cases</strong>, although YouTube changes its player and ad system frequently, so results may vary.</p><h3>How to Test It</h3><ol><li>Open <strong>YouTube</strong> in your browser.</li><li>Open the browser’s <strong>Developer Tools</strong>.</li><li>Go to the <strong>Console</strong> tab.</li><li>Paste the script below into the console.</li><li>Press <strong>Enter</strong>.</li><li>Reload the YouTube page and test with a few videos.</li></ol><blockquote><strong><em>Note:</em></strong><em> Some browsers prevent pasting code into the Console until you explicitly allow it. Only paste code that you understand and trust.</em></blockquote><h3>Where to Find the Console</h3><h3>Chrome / Edge / Brave</h3><ul><li><strong>Windows/Linux:</strong> Ctrl + Shift + J</li><li><strong>Mac:</strong> Cmd + Option + J</li></ul><p>Or:</p><p><strong>Menu → More Tools → Developer Tools → Console</strong></p><h3>Firefox</h3><ul><li><strong>Windows/Linux:</strong> Ctrl + Shift + K</li><li><strong>Mac:</strong> Cmd + Option + K</li></ul><p>Or:</p><p><strong>Menu → More Tools → Web Developer Tools → Console</strong></p><h3>Script</h3><pre>// ==UserScript==<br>// @name         YouTube Ad Skipper<br>// @match        *://*.youtube.com/*<br>// @run-at       document-start<br>// ==/UserScript==<br><br>(function () {<br>  &quot;use strict&quot;;<br><br>  // ── 1. CONFIG ──────────────────────────────────────────<br>  const CHECK_INTERVAL_MS = 50;   // how often to poll for ads<br>  const AD_SPEED = 16;            // playback rate during ad (max allowed)<br><br>  // ── 2. CSS — hide ad chrome instantly ──────────────────<br>  const style = document.createElement(&quot;style&quot;);<br>  style.textContent = `<br>    /* Pre-roll / mid-roll video ads */<br>    .ytp-ad-player-overlay,<br>    .ytp-ad-text,<br>    .ytp-ad-overlay-container,<br>    .ytp-ad-overlay-close-button,<br>    .ytp-ad-skip-button-slot,<br>    .ytp-ad-skip-button-modern.ytp-button,<br>    .ytp-suggested-action .ytp-ad-button-icon,<br>    .ytp-ad-persistent-progress-bar-container,<br><br>    /* Banner / companion ads */<br>    #player-ads,<br>    #masthead-ad,<br>    ytd-ad-slot-renderer,<br>    ytd-banner-promo-renderer,<br>    ytd-statement-banner-renderer,<br>    ytd-in-feed-ad-layout-renderer,<br>    ytd-promoted-sparkles-web-renderer,<br>    ytd-display-ad-renderer,<br>    ytd-companion-slot-renderer,<br>    ytd-promoted-video-renderer,<br>    ytd-action-companion-ad-renderer,<br>    ytd-engagement-panel-section-list-renderer[target-id=&quot;engagement-panel-ads&quot;],<br><br>    /* Sidebar ads */<br>    #related ytd-ad-slot-renderer,<br>    ytd-reel-video-renderer .ytd-ad-slot-renderer,<br><br>    /* Popup / survey */<br>    ytd-popup-container tp-yt-paper-dialog,<br><br>    /* &quot;Premium&quot; upsell nudges */<br>    ytd-mealbar-promo-renderer,<br>    ytd-statement-banner-renderer { display: none !important; }<br><br>    /* Remove the &quot;ad-playing&quot; marker so the player shrinks the ad */<br>    .ad-showing .video-ads { display: none !important; }<br>  `;<br>  document.documentElement.appendChild(style);<br><br>  // ── 3. CORE — find the player &amp; manipulate ads ─────────<br>  function getPlayer() {<br>    return (<br>      document.querySelector(&quot;#movie_player&quot;) ||<br>      document.querySelector(&quot;.html5-video-player&quot;)<br>    );<br>  }<br><br>  function getVideo() {<br>    return document.querySelector(&quot;video&quot;);<br>  }<br><br>  function clickSkipButton() {<br>    // Modern skip button<br>    const btn =<br>      document.querySelector(&quot;.ytp-ad-skip-button-modern&quot;) ||<br>      document.querySelector(&quot;.ytp-ad-skip-button&quot;) ||<br>      document.querySelector(&quot;.ytp-skip-ad-button&quot;) ||<br>      document.querySelector(&#39;[aria-label=&quot;Skip ad&quot;]&#39;) ||<br>      document.querySelector(&#39;[aria-label=&quot;Skip Ads&quot;]&#39;) ||<br>      document.querySelector(&#39;[aria-label=&quot;Skip advertisement&quot;]&#39;);<br><br>    if (btn) {<br>      btn.click();<br>      console.log(&quot;[AdSkip] clicked skip button&quot;);<br>      return true;<br>    }<br>    return false;<br>  }<br><br>  function isAdPlaying() {<br>    const player = getPlayer();<br>    if (player &amp;&amp; typeof player.getAdState === &quot;function&quot;) {<br>      return player.getAdState() === 1;<br>    }<br>    // Fallback: DOM signal<br>    return !!(<br>      document.querySelector(&quot;.ad-showing&quot;) ||<br>      document.querySelector(&quot;.ytp-ad-player-overlay&quot;)<br>    );<br>  }<br><br>  function skipAd() {<br>    const player = getPlayer();<br>    const video = getVideo();<br><br>    // A) Try clicking &quot;Skip&quot; first<br>    if (clickSkipButton()) return;<br><br>    // B) Speed up + seek to end of ad<br>    if (player &amp;&amp; video &amp;&amp; isAdPlaying()) {<br>      const dur = video.duration || 0;<br>      const cur = video.currentTime || 0;<br><br>      if (dur &gt; 0 &amp;&amp; isFinite(dur) &amp;&amp; cur &lt; dur) {<br>        // For short unskippable ads: crank speed to maximum<br>        video.playbackRate = AD_SPEED;<br>        video.muted = true;<br><br>        // If we know the ad duration, jump to the end<br>        try {<br>          if (typeof player.getAdDuration === &quot;function&quot;) {<br>            const adDur = player.getAdDuration();<br>            if (adDur &amp;&amp; isFinite(adDur)) {<br>              video.currentTime = cur + adDur;<br>              console.log(&quot;[AdSkip] seeked ad forward&quot;, adDur.toFixed(1) + &quot;s&quot;);<br>              return;<br>            }<br>          }<br>        } catch (_) {}<br><br>        // Otherwise just jump to end of current video element<br>        video.currentTime = dur;<br>        console.log(&quot;[AdSkip] seeked to end of ad segment&quot;);<br>      }<br>    }<br><br>    // C) Dismiss overlay ads<br>    const closeBtn =<br>      document.querySelector(&quot;.ytp-ad-overlay-close-button&quot;) ||<br>      document.querySelector(&#39;[aria-label=&quot;Close&quot;]&#39;);<br>    if (closeBtn) closeBtn.click();<br>  }<br><br>  function restorePlayback() {<br>    const video = getVideo();<br>    if (video &amp;&amp; video.playbackRate === AD_SPEED) {<br>      video.playbackRate = 1;<br>      video.muted = false;<br>    }<br>  }<br><br>  // ── 4. POLLING LOOP ────────────────────────────────────<br>  let timerId = null;<br>  function startLoop() {<br>    if (timerId) return;<br>    timerId = setInterval(() =&gt; {<br>      if (isAdPlaying()) {<br>        skipAd();<br>      } else {<br>        restorePlayback();<br>      }<br>    }, CHECK_INTERVAL_MS);<br>  }<br><br>  // ── 5. MUTATION OBSERVER — catch dynamically-inserted ads<br>  const observer = new MutationObserver((mutations) =&gt; {<br>    for (const m of mutations) {<br>      for (const node of m.addedNodes) {<br>        if (!(node instanceof Element)) continue;<br>        // Remove ad containers as they&#39;re inserted<br>        const adEls = node.querySelectorAll?.(<br>          [<br>            &quot;ytd-ad-slot-renderer&quot;,<br>            &quot;ytd-banner-promo-renderer&quot;,<br>            &quot;ytd-promoted-sparkles-web-renderer&quot;,<br>            &quot;ytd-display-ad-renderer&quot;,<br>            &quot;ytd-in-feed-ad-layout-renderer&quot;,<br>            &quot;#player-ads&quot;,<br>          ].join(&quot;,&quot;)<br>        );<br>        adEls?.forEach((el) =&gt; el.remove());<br><br>        // Also check the node itself<br>        if (<br>          node.matches?.(<br>            [<br>              &quot;ytd-ad-slot-renderer&quot;,<br>              &quot;ytd-banner-promo-renderer&quot;,<br>              &quot;ytd-promoted-sparkles-web-renderer&quot;,<br>              &quot;ytd-display-ad-renderer&quot;,<br>              &quot;#player-ads&quot;,<br>            ].join(&quot;,&quot;)<br>          )<br>        ) {<br>          node.remove();<br>        }<br>      }<br>    }<br>  });<br><br>  // ── 6. INIT ────────────────────────────────────────────<br>  function init() {<br>    startLoop();<br>    const target = document.querySelector(&quot;#content&quot;) || document.body;<br>    observer.observe(target, { childList: true, subtree: true });<br>    console.log(&quot;[AdSkip] initialized&quot;);<br>  }<br><br>  // Wait for YouTube&#39;s SPA to be ready<br>  if (document.body) {<br>    init();<br>  } else {<br>    document.addEventListener(&quot;DOMContentLoaded&quot;, init);<br>  }<br><br>  // Re-init on SPA navigation (yt-navigate-finish fires on each page change)<br>  window.addEventListener(&quot;yt-navigate-finish&quot;, () =&gt; {<br>    setTimeout(init, 500);<br>  });<br>})();</pre><h3>What This Script Does</h3><p>The script repeatedly checks whether an ad is playing.</p><p>When it detects one, it attempts to:</p><ul><li>Click the <strong>Skip Ad</strong> button if available.</li><li>Speed up the advertisement.</li><li>Mute the advertisement.</li><li>Seek to the end when possible.</li><li>Close certain ad overlays.</li></ul><p>When no advertisement is playing, it leaves normal video playback alone.</p><h3>Important</h3><p>This is mainly a <strong>quick experiment</strong>, not a guaranteed permanent solution. YouTube can change its player, DOM elements, and ad-delivery system at any time, which can cause parts of the script to stop working.</p><p>If it doesn’t work, check the <strong>Console</strong> for errors and try reloading the page after running the script.</p><h4>Author</h4><p>Mr. Ritik Yadav</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a234049893ef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Writing Code to Designing Solutions: My Journey as an SFCC Developer]]></title>
            <link>https://mr-ritikyadav.medium.com/from-writing-code-to-designing-solutions-my-journey-as-an-sfcc-developer-b02396c98a55?source=rss-41526317c618------2</link>
            <guid isPermaLink="false">https://medium.com/p/b02396c98a55</guid>
            <category><![CDATA[self]]></category>
            <category><![CDATA[developer-life]]></category>
            <category><![CDATA[focus]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[personal-growth]]></category>
            <dc:creator><![CDATA[Mr. Ritik Yadav]]></dc:creator>
            <pubDate>Sun, 27 Sep 2026 16:01:02 GMT</pubDate>
            <atom:updated>2026-09-27T16:01:02.248Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EoDO9pLLcra1jnCISi2awQ.png" /><figcaption>My Journey as an SFCC Developer</figcaption></figure><p>When I look back at my journey in Salesforce Commerce Cloud, I realize that it was never just about learning a technology.</p><p>It was about learning how to think.</p><p>I started my career by focusing on the things every developer focuses on:</p><p><strong>How do I write this code?</strong><br><strong>How does this API work?</strong><br><strong>Why isn’t this controller working?</strong><br><strong>Why is this integration failing?</strong></p><p>Over time, those questions started changing.</p><p>I began asking:</p><p><strong>Why are we building it this way?</strong><br><strong>Will this scale?</strong><br><strong>What happens in production?</strong><br><strong>Is there a better architecture?</strong></p><p>And that change in thinking has probably been the most important part of my journey.</p><h4>SFCC became more than a technology</h4><p>Working with Salesforce B2C Commerce introduced me to much more than controllers and ISML.</p><p>I had to understand the complete commerce ecosystem — <strong>SFRA, Business Manager, OCAPI, integrations, caching, jobs, APIs, security, performance, and storefront architecture.</strong></p><p>Every new problem pushed me to learn something different.</p><p>Sometimes the solution was five lines of code.</p><p>Sometimes the solution wasn’t code at all.<br>It was configuration.<br>It was architecture.<br>It was understanding how the platform actually works.</p><h4>From solving tickets to solving problems</h4><p>One of the biggest changes in my career happened when I stopped looking at development tasks as individual tickets.</p><p>A requirement might say:</p><blockquote><em>“Add this functionality.”</em></blockquote><p>But I started looking beyond the requirement.</p><p>How will customers use it?</p><p>What happens if the API fails?</p><p>What happens during high traffic?</p><p>Can the solution be reused?</p><p>What happens six months later when another developer has to maintain it?</p><p>That mindset slowly moved me from <strong>just implementing requirements</strong> toward <strong>designing solutions</strong>.</p><h4>Learning never stopped</h4><p>My journey has also been about continuously expanding my knowledge.</p><p>From SFCC development, I explored areas around Salesforce, APIs, integrations, AI, analytics, security, and architecture.</p><p>Certifications became milestones, but the real learning came from applying that knowledge to actual problems.</p><p>Becoming a <strong>Salesforce Certified B2C Commerce Architect</strong> was an important milestone for me, but I see it less as an endpoint and more as confirmation that my role is evolving.</p><h4>Why I started writing</h4><p>Writing became another part of my learning process.</p><p>When I write about an SFCC problem, I have to understand it well enough to explain it simply.</p><p>That process forces me to ask:</p><blockquote><em>“Do I really understand this?”</em></blockquote><p>Whether it’s caching, CSRF handling, logging, recommendations, or architecture, documenting these topics helps me learn them at a deeper level.</p><p>And if something I write helps another developer avoid a few hours of debugging, that’s even better.</p><h4>Developer today, architect tomorrow</h4><p>I don’t think being a senior developer means knowing every answer.</p><p>It means knowing <strong>how to find the answer</strong>, how to evaluate different approaches, and how to make decisions that are good for both the business and the technology.</p><p>My journey is still continuing.</p><p>There are more technologies to learn, harder problems to solve, and bigger systems to understand.</p><p>But if there’s one thing I’ve learned so far, it’s this:</p><p><strong>A developer writes code.</strong><br><strong>A good developer solves problems.</strong><br><strong>An architect thinks about the problems that haven’t happened yet.</strong></p><p>I’m still learning to become the third one.</p><p>And that’s what makes the journey exciting.</p><p><strong>The code keeps changing.</strong><br><strong>The technology keeps changing.</strong><br><strong>But the curiosity to learn should never change.</strong></p><h4>Author</h4><p>Mr. Ritik Yadav</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b02396c98a55" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SFCC Production Issue: PDP Became 7 Seconds After Replication]]></title>
            <link>https://mr-ritikyadav.medium.com/sfcc-production-issue-pdp-became-7-seconds-after-replication-deccb1b49570?source=rss-41526317c618------2</link>
            <guid isPermaLink="false">https://medium.com/p/deccb1b49570</guid>
            <category><![CDATA[sfcc]]></category>
            <category><![CDATA[salesforce-commerce-cloud]]></category>
            <category><![CDATA[salesforce-development]]></category>
            <category><![CDATA[data-replication]]></category>
            <dc:creator><![CDATA[Mr. Ritik Yadav]]></dc:creator>
            <pubDate>Sat, 05 Sep 2026 08:01:03 GMT</pubDate>
            <atom:updated>2026-09-05T08:01:03.818Z</atom:updated>
            <content:encoded><![CDATA[<p>Imagine your SFCC PDP normally loads in <strong>1.5 seconds</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S9UeHrfiGUksfJBYMFajtA.png" /><figcaption>SFCC Production Issue: PDP Became 7 Seconds After Replication</figcaption></figure><p>One morning after a large catalog replication, suddenly:</p><blockquote><strong><em>PDP response time → 7 seconds</em></strong></blockquote><p>There was <strong>no code deployment</strong>. So what happened?</p><h4>🔍 First Suspect: Cache</h4><p>In SFCC, replication can cause page-cache invalidation. When the cache becomes cold, requests that were previously served from cache need to execute through the application.</p><p>Instead of:</p><pre>Customer → Cache HIT → PDP<br>             ↓<br>          ~1.5 sec</pre><p>you may suddenly get:</p><pre>Customer<br>   ↓<br>Cache MISS<br>   ↓<br>Controller<br>   ↓<br>Product / Price / Promotion<br>   ↓<br>ISML rendering<br>   ↓<br>PDP<br>   ↓<br>~7 sec</pre><h4>🛠️ What Should We Check?</h4><p>Don’t immediately change the PDP code.</p><p>Check these first:</p><ol><li>When did the performance degradation start?</li><li>Did replication finish just before the issue?</li><li>Was the page cache invalidated?</li><li>Did PDP cache hit/miss ratios change?</li><li>Are there long-running jobs running at the same time?</li><li>Are any external services making the PDP slower?</li></ol><p>If performance gradually returns to normal as the cache warms up, that’s a strong indication that <strong>cache invalidation/rebuild was the main contributor</strong>.</p><h4>💡 Long-Term Fix</h4><p>The solution isn’t simply “clear the cache again.”</p><p>Review:</p><ul><li>Replication schedules</li><li>Page-cache strategy</li><li>Cache partitions</li><li>PDP/PLP caching</li><li>Long-running jobs</li><li>External service calls</li></ul><p>Try to perform large replications during <strong>lower-traffic periods</strong> and avoid unnecessary repeated cache invalidation.</p><h4>🎯 Key Lesson</h4><p>In SFCC, <strong>slow code isn’t always the root cause of a slow page</strong>.</p><p>When performance suddenly drops after replication, always investigate:</p><blockquote><strong><em>Replication → Cache → Cache Hit/Miss → Application Processing → External Services</em></strong></blockquote><p>That simple troubleshooting path can save hours of unnecessary code debugging.</p><p>Salesforce documents cache invalidation and replication as important factors in B2C Commerce performance troubleshooting.</p><h4>Author</h4><p>Mr. Ritik Yadav</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=deccb1b49570" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Handling Dynamic Timezones in SFCC for Multi-Region Shipping Rule]]></title>
            <link>https://mr-ritikyadav.medium.com/handling-dynamic-timezones-in-sfcc-for-multi-region-shipping-rule-a7ee94fedb58?source=rss-41526317c618------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7ee94fedb58</guid>
            <category><![CDATA[sfcc]]></category>
            <category><![CDATA[timezone-difference]]></category>
            <category><![CDATA[time-management]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[salesforce-commerce-cloud]]></category>
            <dc:creator><![CDATA[Mr. Ritik Yadav]]></dc:creator>
            <pubDate>Fri, 26 Jun 2026 07:31:00 GMT</pubDate>
            <atom:updated>2026-06-26T07:31:00.833Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XhuK-P37oJk5JxBIp2v6TQ.png" /><figcaption>Handling Dynamic Timezones in SFCC for Multi-Region Shipping Rule</figcaption></figure><p>The requirement seemed straightforward: enable or disable a shipping method based on cutoff hours configured in Business Manager. However, things became more complex when supporting multiple regional storefronts.</p><h4>The Challenge</h4><p>Consider the following scenario:</p><ul><li>Australia storefront operates on Australia/Sydney</li><li>Singapore storefront operates on Asia/Singapore</li></ul><p>The shipping method should only be available during business-defined operating hours for each region.</p><p>Initially, the implementation relied on the default site/environment timezone when evaluating the current time. While this worked for a single region, it quickly became problematic in a multi-site setup where each storefront follows different business hours.</p><p>For example:</p><pre>Australia Site<br>Cutoff: 10:30 AM – 6:00 PM</pre><pre>Singapore Site<br>Cutoff: 10:30 AM – 6:00 PM</pre><p>Although the configured hours appear identical, the actual current time differs between regions. Using a single timezone can result in shipping methods being disabled or enabled at the wrong time.</p><h4>Understanding the Root Cause</h4><p>SFCC environments can host multiple storefronts that operate across different countries and timezones.</p><p>If time-based validations rely solely on the default site or instance timezone, business rules become tightly coupled to environment configuration rather than actual business requirements.</p><p>This can impact:</p><ul><li>Shipping cutoff validation</li><li>Weekend restrictions</li><li>Blackout date checks</li><li>Scheduled business operations</li></ul><h4>The Solution</h4><p>To make the implementation reusable across multiple regions, a configurable business timezone preference was introduced.</p><p>Instead of assuming a specific timezone, the application retrieves the configured business timezone and applies it explicitly when performing time-based calculations.</p><pre>var calendar = new Calendar();</pre><pre>calendar.setTimeZone(<br>    prefs.businessTimezone<br>);</pre><p>This ensures that all validations are evaluated using the intended regional timezone.</p><h4>Conclusion</h4><p>When implementing time-sensitive business rules in SFCC, it is important not to assume that the site or environment timezone will always align with business operations.</p><p>Using a configurable business timezone provides a flexible and scalable solution for multi-region storefronts while ensuring that shipping availability behaves exactly as expected for customers in each market.</p><h4>Open Questions</h4><p>While the configurable business timezone approach solved the immediate requirement, I’m curious whether there are alternative SFCC-native approaches that could simplify this further.</p><p>Some questions that came up during implementation:</p><ul><li>Is there a Business Manager setting that better supports region-specific business hours?</li><li>Are there SFCC best practices for handling multi-region time-based validations such as shipping cutoffs and blackout dates?</li><li>Would it be preferable to align the site timezone with the business operating timezone rather than introducing a separate timezone preference?</li><li>Has anyone implemented a similar solution using site preferences, custom objects, or locale-specific configuration?</li><li>Are there any edge cases around daylight saving time (DST) that should be considered when using configurable timezones?</li></ul><p>I’d be interested to hear how others have approached timezone-sensitive business rules in multi-site SFCC implementations.</p><h4>Author</h4><p>Mr. Ritik Yadav</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7ee94fedb58" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fixing Duplicate API Calls in jQuery Filter Handling]]></title>
            <link>https://mr-ritikyadav.medium.com/fixing-duplicate-api-calls-in-jquery-filter-handling-8bc4be66de4d?source=rss-41526317c618------2</link>
            <guid isPermaLink="false">https://medium.com/p/8bc4be66de4d</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[jquery]]></category>
            <category><![CDATA[salesforce-commerce-cloud]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[trigger]]></category>
            <dc:creator><![CDATA[Mr. Ritik Yadav]]></dc:creator>
            <pubDate>Fri, 05 Jun 2026 14:41:00 GMT</pubDate>
            <atom:updated>2026-06-05T14:41:00.582Z</atom:updated>
            <content:encoded><![CDATA[<p>While implementing a dynamic filtering system, I encountered a tricky issue, <strong>duplicate API calls when removing filters</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ss9ObYRhKCvEY-kNUxTVqQ.png" /><figcaption>Fixing Duplicate API Calls in jQuery Filter Handling</figcaption></figure><h4>The Problem</h4><p>The filtering logic relied on triggering a change event programmatically:</p><pre>$checkbox.prop(&#39;checked&#39;, false).trigger(&#39;change&#39;);</pre><p>This was intended to reuse existing logic tied to the change event. However, it led to an unexpected outcome:</p><ul><li>The event was firing <strong>twice</strong></li><li>Resulting in <strong>duplicate AJAX calls</strong></li><li>Causing unnecessary processing and inconsistent UI behavior</li></ul><h4>Root Cause</h4><p>The issue stemmed from relying on event triggering for core logic:</p><ul><li>Event handlers can be bound multiple times (especially in dynamic UIs)</li><li>Triggering events programmatically can execute all attached handlers</li><li>This makes debugging and controlling execution flow difficult</li></ul><h4>The Fix</h4><p>Instead of relying on .trigger(&#39;change&#39;), the logic was refactored into a single reusable function:</p><pre>function applyFilters() {<br>  // filtering + AJAX logic<br>}</pre><p>Then used consistently:</p><pre>// On checkbox change<br>$(document).on(&#39;change&#39;, &#39;input[type=&quot;checkbox&quot;]&#39;, function () {<br>  applyFilters();<br>});<br><br>// On filter removal<br>$checkbox.prop(&#39;checked&#39;, false);<br>applyFilters();</pre><h4>Why This Approach Works</h4><ul><li>Eliminates duplicate API calls</li><li>Provides clear and predictable execution flow</li><li>Avoids unintended side effects from event triggers</li><li>Improves code readability and maintainability</li></ul><h4>Author</h4><p><strong>Mr. Ritik Yadav</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8bc4be66de4d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Log Levels in Salesforce B2C Commerce (SFCC)]]></title>
            <link>https://mr-ritikyadav.medium.com/understanding-log-levels-in-salesforce-b2c-commerce-sfcc-2b66eeffba1e?source=rss-41526317c618------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b66eeffba1e</guid>
            <category><![CDATA[salesforce-commerce-cloud]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[sfcc]]></category>
            <category><![CDATA[logger]]></category>
            <category><![CDATA[ei]]></category>
            <dc:creator><![CDATA[Mr. Ritik Yadav]]></dc:creator>
            <pubDate>Fri, 29 May 2026 12:46:00 GMT</pubDate>
            <atom:updated>2026-05-29T12:46:00.519Z</atom:updated>
            <content:encoded><![CDATA[<p>When working with <strong>Salesforce B2C Commerce Cloud (SFCC)</strong>, logging is one of the most important tools for debugging, monitoring, and maintaining your application. Yet, many developers either overuse logging (causing noise and performance issues) or underuse it (making debugging difficult).</p><p>This guide explains how SFCC log levels work, what they actually capture, and how to use them effectively across environments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mBfEC3b3-HFnb-EQsFsziQ.png" /><figcaption>Understanding Log Levels in Salesforce B2C Commerce</figcaption></figure><h4>Why Logging Matters in SFCC</h4><p>Logging helps you:</p><ul><li>Debug issues in integrations (e.g., payment gateways)</li><li>Monitor production errors</li><li>Trace application behavior</li><li>Audit system activity</li></ul><p>But the key is using the <strong>right log level</strong>.</p><h4>Log Level Hierarchy Explained</h4><p>SFCC log levels follow a <strong>hierarchical structure</strong>, meaning each level includes all levels above it in severity.</p><h4>From highest severity → lowest:</h4><ul><li><strong>FATAL</strong> — Critical system failure (application may stop functioning)</li><li><strong>ERROR</strong> — Functional errors that break features</li><li><strong>WARN</strong> — Unexpected situations, but not breaking</li><li><strong>INFO</strong> — General system information</li><li><strong>DEBUG</strong> — Detailed debugging data (most verbose)</li></ul><h4>What “Log Everything” Actually Means</h4><p>If your goal is to capture <strong>all logs</strong>, then:</p><p><strong>Use </strong><strong>DEBUG level</strong></p><p>Because it includes:</p><ul><li>DEBUG</li><li>INFO</li><li>WARN</li><li>ERROR</li><li>FATAL</li></ul><p>This makes DEBUG the most detailed and comprehensive logging level.</p><h4>Example in SFCC Code</h4><pre>var log = Logger.getLogger(&#39;error_log&#39;, &#39;Adyen&#39;);<br>log.error(&#39;Payment failed&#39;);<br>log.debug(&#39;Request payload: &#39; + requestBody);</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pgvuqOymqFIiVziNFgF-WQ.png" /><figcaption>What gets logged based on level?</figcaption></figure><h4>Choosing the Right Log Level by Environment</h4><h4>🔧 Development (DEV)</h4><ul><li>Use: <strong>DEBUG</strong></li><li>Why: Full visibility for troubleshooting</li></ul><h4>🧪 Staging (UAT / STG)</h4><ul><li>Use: <strong>INFO</strong> or <strong>WARN</strong></li><li>Why: Reduce noise but still monitor behavior</li></ul><h4>🚀 Production (PRD)</h4><ul><li>Use: <strong>ERROR</strong> (sometimes <strong>WARN</strong>)</li><li>Why:<br> — Avoid performance overhead<br> — Prevent sensitive data exposure<br> — Keep logs clean and actionable</li></ul><h4>Common Mistakes to Avoid</h4><h4>1. Using DEBUG in Production</h4><p>This can:</p><ul><li>Flood logs</li><li>Impact performance</li><li>Expose sensitive data</li></ul><h4>2. Logging Sensitive Information</h4><p>Never log:</p><ul><li>Payment details</li><li>Tokens</li><li>Personal user data (PII)</li></ul><h4>3. Not Structuring Logs Properly</h4><p>Instead of:</p><pre>log.error(&#39;Error occurred&#39;);</pre><p>Use:</p><pre>log.error(&#39;payment failed for order {0}&#39;, orderNo);</pre><h4>Pro Tip: Custom Log Categories</h4><p>You can organize logs using categories:</p><pre>Logger.getLogger(&#39;Error_log&#39;, &#39;Adyen&#39;);</pre><p>This helps:</p><ul><li>Separate logs by feature (e.g., payments, shipping)</li><li>Improve debugging efficiency</li><li>Filter logs easily in Business Manager</li></ul><p>Understanding log levels isn’t just about turning logging on or off, it’s about <strong>using the right level at the right time</strong>.</p><ul><li>Use <strong>DEBUG</strong> when you need full visibility</li><li>Use <strong>INFO/WARN</strong> for controlled monitoring</li><li>Use <strong>ERROR</strong> in production for clean and actionable logs</li></ul><h4>Author</h4><p><strong>Mr. Ritik Yadav</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b66eeffba1e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Configure Searchable Attributes for Better Product Search (Practical Guide)]]></title>
            <link>https://mr-ritikyadav.medium.com/how-to-configure-searchable-attributes-for-better-product-search-practical-guide-93e6064bd89a?source=rss-41526317c618------2</link>
            <guid isPermaLink="false">https://medium.com/p/93e6064bd89a</guid>
            <category><![CDATA[salesforce-commerce-cloud]]></category>
            <category><![CDATA[search]]></category>
            <category><![CDATA[sfcc]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[e-commerce-business]]></category>
            <dc:creator><![CDATA[Mr. Ritik Yadav]]></dc:creator>
            <pubDate>Fri, 15 May 2026 13:46:00 GMT</pubDate>
            <atom:updated>2026-05-15T13:46:00.464Z</atom:updated>
            <content:encoded><![CDATA[<p>If your storefront search isn’t returning relevant results, the issue is often not data, it’s <strong>how your searchable attributes are configured</strong>.</p><p>This guide breaks down how to use <strong>Searchable Attributes in Merchant Tools</strong> effectively, based on real-world usage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ahpr692g2TKZA3ZdnDqXQQ.png" /><figcaption>How to Configure Searchable Attributes for Better Product Search</figcaption></figure><h4>What Are Searchable Attributes?</h4><p>Searchable attributes define <strong>which product fields are considered during a search query</strong>.</p><p>For example:</p><ul><li>Product Name</li><li>Brand</li><li>Color</li><li>Description</li></ul><p>If an attribute isn’t searchable, your product <strong>won’t appear</strong> even if it contains the keyword.</p><h4>Understanding the Key Settings</h4><h4>1. Boost Factor (Most Important)</h4><p>Boost determines <strong>how much weight an attribute has in search ranking</strong>.</p><p>From your setup:</p><ul><li>Product Name → <strong>5.0</strong> (highest priority)</li><li>Brand → <strong>3.0</strong></li><li>Keywords → <strong>2.5</strong></li><li>Description → <strong>2.0</strong></li><li>Color / ID → <strong>0.5</strong></li></ul><h4>Practical Insight:</h4><p>If a user searches “Nike shoes”:</p><ul><li>A match in <strong>Product Name</strong> will rank much higher than a match in <strong>Description</strong></li></ul><p>This is exactly how it should be.</p><h4>2. Autocorrection</h4><p>Autocorrect helps match <strong>misspelled queries</strong>.</p><p>Enabled for:</p><ul><li>Product Name</li><li>Brand</li><li>Category</li></ul><p>Disabled for:</p><ul><li>Product ID</li></ul><h4>Best Practice:</h4><ul><li>Enable autocorrect for <strong>user-facing text</strong></li><li>Disable for <strong>exact fields like IDs</strong></li></ul><h3>What Your Current Configuration Gets Right</h3><p>Product Name has the highest boost → correct<br>Brand is prioritized → improves relevance<br>Keywords and description support search → good<br> ID has low boost and no autocorrect → correct</p><p>This setup is <strong>balanced and production-ready</strong></p><h4>Common Mistakes to Avoid</h4><h4>❌ 1. Giving Too Many Attributes High Boost</h4><p>This confuses ranking and reduces accuracy.</p><h4>❌ 2. Ignoring Product Name</h4><p>If name isn’t the highest, search quality drops significantly.</p><h4>❌ 3. Enabling Autocorrect Everywhere</h4><p>Leads to incorrect results, especially for IDs.</p><h4>❌ 4. Overusing Keywords</h4><p>Too many keywords can dilute relevance instead of improving it.</p><h4>Use Keywords Strategically</h4><p>Add:</p><ul><li>Synonyms</li><li>Common search terms</li></ul><p>Example:</p><ul><li>“Sneakers, running shoes, sports shoes”</li></ul><h4>Monitor Zero Results</h4><p>If users get no results:</p><ul><li>Either attribute is not searchable</li><li>Or boost is too low</li></ul><p>Searchable attributes are not just configuration, they directly impact:</p><ul><li>Product discoverability</li><li>User experience</li><li>Conversion rate</li></ul><p>A good setup ensures:</p><ul><li>Relevant results</li><li>Faster search</li><li>Better customer satisfaction</li></ul><h4>Author</h4><p><strong>Mr. Ritik Yadav</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93e6064bd89a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Automated Daily AI-Powered Social Media Posts Using]]></title>
            <link>https://mr-ritikyadav.medium.com/how-i-automated-daily-ai-powered-social-media-posts-using-d538839837b9?source=rss-41526317c618------2</link>
            <guid isPermaLink="false">https://medium.com/p/d538839837b9</guid>
            <category><![CDATA[google-gemini]]></category>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[zapier]]></category>
            <category><![CDATA[buffer]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Mr. Ritik Yadav]]></dc:creator>
            <pubDate>Sat, 09 May 2026 11:39:27 GMT</pubDate>
            <atom:updated>2026-05-09T11:39:27.375Z</atom:updated>
            <content:encoded><![CDATA[<p>Every creator and founder knows the struggle:</p><p>You want to stay consistent on social media, but writing fresh content every single day is exhausting.</p><p>So I built a simple automation workflow that generates AI-powered content daily and automatically queues it in Buffer for publishing.</p><p>Here’s the exact setup.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4qoZ1mBdMn5L-gx10iU1jA.jpeg" /><figcaption>Zapier + Gemini + Buffer</figcaption></figure><h4>The Goal</h4><p>The workflow should:</p><ul><li>Run automatically every day</li><li>Generate a new post using AI</li><li>Format the content properly</li><li>Add it directly into Buffer’s publishing queue</li></ul><p>No manual writing. No copy-pasting. No scheduling headaches.</p><h4>The Stack</h4><p>Here’s the automation stack I used:</p><ul><li><strong>Zapier</strong> :workflow orchestration</li><li><strong>Google AI Studio (Gemini)</strong> :AI content generation</li><li><strong>Code by Zapier</strong> :formatting and cleanup</li><li><strong>Buffer</strong> :social media scheduling</li></ul><h4>Step 1: Trigger the Workflow Daily</h4><p>The workflow starts with:</p><h4>Schedule by Zapier</h4><p>I configured it to run every day at <strong>10:00 AM IST</strong>.<br>This acts like a cron job for the automation.<br>Why daily scheduling works well:</p><ul><li>Builds consistency</li><li>Keeps content flowing automatically</li><li>Eliminates the “what should I post today?” problem</li></ul><p>Example trigger:</p><pre>Every Day → 10:00 AM IST</pre><h4>Step 2: Generate Content with Gemini</h4><p>Next, Zapier sends a prompt to <strong>Google AI Studio (Gemini)</strong>.<br>This is where the magic happens.<br>The AI generates a social media post based on your prompt template.</p><h4>Example Prompt</h4><pre>Write a LinkedIn post about AI automation for founders.</pre><pre>Tone:<br>- Practical<br>- Concise<br>- Insightful</pre><pre>Include:<br>- Hook<br>- 3 short paragraphs<br>- CTA at the end</pre><p>You can customize this for:</p><ul><li>LinkedIn</li><li>Twitter/X</li><li>Threads</li><li>Instagram captions</li><li>Product updates</li><li>Founder insights</li><li>Marketing tips</li></ul><h4>Step 3: Clean and Format the Output</h4><p>AI output is rarely production-ready.<br>That’s why I added:</p><h4>Code by Zapier → Run JavaScript</h4><p>This step helps:</p><ul><li>Remove unwanted formatting</li><li>Trim extra spaces</li><li>Add hashtags</li><li>Format line breaks</li><li>Enforce character limits</li><li>Add emojis if needed</li></ul><h4>Step 4: Queue the Post in Buffer</h4><p>Finally, the cleaned content gets pushed into:</p><h4>Buffer → Add to Queue</h4><p>Buffer automatically schedules the post based on your predefined posting slots.</p><p>That means:</p><ul><li>No manual publishing</li><li>No logging into multiple platforms</li><li>Consistent distribution</li></ul><p>Your content pipeline now runs completely on autopilot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YBY4eJz06ZAWFXZiiB4oGA.png" /><figcaption>Zapier + Gemini + Buffer</figcaption></figure><h4>Why This Workflow Is Powerful</h4><p>This setup solves a surprisingly common bottleneck:</p><blockquote><em>Content consistency.</em></blockquote><p>Instead of relying on motivation every day, you rely on systems.</p><p>Benefits:</p><ul><li>Saves hours every week</li><li>Maintains posting consistency</li><li>Reduces creative fatigue</li><li>Scales personal branding</li><li>Creates a repeatable content engine</li></ul><h4>Improvements You Can Add</h4><p>Once the base workflow works, you can make it much smarter.</p><h4>Add Trending Topics</h4><p>Pull trending news via RSS or APIs before generating posts.</p><h4>Multi-Platform Variants</h4><p>Generate separate versions for:</p><ul><li>LinkedIn</li><li>X/Twitter</li><li>Threads</li></ul><h4>AI Image Generation</h4><p>Use AI-generated visuals alongside text posts.</p><h4>Approval Workflow</h4><p>Send drafts to Slack before publishing.</p><h4>Analytics Loop</h4><p>Feed top-performing posts back into the prompt system.</p><h4>Final Thoughts</h4><p>AI automation becomes truly valuable when it removes repetitive creative work.<br>This workflow is simple, practical, and surprisingly effective for maintaining a consistent online presence.</p><p>The best part?<br>Once it’s set up, the system works quietly in the background while you focus on building.</p><h4>Author</h4><p><strong>Mr. Ritik Yadav</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d538839837b9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Handling Category Redirect Conflicts in SFCC (PLP/Search Issue)]]></title>
            <link>https://mr-ritikyadav.medium.com/handling-category-redirect-conflicts-in-sfcc-plp-search-issue-52f2109268d6?source=rss-41526317c618------2</link>
            <guid isPermaLink="false">https://medium.com/p/52f2109268d6</guid>
            <category><![CDATA[sfcc]]></category>
            <category><![CDATA[sfra]]></category>
            <category><![CDATA[category]]></category>
            <category><![CDATA[salesforce-commerce-cloud]]></category>
            <category><![CDATA[ecommerce]]></category>
            <dc:creator><![CDATA[Mr. Ritik Yadav]]></dc:creator>
            <pubDate>Fri, 01 May 2026 11:31:01 GMT</pubDate>
            <atom:updated>2026-05-01T11:31:01.625Z</atom:updated>
            <content:encoded><![CDATA[<p>In <strong>Salesforce Commerce Cloud (SFCC)</strong>, managing category URLs and redirects can sometimes lead to conflicts, especially when dealing with search and PLP behavior.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n1Mz5HiPLCbm7haDYvMYmw.png" /><figcaption>Handling Category Redirect Conflicts in SFCC (PLP/Search Issue)</figcaption></figure><p>Let’s walk through a common scenario and how to handle it properly.</p><h4>🔍 The Problem</h4><p>Suppose you have a category:</p><p><strong>Category ID:</strong> vs</p><p>And the requirement is:<br> Redirect /vs → Home-Show</p><h4>What happens if you add a direct URL rule?</h4><p>If you create a rule like:</p><pre>/vs → Home-Show</pre><p>It may <strong>not work as expected</strong> because:</p><ul><li>/vs is already a <strong>valid category URL</strong></li><li>SFCC prioritizes:</li><li>Category routing</li><li>Search refinement URLs</li></ul><p>This creates a <strong>conflict with search and category resolution</strong></p><h4>Why this conflict occurs</h4><ul><li>Category URLs are <strong>system-generated and high priority</strong></li><li>Search/navigation may still try to resolve /vs as:</li><li>A category page</li><li>A refinement URL</li></ul><p>So your redirect gets overridden or ignored.</p><h4>Recommended Solution</h4><p>Instead of forcing a redirect directly, use <strong>category-level configuration with </strong><strong>pageURL override</strong>.</p><h4>Step 1: Set pageURL on Category</h4><ul><li>Go to category: vs</li><li>Assign a custom attribute:</li></ul><pre>pageURL = &lt;xyz&gt; name</pre><h4>Step 2: Enable URL Rule Option</h4><p>Navigate to:</p><p><strong>Merchant Tools → SEO → URL Rules</strong></p><p>Enable:</p><p><strong>Enable Override with ‘pageURL’ Category Attribute (if set)</strong></p><h4>Step 3: Verify Supporting Settings</h4><p>Also ensure the following options are reviewed:</p><ul><li><strong>Generate URL Mappings for Offline Categories</strong></li><li><strong>Enable Category Search Refinement URLs</strong></li></ul><p>These help ensure:</p><ul><li>Proper URL resolution</li><li>No unexpected fallback to category/search behavior</li></ul><h4>This avoids conflict with:</h4><ul><li>Search</li><li>Category routing</li><li>SEO rules</li></ul><h4>Key Takeaways</h4><ul><li>Avoid direct redirect rules for active category URLs</li><li>Use pageURL attribute for controlled overrides</li><li>Enable URL Rule override setting</li><li>Always consider search/refinement behavior</li></ul><h4>Author</h4><p><strong>Mr. Ritik Yadav</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52f2109268d6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>