Skip to content

Instantly share code, notes, and snippets.

@tvlgiao
tvlgiao / nootropicsdepot-scripts.html
Last active August 14, 2023 07:23
nootropicsdepot-scripts
<script>
window.PapathemesConditionalShippingPaymentMethodsSettings = {
cartId: '{{cart_id}}',
storeHash: '{{settings.store_hash}}',
graphQLToken: '{{settings.storefront_api.token}}',
svgIcons: {
visa: '<svg height="100" viewBox="0 0 148 100" width="148" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M148 84c0 6.6-5.55 12-12 12H12C5.55 96 0 90.6 0 84V12C0 5.4 5.55 0 12 0h124c6.45 0 12 5.4 12 12v72z" fill="#F3F4F4"></path><path d="M0 24V12C0 5.4 5.74 0 12 0h124c6.26 0 12 5.4 12 12v12" fill="#01579F"></path><path d="M148 76v12c0 8.667-5.74 12-12 12H12c-6.26 0-12-3.333-12-12V76" fill="#FAA41D"></path><path d="M55.01 65.267l4.72-29.186h7.546l-4.72 29.19H55.01M89.913 36.8c-1.49-.59-3.85-1.242-6.77-1.242-7.452 0-12.7 3.974-12.73 9.656-.063 4.19 3.756 6.52 6.613 7.918 2.92 1.428 3.913 2.36 3.913 3.633-.04 1.957-2.36 2.857-4.54 2.857-3.014 0-4.628-.465-7.08-1.552l-.996-.466-1.055 6.55c1.77.808 5.03 1.52 8.415 1.553 7.92 0 13.075-3.9
@tvlgiao
tvlgiao / mqpo-footer.html
Last active January 11, 2023 04:44
Markersupply MQPO script
@tvlgiao
tvlgiao / hero-carousel-mobile.html
Last active December 16, 2022 04:40
fordstl-customization
@tvlgiao
tvlgiao / eggcartonstore-customization.md
Last active November 30, 2022 07:04
eggcartonstore customization

Eggcartonstore Customization

Go to Storefront > Script Manager, click Create a Script, choose:

  • Location on page = Footer
  • Select pages where script will be added = All Pages
    • Script category = Essential
  • Script type = Script

Enter the script below to Scripts contents:

@tvlgiao
tvlgiao / defaultSettings.json
Last active November 4, 2022 03:59
My Visual Studio Code Extensions
{
// Enable / Disable the spell checker.
"cSpell.enabled": true,
// Specifies the style of the gravatar default (fallback) images
// - identicon: A geometric pattern
// - mp: A simple, cartoon-style silhouetted outline of a person (does not vary by email hash)
// - monsterid: A monster with different colors, faces, etc
// - retro: 8-bit arcade-style pixelated faces
// - robohash: A robot with different colors, faces, etc
@tvlgiao
tvlgiao / merge-config.js
Created May 7, 2021 09:10
BigCommerce merge config.json
const fs = require('fs');
const sourceConfig = require('./config-sunshine.json');
const targetConfig = require('./config.json');
const sourceVariation = sourceConfig.variations.filter(variation => variation.name == 'Yellow')[0];
const targetVariation = targetConfig.variations.filter(variation => variation.name == 'Yellow')[0];
Object.assign(targetVariation.settings, sourceVariation.settings);
@tvlgiao
tvlgiao / debug-ios-iphone-on-windows.md
Last active February 4, 2021 06:41
DEBUG IOS IPHONE ON WINDOWS
  1. Install Scoop: https://scoop.sh/

  2. Install ios-webkit-debug-proxy and libimobiledevice. On Windows you can use scoop:

scoop bucket add extras
scoop install ios-webkit-debug-proxy
  1. Install latest version of the adapter:
@tvlgiao
tvlgiao / kitchn-shop-script-manager-customization.html
Created February 2, 2021 14:03
kitchn.shop script manager customization
<script type="text/plain" id="theme_custom_css_9bff7ff4939cab08">
body[class*="papaSupermarket"] .productView-info-name {
margin-right: .375rem;
}
body.[class*="papaSupermarket"] .productView-info {
padding-top: .375rem;
}
body[class*="papaSupermarket"] .productView-info > :first-child,
body[class*="papaSupermarket"] .productView-info > :nth-child(2) {
margin-top: .375rem !important;
@tvlgiao
tvlgiao / pharmacy-reward-points-below-product-price.html
Last active February 2, 2021 07:50
pharmacy.nu Display Reward Points below Product Price on PDP
<script type="text/plain" id="custom_css_71651347e4777b82">
.productView-price._rewardsLoaded {
width: 100%;
}
.pharmacynu__rewards {
clear: both;
display: flex;
align-items: center;
font-size: 14px;
font-weight: bold;
@tvlgiao
tvlgiao / bohopink-footer-widget-content-expand-collapse.html
Last active February 2, 2021 14:20
bohopink footer widget content expand collapse