$product = {"id":7415892738147,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人2-塗鴉藝術","handle":"iphone-xs-max-mod-nx-printable-pb39","description":null,"published_at":"2024-06-11T16:47:14+08:00","created_at":"2024-05-06T12:19:45+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 XS Max","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":41915263418467,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB39","requires_shipping":true,"taxable":true,"featured_image":{"id":31490674786403,"product_id":7415892738147,"position":7,"created_at":"2024-05-06T12:20:02+08:00","updated_at":"2024-05-06T12:20:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb524e7b569b283b44a0a111f8d90f1a5952dc81_7516995b-144a-4124-ab48-853b50fe7ed8.webp?v=1714969202","variant_ids":[41915263418467]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人2-塗鴉藝術 - 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":"NPB0108624-PB39","featured_media":{"alt":null,"id":23896081530979,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb524e7b569b283b44a0a111f8d90f1a5952dc81_7516995b-144a-4124-ab48-853b50fe7ed8.webp?v=1714969202"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f10ea3a08365015bb4b5972cc587ef49b874115_0e10613c-b884-434b-ab8c-362056c69f0d.webp?v=1714969188","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b30f05697f233378c0b860bf809e3f2898f129e7_69634b3a-8a53-4b38-8a34-a7f3741bbe1e.webp?v=1714969190","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a31d1e5204900146d5bf0f5e8bd5232fe022c1fa_1cb6435f-aca2-4409-b9da-3f30eea392b7.webp?v=1714969192","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64ba8dff8dd50400093e21fbc1c36e279a0d0f46_5c741875-6a61-4a82-908a-4326d742b7f8.webp?v=1714969195","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ead064b5afb0b24163e7076cde51c4a61a9e7fb_0b11a2f5-760a-42e9-868b-3189d8a1522c.webp?v=1714969197","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0633d8d4e4eee67d40646a428e96dea07d6c9709_b8097de7-fdfe-4840-b2a5-9973963c899a.webp?v=1714969200","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb524e7b569b283b44a0a111f8d90f1a5952dc81_7516995b-144a-4124-ab48-853b50fe7ed8.webp?v=1714969202","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b29f3bdef21ee282d7919508b93bd7ae151e7028_f36a4d5a-7c8b-4cfe-b44a-5021b6358dbb.webp?v=1714969206","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0e1e850fe5913ae532aa77262cdc9eed2283212_a0b1654c-49e4-4b6c-bc04-2a9ccfc597d9.webp?v=1714969208","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fba9fc5675aac572382ba91ae89e3cbe31ecf05_fd34dd5f-4f70-4616-95d2-96be252af4df.webp?v=1714969211"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f10ea3a08365015bb4b5972cc587ef49b874115_0e10613c-b884-434b-ab8c-362056c69f0d.webp?v=1714969188","options":["color"],"media":[{"alt":null,"id":23896078581859,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f10ea3a08365015bb4b5972cc587ef49b874115_0e10613c-b884-434b-ab8c-362056c69f0d.webp?v=1714969188"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f10ea3a08365015bb4b5972cc587ef49b874115_0e10613c-b884-434b-ab8c-362056c69f0d.webp?v=1714969188","width":2000},{"alt":null,"id":23896079204451,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b30f05697f233378c0b860bf809e3f2898f129e7_69634b3a-8a53-4b38-8a34-a7f3741bbe1e.webp?v=1714969190"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b30f05697f233378c0b860bf809e3f2898f129e7_69634b3a-8a53-4b38-8a34-a7f3741bbe1e.webp?v=1714969190","width":2000},{"alt":null,"id":23896079827043,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a31d1e5204900146d5bf0f5e8bd5232fe022c1fa_1cb6435f-aca2-4409-b9da-3f30eea392b7.webp?v=1714969192"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a31d1e5204900146d5bf0f5e8bd5232fe022c1fa_1cb6435f-aca2-4409-b9da-3f30eea392b7.webp?v=1714969192","width":2000},{"alt":null,"id":23896080121955,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64ba8dff8dd50400093e21fbc1c36e279a0d0f46_5c741875-6a61-4a82-908a-4326d742b7f8.webp?v=1714969195"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64ba8dff8dd50400093e21fbc1c36e279a0d0f46_5c741875-6a61-4a82-908a-4326d742b7f8.webp?v=1714969195","width":2000},{"alt":null,"id":23896080613475,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ead064b5afb0b24163e7076cde51c4a61a9e7fb_0b11a2f5-760a-42e9-868b-3189d8a1522c.webp?v=1714969197"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ead064b5afb0b24163e7076cde51c4a61a9e7fb_0b11a2f5-760a-42e9-868b-3189d8a1522c.webp?v=1714969197","width":2000},{"alt":null,"id":23896081039459,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0633d8d4e4eee67d40646a428e96dea07d6c9709_b8097de7-fdfe-4840-b2a5-9973963c899a.webp?v=1714969200"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0633d8d4e4eee67d40646a428e96dea07d6c9709_b8097de7-fdfe-4840-b2a5-9973963c899a.webp?v=1714969200","width":2000},{"alt":null,"id":23896081530979,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb524e7b569b283b44a0a111f8d90f1a5952dc81_7516995b-144a-4124-ab48-853b50fe7ed8.webp?v=1714969202"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb524e7b569b283b44a0a111f8d90f1a5952dc81_7516995b-144a-4124-ab48-853b50fe7ed8.webp?v=1714969202","width":2000},{"alt":null,"id":23896082088035,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b29f3bdef21ee282d7919508b93bd7ae151e7028_f36a4d5a-7c8b-4cfe-b44a-5021b6358dbb.webp?v=1714969206"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b29f3bdef21ee282d7919508b93bd7ae151e7028_f36a4d5a-7c8b-4cfe-b44a-5021b6358dbb.webp?v=1714969206","width":2000},{"alt":null,"id":23896082546787,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0e1e850fe5913ae532aa77262cdc9eed2283212_a0b1654c-49e4-4b6c-bc04-2a9ccfc597d9.webp?v=1714969208"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0e1e850fe5913ae532aa77262cdc9eed2283212_a0b1654c-49e4-4b6c-bc04-2a9ccfc597d9.webp?v=1714969208","width":2000},{"alt":null,"id":23896082940003,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fba9fc5675aac572382ba91ae89e3cbe31ecf05_fd34dd5f-4f70-4616-95d2-96be252af4df.webp?v=1714969211"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fba9fc5675aac572382ba91ae89e3cbe31ecf05_fd34dd5f-4f70-4616-95d2-96be252af4df.webp?v=1714969211","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41915263418467,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB39","requires_shipping":true,"taxable":true,"featured_image":{"id":31490674786403,"product_id":7415892738147,"position":7,"created_at":"2024-05-06T12:20:02+08:00","updated_at":"2024-05-06T12:20:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb524e7b569b283b44a0a111f8d90f1a5952dc81_7516995b-144a-4124-ab48-853b50fe7ed8.webp?v=1714969202","variant_ids":[41915263418467]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人2-塗鴉藝術 - 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":"NPB0108624-PB39","featured_media":{"alt":null,"id":23896081530979,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb524e7b569b283b44a0a111f8d90f1a5952dc81_7516995b-144a-4124-ab48-853b50fe7ed8.webp?v=1714969202"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41915263418467,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB39","requires_shipping":true,"taxable":true,"featured_image":{"id":31490674786403,"product_id":7415892738147,"position":7,"created_at":"2024-05-06T12:20:02+08:00","updated_at":"2024-05-06T12:20:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb524e7b569b283b44a0a111f8d90f1a5952dc81_7516995b-144a-4124-ab48-853b50fe7ed8.webp?v=1714969202","variant_ids":[41915263418467]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人2-塗鴉藝術 - 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":"NPB0108624-PB39","featured_media":{"alt":null,"id":23896081530979,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb524e7b569b283b44a0a111f8d90f1a5952dc81_7516995b-144a-4124-ab48-853b50fe7ed8.webp?v=1714969202"}},"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: "停產" }