$product = {"id":7416381374563,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-線稿風格","handle":"iphone-8-mod-nx-printable-pb53","description":null,"published_at":"2024-06-11T16:57:31+08:00","created_at":"2024-05-06T14:45:55+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":41919122407523,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB53","requires_shipping":true,"taxable":true,"featured_image":{"id":31491989831779,"product_id":7416381374563,"position":7,"created_at":"2024-05-06T14:46:13+08:00","updated_at":"2024-05-06T14:46:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/145c4f2621289460ff5c1e0f8fbbd70e4add5ba9_06cf611c-a48f-4d77-aa4b-7d8a1dddab21.webp?v=1714977973","variant_ids":[41919122407523]},"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-PB53","featured_media":{"alt":null,"id":23897403326563,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/145c4f2621289460ff5c1e0f8fbbd70e4add5ba9_06cf611c-a48f-4d77-aa4b-7d8a1dddab21.webp?v=1714977973"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acd46c75e47d493b060b131edfe13fd5792bc28e_04cfd73f-e911-4ee4-805b-fe257e8f600a.webp?v=1714977959","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d36f2c935ba5fa21ea59f74c51383beac4b7742_ce947b8b-db53-4e50-b250-936f92428e74.webp?v=1714977962","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f1085f1d7ba4c5eb58b1d99749c728ea43ff8b8_201d245a-dab2-4533-94e7-bd3aea8354ce.webp?v=1714977964","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46cd4c0bd7c7bf30ef2b98cb87f31b4ca29c20b0_17ed9b4e-7012-4cb5-b556-edcdf4923e9e.webp?v=1714977966","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24f26671f44ee4f716373582927e04b7deef0ffa_92c72cf8-f855-4175-88f5-e4e3f1b85f0e.webp?v=1714977969","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4845842558f4fc92e974e3b52054f9ffcf8a6352_8319a66b-3331-4d04-8250-acee1511431b.webp?v=1714977971","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/145c4f2621289460ff5c1e0f8fbbd70e4add5ba9_06cf611c-a48f-4d77-aa4b-7d8a1dddab21.webp?v=1714977973","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/272d3c67de9d7faccbc30ba7e0d2524a3639d501_9aeb2272-51b3-497b-b493-008990513556.webp?v=1714977976","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/885be2e8e2eb1d2b984b09bec7dbe44020cdc7c4_4515588d-0daa-4f97-9db2-54636f6f1cd9.webp?v=1714977978","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c4a2864e49aa352a47c4e5fe2a0866bc1c4022a_12ffa32a-e1d2-4557-9521-d1d64697035d.webp?v=1714977981"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acd46c75e47d493b060b131edfe13fd5792bc28e_04cfd73f-e911-4ee4-805b-fe257e8f600a.webp?v=1714977959","options":["color"],"media":[{"alt":null,"id":23897399951459,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acd46c75e47d493b060b131edfe13fd5792bc28e_04cfd73f-e911-4ee4-805b-fe257e8f600a.webp?v=1714977959"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acd46c75e47d493b060b131edfe13fd5792bc28e_04cfd73f-e911-4ee4-805b-fe257e8f600a.webp?v=1714977959","width":2000},{"alt":null,"id":23897400705123,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d36f2c935ba5fa21ea59f74c51383beac4b7742_ce947b8b-db53-4e50-b250-936f92428e74.webp?v=1714977962"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d36f2c935ba5fa21ea59f74c51383beac4b7742_ce947b8b-db53-4e50-b250-936f92428e74.webp?v=1714977962","width":2000},{"alt":null,"id":23897401098339,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f1085f1d7ba4c5eb58b1d99749c728ea43ff8b8_201d245a-dab2-4533-94e7-bd3aea8354ce.webp?v=1714977964"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f1085f1d7ba4c5eb58b1d99749c728ea43ff8b8_201d245a-dab2-4533-94e7-bd3aea8354ce.webp?v=1714977964","width":2000},{"alt":null,"id":23897401589859,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46cd4c0bd7c7bf30ef2b98cb87f31b4ca29c20b0_17ed9b4e-7012-4cb5-b556-edcdf4923e9e.webp?v=1714977966"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46cd4c0bd7c7bf30ef2b98cb87f31b4ca29c20b0_17ed9b4e-7012-4cb5-b556-edcdf4923e9e.webp?v=1714977966","width":2000},{"alt":null,"id":23897401950307,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24f26671f44ee4f716373582927e04b7deef0ffa_92c72cf8-f855-4175-88f5-e4e3f1b85f0e.webp?v=1714977969"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24f26671f44ee4f716373582927e04b7deef0ffa_92c72cf8-f855-4175-88f5-e4e3f1b85f0e.webp?v=1714977969","width":2000},{"alt":null,"id":23897402572899,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4845842558f4fc92e974e3b52054f9ffcf8a6352_8319a66b-3331-4d04-8250-acee1511431b.webp?v=1714977971"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4845842558f4fc92e974e3b52054f9ffcf8a6352_8319a66b-3331-4d04-8250-acee1511431b.webp?v=1714977971","width":2000},{"alt":null,"id":23897403326563,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/145c4f2621289460ff5c1e0f8fbbd70e4add5ba9_06cf611c-a48f-4d77-aa4b-7d8a1dddab21.webp?v=1714977973"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/145c4f2621289460ff5c1e0f8fbbd70e4add5ba9_06cf611c-a48f-4d77-aa4b-7d8a1dddab21.webp?v=1714977973","width":2000},{"alt":null,"id":23897404014691,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/272d3c67de9d7faccbc30ba7e0d2524a3639d501_9aeb2272-51b3-497b-b493-008990513556.webp?v=1714977976"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/272d3c67de9d7faccbc30ba7e0d2524a3639d501_9aeb2272-51b3-497b-b493-008990513556.webp?v=1714977976","width":2000},{"alt":null,"id":23897404506211,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/885be2e8e2eb1d2b984b09bec7dbe44020cdc7c4_4515588d-0daa-4f97-9db2-54636f6f1cd9.webp?v=1714977978"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/885be2e8e2eb1d2b984b09bec7dbe44020cdc7c4_4515588d-0daa-4f97-9db2-54636f6f1cd9.webp?v=1714977978","width":2000},{"alt":null,"id":23897405096035,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c4a2864e49aa352a47c4e5fe2a0866bc1c4022a_12ffa32a-e1d2-4557-9521-d1d64697035d.webp?v=1714977981"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c4a2864e49aa352a47c4e5fe2a0866bc1c4022a_12ffa32a-e1d2-4557-9521-d1d64697035d.webp?v=1714977981","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41919122407523,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB53","requires_shipping":true,"taxable":true,"featured_image":{"id":31491989831779,"product_id":7416381374563,"position":7,"created_at":"2024-05-06T14:46:13+08:00","updated_at":"2024-05-06T14:46:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/145c4f2621289460ff5c1e0f8fbbd70e4add5ba9_06cf611c-a48f-4d77-aa4b-7d8a1dddab21.webp?v=1714977973","variant_ids":[41919122407523]},"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-PB53","featured_media":{"alt":null,"id":23897403326563,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/145c4f2621289460ff5c1e0f8fbbd70e4add5ba9_06cf611c-a48f-4d77-aa4b-7d8a1dddab21.webp?v=1714977973"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41919122407523,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB53","requires_shipping":true,"taxable":true,"featured_image":{"id":31491989831779,"product_id":7416381374563,"position":7,"created_at":"2024-05-06T14:46:13+08:00","updated_at":"2024-05-06T14:46:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/145c4f2621289460ff5c1e0f8fbbd70e4add5ba9_06cf611c-a48f-4d77-aa4b-7d8a1dddab21.webp?v=1714977973","variant_ids":[41919122407523]},"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-PB53","featured_media":{"alt":null,"id":23897403326563,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/145c4f2621289460ff5c1e0f8fbbd70e4add5ba9_06cf611c-a48f-4d77-aa4b-7d8a1dddab21.webp?v=1714977973"}},"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: "停產" }