$product = {"id":7407933948003,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - ATAT-日文字系列","handle":"iphone-14-plus-mod-nx-printable-pb66","description":null,"published_at":"2024-06-11T16:26:57+08:00","created_at":"2024-05-03T11:18:48+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 14 Plus","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":41880719687779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB66","requires_shipping":true,"taxable":true,"featured_image":{"id":31470738702435,"product_id":7407933948003,"position":8,"created_at":"2024-05-03T11:19:06+08:00","updated_at":"2024-05-03T11:19:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88ea980e5765f36ad5f796b42ffdbe69aaf21dd7_80d1acad-abfe-4999-97cc-2bde57a1269c.webp?v=1714706346","variant_ids":[41880719687779]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - ATAT-日文字系列 - 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":"NPB0126124-PB66","featured_media":{"alt":null,"id":23875643015267,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88ea980e5765f36ad5f796b42ffdbe69aaf21dd7_80d1acad-abfe-4999-97cc-2bde57a1269c.webp?v=1714706346"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c63bf0f006730da7e7226c3df7e04926144d14cd_59af3b17-4c5a-429a-8a58-677ccac5a475.webp?v=1714706330","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecddfc7ed0aaf7354ad5fe0f09efd4c554e37638_0e0cfdc7-27b0-424b-8698-67d906f12981.webp?v=1714706332","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3038dc1c0b4e715070164fbf5b11c24db86cfbe6_1fa243f9-4d86-4f7d-87a1-1f09fd7898e4.webp?v=1714706334","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/481ba9d0d3ae696a9e83c615d18d2c0854fb4a0f_e3ff31ef-6a3b-4dfb-a4e3-4d0c6e5af183.webp?v=1714706337","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba9d2400a2ad560211dbf04794858d416bb32964_5e77aa45-0edc-4b76-ba8d-af561f671f48.webp?v=1714706339","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83608bf427661ea65d329a02bf2c2c9865df5e57_1920d921-0459-4094-b795-b863d0602c0d.webp?v=1714706341","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8a3def3bb4762d1929a91eb03b5aae3ab177f52_28420551-0840-464d-b857-557d3623850d.webp?v=1714706344","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88ea980e5765f36ad5f796b42ffdbe69aaf21dd7_80d1acad-abfe-4999-97cc-2bde57a1269c.webp?v=1714706346","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dbc9947afc9c47a79e86d73eb0b0b11b6080482_6529fe36-181f-4bed-8591-6374b2cc64c6.webp?v=1714706348","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc1e15323ea716fda1463d197e07dbb5d4e1a9ae_a11e81e9-b065-41c1-87d5-0b1f734e09cd.webp?v=1714706351"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c63bf0f006730da7e7226c3df7e04926144d14cd_59af3b17-4c5a-429a-8a58-677ccac5a475.webp?v=1714706330","options":["color"],"media":[{"alt":null,"id":23875639246947,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c63bf0f006730da7e7226c3df7e04926144d14cd_59af3b17-4c5a-429a-8a58-677ccac5a475.webp?v=1714706330"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c63bf0f006730da7e7226c3df7e04926144d14cd_59af3b17-4c5a-429a-8a58-677ccac5a475.webp?v=1714706330","width":2000},{"alt":null,"id":23875639738467,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecddfc7ed0aaf7354ad5fe0f09efd4c554e37638_0e0cfdc7-27b0-424b-8698-67d906f12981.webp?v=1714706332"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ecddfc7ed0aaf7354ad5fe0f09efd4c554e37638_0e0cfdc7-27b0-424b-8698-67d906f12981.webp?v=1714706332","width":2000},{"alt":null,"id":23875640164451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3038dc1c0b4e715070164fbf5b11c24db86cfbe6_1fa243f9-4d86-4f7d-87a1-1f09fd7898e4.webp?v=1714706334"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3038dc1c0b4e715070164fbf5b11c24db86cfbe6_1fa243f9-4d86-4f7d-87a1-1f09fd7898e4.webp?v=1714706334","width":2000},{"alt":null,"id":23875640721507,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/481ba9d0d3ae696a9e83c615d18d2c0854fb4a0f_e3ff31ef-6a3b-4dfb-a4e3-4d0c6e5af183.webp?v=1714706337"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/481ba9d0d3ae696a9e83c615d18d2c0854fb4a0f_e3ff31ef-6a3b-4dfb-a4e3-4d0c6e5af183.webp?v=1714706337","width":2000},{"alt":null,"id":23875641213027,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba9d2400a2ad560211dbf04794858d416bb32964_5e77aa45-0edc-4b76-ba8d-af561f671f48.webp?v=1714706339"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba9d2400a2ad560211dbf04794858d416bb32964_5e77aa45-0edc-4b76-ba8d-af561f671f48.webp?v=1714706339","width":2000},{"alt":null,"id":23875641868387,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83608bf427661ea65d329a02bf2c2c9865df5e57_1920d921-0459-4094-b795-b863d0602c0d.webp?v=1714706341"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83608bf427661ea65d329a02bf2c2c9865df5e57_1920d921-0459-4094-b795-b863d0602c0d.webp?v=1714706341","width":2000},{"alt":null,"id":23875642425443,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8a3def3bb4762d1929a91eb03b5aae3ab177f52_28420551-0840-464d-b857-557d3623850d.webp?v=1714706344"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8a3def3bb4762d1929a91eb03b5aae3ab177f52_28420551-0840-464d-b857-557d3623850d.webp?v=1714706344","width":2000},{"alt":null,"id":23875643015267,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88ea980e5765f36ad5f796b42ffdbe69aaf21dd7_80d1acad-abfe-4999-97cc-2bde57a1269c.webp?v=1714706346"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88ea980e5765f36ad5f796b42ffdbe69aaf21dd7_80d1acad-abfe-4999-97cc-2bde57a1269c.webp?v=1714706346","width":2000},{"alt":null,"id":23875643637859,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dbc9947afc9c47a79e86d73eb0b0b11b6080482_6529fe36-181f-4bed-8591-6374b2cc64c6.webp?v=1714706348"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dbc9947afc9c47a79e86d73eb0b0b11b6080482_6529fe36-181f-4bed-8591-6374b2cc64c6.webp?v=1714706348","width":2000},{"alt":null,"id":23875644031075,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc1e15323ea716fda1463d197e07dbb5d4e1a9ae_a11e81e9-b065-41c1-87d5-0b1f734e09cd.webp?v=1714706351"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc1e15323ea716fda1463d197e07dbb5d4e1a9ae_a11e81e9-b065-41c1-87d5-0b1f734e09cd.webp?v=1714706351","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41880719687779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB66","requires_shipping":true,"taxable":true,"featured_image":{"id":31470738702435,"product_id":7407933948003,"position":8,"created_at":"2024-05-03T11:19:06+08:00","updated_at":"2024-05-03T11:19:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88ea980e5765f36ad5f796b42ffdbe69aaf21dd7_80d1acad-abfe-4999-97cc-2bde57a1269c.webp?v=1714706346","variant_ids":[41880719687779]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - ATAT-日文字系列 - 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":"NPB0126124-PB66","featured_media":{"alt":null,"id":23875643015267,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88ea980e5765f36ad5f796b42ffdbe69aaf21dd7_80d1acad-abfe-4999-97cc-2bde57a1269c.webp?v=1714706346"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41880719687779,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB66","requires_shipping":true,"taxable":true,"featured_image":{"id":31470738702435,"product_id":7407933948003,"position":8,"created_at":"2024-05-03T11:19:06+08:00","updated_at":"2024-05-03T11:19:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88ea980e5765f36ad5f796b42ffdbe69aaf21dd7_80d1acad-abfe-4999-97cc-2bde57a1269c.webp?v=1714706346","variant_ids":[41880719687779]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - ATAT-日文字系列 - 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":"NPB0126124-PB66","featured_media":{"alt":null,"id":23875643015267,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88ea980e5765f36ad5f796b42ffdbe69aaf21dd7_80d1acad-abfe-4999-97cc-2bde57a1269c.webp?v=1714706346"}},"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: "停產" }