Skip to content

Instantly share code, notes, and snippets.

View fabiensebban's full-sized avatar

Fabien Sebban fabiensebban

View GitHub Profile
@fabiensebban
fabiensebban / footer.liquid
Created June 3, 2025 16:52
Wishlist Power on Impact - header icon with count bubble
@fabiensebban
fabiensebban / move-and-style-wishlist-button-in-product-card.js
Created July 11, 2025 14:05
Move and style wishlist button in product card
// Note : this works great on Impact
function oooWishlistButtonMoveAndStyle(target) {
let wishlistButtonElement = document.querySelector("ooo-wl-access-button");
let variantPicker = document.querySelector(target);
if (wishlistButtonElement && variantPicker) {
let wishlistButtonElementDuplicate = wishlistButtonElement.cloneNode(true);
wishlistButtonElement.style.display = 'none';
function applyCSS() {
const wishlistButtons = document.querySelectorAll('ooo-wl-product-card-button');
const cssStyles = `
svg {
fill: var(--ooo-wl-product-card-button-icon-color, #000);
}
`;
if (wishlistButtons) {
// Create style element
# This code can be used to decode the session token coming from the
# Customer UI extension: https://shopify.dev/docs/api/customer-account-ui-extensions/2024-10/apis/session-token
require 'jwt'
require 'json'
# Replace with your app's client secret from the Partner Dashboard
SHOPIFY_CLIENT_SECRET = "XXX"
# Token present in the Authorization header of the request