Walmart Scintilla new templates and removed their category buttons from homepage.

This commit is contained in:
Norm Rasmussen
2025-07-22 14:15:20 -04:00
parent 3c137548f9
commit 0e039e4462
170 changed files with 824 additions and 7811 deletions

View File

@ -60,7 +60,8 @@ Basic Sandbox Group UUID = 9f5c51a3-8e02-4b81-9e48-7ec3adff7c70
<div class="header-dropdown-container np-hidden-mobile">
<div class="dropdown-arrow"></div>
<div class="header-dropdown">
<a href="https://www.scintilla.com/apps">Scintilla</a>
<a href="https://learn.walmartdataventures.com/app">Home</a>
<a href="https://www.scintilla.com/apps">Scintilla Platform</a>
<a href="https://www.scintilla.com/shopperbehavior">Shopper Behavior</a>
<a href="https://www.scintilla.com/customerperception">Customer Perception</a>
<a href="https://www.scintilla.com/reportbuilder">Report Builder</a>
@ -103,13 +104,14 @@ Basic Sandbox Group UUID = 9f5c51a3-8e02-4b81-9e48-7ec3adff7c70
</div>
{% if current_person.signed_in? %}
{% if features.commerce? %}
<a class="np-hidden-mobile np-header-button np-header-button-cart" href="{% route cart %}">
<i class="np-header-button-icon far fa-shopping-cart"></i>
{% t.cart %}
{% commerce_cart_badge %}
</a>
{% if basic_3p_user %}
{% if features.commerce? %}
<a class="np-hidden-mobile np-header-button np-header-button-cart" href="{% route cart %}">
<i class="np-header-button-icon far fa-shopping-cart"></i>
{% t.cart %}
{% commerce_cart_badge %}
</a>
{% endif %}
{% endif %}
{% unless basic_3p_user %}
<div class="np-hidden-mobile np-header-search np-header-search-expanded">
@ -154,6 +156,10 @@ Basic Sandbox Group UUID = 9f5c51a3-8e02-4b81-9e48-7ec3adff7c70
</div>
<nav class="np-header-avatar-tooltip-navigation">
<a class="np-header-avatar-tooltip-navigation-link" href="https://www.scintilla.com/profile">Profile</a>
{% if basic_3p_user %}
<a class="np-header-avatar-tooltip-navigation-link" href="/app/order_history">Order History</a>
{% endif %}
<a class="np-header-avatar-tooltip-navigation-link" href="https://www.scintilla.com/admin">Admin</a>
<a class="np-header-avatar-tooltip-navigation-link" href="https://www.scintilla.com/support">Support</a>
<a
@ -229,10 +235,46 @@ Basic Sandbox Group UUID = 9f5c51a3-8e02-4b81-9e48-7ec3adff7c70
</div>
{% include "messages" %}
<script>
$(document).ready(function(){
const observer = new MutationObserver(() => {
console.log("callback that runs when observer is triggered");
catbadge = document.querySelector('[data-test="cart-badge"]');
cartdiv = document.querySelector('.np-header-button-cart');
if(catbadge)
{
cartdiv.style.display='flex'
}
else
{
cartdiv.style.display='none'
}
});
// call `observe()`, passing it the element to observe, and the options object
if (document.querySelector(".commerce_cart_badge_root"))
{
observer.observe(document.querySelector(".commerce_cart_badge_root"), {
subtree: true,
childList: true,
});
}
})
</script>
<style>
.np-header-button-cart
{
display: none;
}
/* below is for Cart Button */
.np-header-button {
color: #333
}
.np-header-content {
max-width:1920px;