$product = {"id":7369144893539,"title":"犀牛盾Mod NX手機殼 - iPhone 11 Pro Max - 【聯名設計款】 - Snoopy 史努比 - 愛心墨鏡","handle":"iphone-11-pro-max-mod-nx-printable-pl64","description":"","published_at":"2024-06-11T16:13:13+08:00","created_at":"2024-04-23T15:33:12+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Snoopy 史努比","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-snoopy","device-iPhone 11 Pro Max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-snoopy","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"available":true,"price_varies":false,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":41793003356259,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0114924-PL64","requires_shipping":true,"taxable":true,"featured_image":{"id":31386907574371,"product_id":7369144893539,"position":8,"created_at":"2024-04-23T15:33:33+08:00","updated_at":"2025-01-22T15:01:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9973bd1734c5bfdb34bbfba6bbc1ef99bbfebc22_117c3f48-6572-48a1-a5ff-240f5cb1adf2.webp?v=1737529270","variant_ids":[41793003356259]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 11 Pro Max - 【聯名設計款】 - Snoopy 史努比 - 愛心墨鏡 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0114924-PL64","featured_media":{"alt":null,"id":23789145653347,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9973bd1734c5bfdb34bbfba6bbc1ef99bbfebc22_117c3f48-6572-48a1-a5ff-240f5cb1adf2.webp?v=1737529270"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e20fd386d7ae83b878a99b232f6a65147bbcd8ef_3179af84-3000-4055-88e4-4abe5370cad5.webp?v=1737529269","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e263fbbe9884cf205c7640d17179a72a9f786dd9_065c779d-f478-41cc-bdc0-1938ef7bb1c0.webp?v=1737529269","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da8e586fce3a56dda7d67a71b4b75c2a89b4d483_770b3762-8e8a-469d-8036-50540b830fd3.webp?v=1737529269","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1e67e281780350ba463eedc6215b0792dedb979_dc365b2c-8e67-476f-9f25-c8bee4bbacd8.webp?v=1737529269","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f752f8d56e2616214853bfe23856a8b0054d25c_4af07460-0ead-4a80-9eb2-8c1c6e9765b2.webp?v=1737529269","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/297197dea0280af6223fb7167b3697236bec92cf_19b991fa-cd55-4b35-9acf-ad7a7b156747.webp?v=1737529270","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1db6d8afd2ac913cb4d6943ec06373b3a949e680_d2cdd591-3057-42ca-913b-1767b02ec0d7.webp?v=1737529270","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9973bd1734c5bfdb34bbfba6bbc1ef99bbfebc22_117c3f48-6572-48a1-a5ff-240f5cb1adf2.webp?v=1737529270","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68c6edd9bc40a53c163b375913bf069b5588804f_709c8fd7-f174-4144-98fc-381cf4b52516.webp?v=1737529270","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8aec5b7a6fa3bdd3fcb1121bfddc3345e0f306fa_594144c8-2afb-4971-92e0-1c7d7a65cd03.webp?v=1737529270"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e20fd386d7ae83b878a99b232f6a65147bbcd8ef_3179af84-3000-4055-88e4-4abe5370cad5.webp?v=1737529269","options":["color"],"media":[{"alt":null,"id":23789140476003,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e20fd386d7ae83b878a99b232f6a65147bbcd8ef_3179af84-3000-4055-88e4-4abe5370cad5.webp?v=1737529269"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e20fd386d7ae83b878a99b232f6a65147bbcd8ef_3179af84-3000-4055-88e4-4abe5370cad5.webp?v=1737529269","width":2000},{"alt":null,"id":23789141196899,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e263fbbe9884cf205c7640d17179a72a9f786dd9_065c779d-f478-41cc-bdc0-1938ef7bb1c0.webp?v=1737529269"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e263fbbe9884cf205c7640d17179a72a9f786dd9_065c779d-f478-41cc-bdc0-1938ef7bb1c0.webp?v=1737529269","width":2000},{"alt":null,"id":23789141885027,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da8e586fce3a56dda7d67a71b4b75c2a89b4d483_770b3762-8e8a-469d-8036-50540b830fd3.webp?v=1737529269"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da8e586fce3a56dda7d67a71b4b75c2a89b4d483_770b3762-8e8a-469d-8036-50540b830fd3.webp?v=1737529269","width":2000},{"alt":null,"id":23789142638691,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1e67e281780350ba463eedc6215b0792dedb979_dc365b2c-8e67-476f-9f25-c8bee4bbacd8.webp?v=1737529269"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1e67e281780350ba463eedc6215b0792dedb979_dc365b2c-8e67-476f-9f25-c8bee4bbacd8.webp?v=1737529269","width":2000},{"alt":null,"id":23789143228515,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f752f8d56e2616214853bfe23856a8b0054d25c_4af07460-0ead-4a80-9eb2-8c1c6e9765b2.webp?v=1737529269"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f752f8d56e2616214853bfe23856a8b0054d25c_4af07460-0ead-4a80-9eb2-8c1c6e9765b2.webp?v=1737529269","width":2000},{"alt":null,"id":23789144506467,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/297197dea0280af6223fb7167b3697236bec92cf_19b991fa-cd55-4b35-9acf-ad7a7b156747.webp?v=1737529270"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/297197dea0280af6223fb7167b3697236bec92cf_19b991fa-cd55-4b35-9acf-ad7a7b156747.webp?v=1737529270","width":2000},{"alt":null,"id":23789145063523,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1db6d8afd2ac913cb4d6943ec06373b3a949e680_d2cdd591-3057-42ca-913b-1767b02ec0d7.webp?v=1737529270"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1db6d8afd2ac913cb4d6943ec06373b3a949e680_d2cdd591-3057-42ca-913b-1767b02ec0d7.webp?v=1737529270","width":2000},{"alt":null,"id":23789145653347,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9973bd1734c5bfdb34bbfba6bbc1ef99bbfebc22_117c3f48-6572-48a1-a5ff-240f5cb1adf2.webp?v=1737529270"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9973bd1734c5bfdb34bbfba6bbc1ef99bbfebc22_117c3f48-6572-48a1-a5ff-240f5cb1adf2.webp?v=1737529270","width":2000},{"alt":null,"id":25221969543267,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68c6edd9bc40a53c163b375913bf069b5588804f_709c8fd7-f174-4144-98fc-381cf4b52516.webp?v=1737529270"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68c6edd9bc40a53c163b375913bf069b5588804f_709c8fd7-f174-4144-98fc-381cf4b52516.webp?v=1737529270","width":2000},{"alt":null,"id":23789146210403,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8aec5b7a6fa3bdd3fcb1121bfddc3345e0f306fa_594144c8-2afb-4971-92e0-1c7d7a65cd03.webp?v=1737529270"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8aec5b7a6fa3bdd3fcb1121bfddc3345e0f306fa_594144c8-2afb-4971-92e0-1c7d7a65cd03.webp?v=1737529270","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":""}; $isMerge = null; $variants = [{"id":41793003356259,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0114924-PL64","requires_shipping":true,"taxable":true,"featured_image":{"id":31386907574371,"product_id":7369144893539,"position":8,"created_at":"2024-04-23T15:33:33+08:00","updated_at":"2025-01-22T15:01:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9973bd1734c5bfdb34bbfba6bbc1ef99bbfebc22_117c3f48-6572-48a1-a5ff-240f5cb1adf2.webp?v=1737529270","variant_ids":[41793003356259]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 11 Pro Max - 【聯名設計款】 - Snoopy 史努比 - 愛心墨鏡 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0114924-PL64","featured_media":{"alt":null,"id":23789145653347,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9973bd1734c5bfdb34bbfba6bbc1ef99bbfebc22_117c3f48-6572-48a1-a5ff-240f5cb1adf2.webp?v=1737529270"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41793003356259,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0114924-PL64","requires_shipping":true,"taxable":true,"featured_image":{"id":31386907574371,"product_id":7369144893539,"position":8,"created_at":"2024-04-23T15:33:33+08:00","updated_at":"2025-01-22T15:01:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9973bd1734c5bfdb34bbfba6bbc1ef99bbfebc22_117c3f48-6572-48a1-a5ff-240f5cb1adf2.webp?v=1737529270","variant_ids":[41793003356259]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 11 Pro Max - 【聯名設計款】 - Snoopy 史努比 - 愛心墨鏡 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0114924-PL64","featured_media":{"alt":null,"id":23789145653347,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9973bd1734c5bfdb34bbfba6bbc1ef99bbfebc22_117c3f48-6572-48a1-a5ff-240f5cb1adf2.webp?v=1737529270"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $brand_handle = null; $type = ""; var sellingStatus // 只有設計款(SKU 含 '-')才需要合圖 if ($isMerge && $defaultVariant.sku.includes('-')) { $(document).ready(function() { var productImg = $product.images[0]; var bumperImg = window.getProductImageUrl($defaultVariant.sku.split('-')[0]); var layers = ($type === 'mod-nx-backplate' || $type === 'mod-backplate') ? [productImg, bumperImg] : [bumperImg, productImg]; window.mergeProductImages(layers).then(function (mergedImg) { $('.merged-img').attr('src', mergedImg); }); }); }; var sellingStatusData window.fetchSellingStatus().then(data => { try { sellingStatusData = data; } catch (error) { sellingStatusData = null console.error('Unable to parse selling status', error) } $(document).ready(function() { handleSellingStatus($defaultVariant.sku); }); }) function handleSellingStatus(currentSku) { if (!sellingStatusData) { console.error('No selling status available!') return } const sellingStatusElement = document.getElementById('selling-status') const addToCartButton = document.getElementById('AddToCart-product-template') const currentProductSku = currentSku.replace(/-(.*)$/, '-') if ($variants) { const flattenedSellingStatus = [...sellingStatusData.pending, ...sellingStatusData.preorder] const matchSellingStatusProduct = flattenedSellingStatus.filter(product => currentProductSku === product.sku) if (matchSellingStatusProduct.length > 0) { const isProductPending = matchSellingStatusProduct[0].status === 'pending' const matchDate = matchSellingStatusProduct[0].date sellingStatus = isProductPending ? "缺貨中" : "預購完成出貨日:" + matchDate sellingStatusElement.textContent = sellingStatus if (sellingStatus.includes("缺貨中")){ addToCartButton.disabled ='true'; addToCartButton.textContent = "缺貨中無法加入購物車" } else { addToCartButton.textContent = "加到購物車" } } else { sellingStatusElement.textContent = '' addToCartButton.textContent = "加到購物車" }; }; }; document.addEventListener('DOMContentLoaded', function () { var currentVariantSelect = document.getElementById('SingleOptionSelector-0') currentVariantSelect.addEventListener('change', function() { var currentSku = $('#current_sku').text() var skuElement = document.getElementById('current-sku') skuElement.textContent = currentSku handleSellingStatus(currentSku) }); });
// Override default values of shop.strings for each template. // Alternate product templates can change values of // add to cart button, sold out, and unavailable states here. theme.productStrings = { addToCart: "加到購物車", soldOut: "售完", unavailable: "停產" }