$product = {"id":7416338481251,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 小圖款-凱羅忍","handle":"iphone-8-mod-nx-printable-pc06","description":null,"published_at":"2024-06-11T16:56:18+08:00","created_at":"2024-05-06T14:37:28+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 8","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","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":41918655070307,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PC06","requires_shipping":true,"taxable":true,"featured_image":{"id":31491882909795,"product_id":7416338481251,"position":4,"created_at":"2024-05-06T14:37:37+08:00","updated_at":"2024-05-06T14:37:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/073c60b772323a4d6b046c101ab35acaf977565c_b7cff262-f270-4b9f-8b8e-59181280f134.webp?v=1714977457","variant_ids":[41918655070307]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 小圖款-凱羅忍 - 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":"NPB0105424-PC06","featured_media":{"alt":null,"id":23897295749219,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/073c60b772323a4d6b046c101ab35acaf977565c_b7cff262-f270-4b9f-8b8e-59181280f134.webp?v=1714977457"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7249eadb93f35ec05b6258d550acc54ec86ec054_a7e4d3dd-a0d3-45d2-9922-f34e3e7ee4b4.webp?v=1714977450","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5ca5127bae6a368a99cc89cf69cbaca80916e1d_891c628d-b89e-4ea3-97f0-29c078e8dcdb.webp?v=1714977453","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2db8c901d1ccc6baf37afea5695193c5b001ab2_e39e2ef1-b8a9-4b55-9ad1-845c2f27a144.webp?v=1714977455","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/073c60b772323a4d6b046c101ab35acaf977565c_b7cff262-f270-4b9f-8b8e-59181280f134.webp?v=1714977457","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14f60372c1d8db70cac5fd4f1428bb516c3502b0_12d26d72-206c-42f9-b80f-7f1870b4654c.webp?v=1714977459","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38606fe928e015fcd7ff19b18277a644cd022771_d5734f3b-a273-432c-b59c-7ad7044891bf.webp?v=1714977462","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0813e376761f7b7fad17ad9dbf15600bf983ae72_1760484f-da6e-4b9b-8531-735bcb006485.webp?v=1714977464","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d3dae65e02dd8653a3cfa375533711f0d1efaf2_43b9b6d3-10ff-4d30-8d75-c330e396445b.webp?v=1714977466","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee8008edf83e5ee8fa6d9c443a73c9e303897449_8d2cf7ca-2c72-481f-a0c5-6bc8b14c1c77.webp?v=1714977469","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c0a6113723bef1eaa2a2cd9e538254d15fcf6ee_beb0e0f8-b8ee-4564-b25f-76b45001d514.webp?v=1714977471"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7249eadb93f35ec05b6258d550acc54ec86ec054_a7e4d3dd-a0d3-45d2-9922-f34e3e7ee4b4.webp?v=1714977450","options":["color"],"media":[{"alt":null,"id":23897294569571,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7249eadb93f35ec05b6258d550acc54ec86ec054_a7e4d3dd-a0d3-45d2-9922-f34e3e7ee4b4.webp?v=1714977450"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7249eadb93f35ec05b6258d550acc54ec86ec054_a7e4d3dd-a0d3-45d2-9922-f34e3e7ee4b4.webp?v=1714977450","width":2000},{"alt":null,"id":23897294897251,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5ca5127bae6a368a99cc89cf69cbaca80916e1d_891c628d-b89e-4ea3-97f0-29c078e8dcdb.webp?v=1714977453"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5ca5127bae6a368a99cc89cf69cbaca80916e1d_891c628d-b89e-4ea3-97f0-29c078e8dcdb.webp?v=1714977453","width":2000},{"alt":null,"id":23897295454307,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2db8c901d1ccc6baf37afea5695193c5b001ab2_e39e2ef1-b8a9-4b55-9ad1-845c2f27a144.webp?v=1714977455"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2db8c901d1ccc6baf37afea5695193c5b001ab2_e39e2ef1-b8a9-4b55-9ad1-845c2f27a144.webp?v=1714977455","width":2000},{"alt":null,"id":23897295749219,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/073c60b772323a4d6b046c101ab35acaf977565c_b7cff262-f270-4b9f-8b8e-59181280f134.webp?v=1714977457"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/073c60b772323a4d6b046c101ab35acaf977565c_b7cff262-f270-4b9f-8b8e-59181280f134.webp?v=1714977457","width":2000},{"alt":null,"id":23897296306275,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14f60372c1d8db70cac5fd4f1428bb516c3502b0_12d26d72-206c-42f9-b80f-7f1870b4654c.webp?v=1714977459"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14f60372c1d8db70cac5fd4f1428bb516c3502b0_12d26d72-206c-42f9-b80f-7f1870b4654c.webp?v=1714977459","width":2000},{"alt":null,"id":23897296633955,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38606fe928e015fcd7ff19b18277a644cd022771_d5734f3b-a273-432c-b59c-7ad7044891bf.webp?v=1714977462"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38606fe928e015fcd7ff19b18277a644cd022771_d5734f3b-a273-432c-b59c-7ad7044891bf.webp?v=1714977462","width":2000},{"alt":null,"id":23897297158243,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0813e376761f7b7fad17ad9dbf15600bf983ae72_1760484f-da6e-4b9b-8531-735bcb006485.webp?v=1714977464"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0813e376761f7b7fad17ad9dbf15600bf983ae72_1760484f-da6e-4b9b-8531-735bcb006485.webp?v=1714977464","width":2000},{"alt":null,"id":23897297584227,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d3dae65e02dd8653a3cfa375533711f0d1efaf2_43b9b6d3-10ff-4d30-8d75-c330e396445b.webp?v=1714977466"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d3dae65e02dd8653a3cfa375533711f0d1efaf2_43b9b6d3-10ff-4d30-8d75-c330e396445b.webp?v=1714977466","width":2000},{"alt":null,"id":23897298042979,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee8008edf83e5ee8fa6d9c443a73c9e303897449_8d2cf7ca-2c72-481f-a0c5-6bc8b14c1c77.webp?v=1714977469"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee8008edf83e5ee8fa6d9c443a73c9e303897449_8d2cf7ca-2c72-481f-a0c5-6bc8b14c1c77.webp?v=1714977469","width":2000},{"alt":null,"id":23897298567267,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c0a6113723bef1eaa2a2cd9e538254d15fcf6ee_beb0e0f8-b8ee-4564-b25f-76b45001d514.webp?v=1714977471"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c0a6113723bef1eaa2a2cd9e538254d15fcf6ee_beb0e0f8-b8ee-4564-b25f-76b45001d514.webp?v=1714977471","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918655070307,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PC06","requires_shipping":true,"taxable":true,"featured_image":{"id":31491882909795,"product_id":7416338481251,"position":4,"created_at":"2024-05-06T14:37:37+08:00","updated_at":"2024-05-06T14:37:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/073c60b772323a4d6b046c101ab35acaf977565c_b7cff262-f270-4b9f-8b8e-59181280f134.webp?v=1714977457","variant_ids":[41918655070307]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 小圖款-凱羅忍 - 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":"NPB0105424-PC06","featured_media":{"alt":null,"id":23897295749219,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/073c60b772323a4d6b046c101ab35acaf977565c_b7cff262-f270-4b9f-8b8e-59181280f134.webp?v=1714977457"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918655070307,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PC06","requires_shipping":true,"taxable":true,"featured_image":{"id":31491882909795,"product_id":7416338481251,"position":4,"created_at":"2024-05-06T14:37:37+08:00","updated_at":"2024-05-06T14:37:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/073c60b772323a4d6b046c101ab35acaf977565c_b7cff262-f270-4b9f-8b8e-59181280f134.webp?v=1714977457","variant_ids":[41918655070307]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 小圖款-凱羅忍 - 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":"NPB0105424-PC06","featured_media":{"alt":null,"id":23897295749219,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/073c60b772323a4d6b046c101ab35acaf977565c_b7cff262-f270-4b9f-8b8e-59181280f134.webp?v=1714977457"}},"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: "停產" }