$product = {"id":7407893938275,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-線稿風格","handle":"iphone-14-plus-mod-nx-printable-pb51","description":null,"published_at":"2024-06-11T16:25:49+08:00","created_at":"2024-05-03T11:10:57+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":41880184586339,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB51","requires_shipping":true,"taxable":true,"featured_image":{"id":31470640267363,"product_id":7407893938275,"position":9,"created_at":"2024-05-03T11:11:18+08:00","updated_at":"2024-05-03T11:11:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3092ff85eeec62705f9f7a2eb8ba457e49dccc0f_119baa64-556d-4342-bf81-85ae907c4ba5.webp?v=1714705878","variant_ids":[41880184586339]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126124-PB51","featured_media":{"alt":null,"id":23875544285283,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3092ff85eeec62705f9f7a2eb8ba457e49dccc0f_119baa64-556d-4342-bf81-85ae907c4ba5.webp?v=1714705878"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f38062104a7b877990579dd3feec91297e68be42_f11c9225-af95-421e-bb0a-58fc7bccff20.webp?v=1714705860","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd6ac4273c60b8e55e197528eacebc50d1e5eed9_7b241b1d-29c1-45c5-b992-7360b2baac0c.webp?v=1714705862","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d359186d7493e33582ecd69dddca8a50c090ca43_2b565a94-7e2e-4205-a64b-4dc9a9b5073c.webp?v=1714705864","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90775babc48fdbf06e81a90ee38516138dcb7f2c_343b7793-4de1-4361-8a28-ed42b11ae263.webp?v=1714705866","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c40690194da0595129cd0f21eaa8d130d8d1116d_4412cea0-0540-42a9-9c32-6554948a47f3.webp?v=1714705869","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fa34408eadc01e86acd416909675c754317b515_9b7edc2e-bb7b-4edd-a9de-8460d679cb5b.webp?v=1714705871","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad64019616e55fecde3a5901342d1c773d1888fe_3d5a1828-383e-4e21-a81a-cbc7b1e8b035.webp?v=1714705873","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5e72f0b80330f490101e35c0002924411c7bfde_dab0aecf-7485-428d-b277-3afc59fe8733.webp?v=1714705876","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3092ff85eeec62705f9f7a2eb8ba457e49dccc0f_119baa64-556d-4342-bf81-85ae907c4ba5.webp?v=1714705878","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9f1e1535c469e67ebebc0af815281d43ed62feb_4253be4a-a089-4b9d-afe0-869e469c78a6.webp?v=1714705881"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f38062104a7b877990579dd3feec91297e68be42_f11c9225-af95-421e-bb0a-58fc7bccff20.webp?v=1714705860","options":["color"],"media":[{"alt":null,"id":23875540516963,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f38062104a7b877990579dd3feec91297e68be42_f11c9225-af95-421e-bb0a-58fc7bccff20.webp?v=1714705860"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f38062104a7b877990579dd3feec91297e68be42_f11c9225-af95-421e-bb0a-58fc7bccff20.webp?v=1714705860","width":2000},{"alt":null,"id":23875541008483,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd6ac4273c60b8e55e197528eacebc50d1e5eed9_7b241b1d-29c1-45c5-b992-7360b2baac0c.webp?v=1714705862"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd6ac4273c60b8e55e197528eacebc50d1e5eed9_7b241b1d-29c1-45c5-b992-7360b2baac0c.webp?v=1714705862","width":2000},{"alt":null,"id":23875541500003,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d359186d7493e33582ecd69dddca8a50c090ca43_2b565a94-7e2e-4205-a64b-4dc9a9b5073c.webp?v=1714705864"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d359186d7493e33582ecd69dddca8a50c090ca43_2b565a94-7e2e-4205-a64b-4dc9a9b5073c.webp?v=1714705864","width":2000},{"alt":null,"id":23875541827683,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90775babc48fdbf06e81a90ee38516138dcb7f2c_343b7793-4de1-4361-8a28-ed42b11ae263.webp?v=1714705866"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90775babc48fdbf06e81a90ee38516138dcb7f2c_343b7793-4de1-4361-8a28-ed42b11ae263.webp?v=1714705866","width":2000},{"alt":null,"id":23875542384739,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c40690194da0595129cd0f21eaa8d130d8d1116d_4412cea0-0540-42a9-9c32-6554948a47f3.webp?v=1714705869"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c40690194da0595129cd0f21eaa8d130d8d1116d_4412cea0-0540-42a9-9c32-6554948a47f3.webp?v=1714705869","width":2000},{"alt":null,"id":23875542777955,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fa34408eadc01e86acd416909675c754317b515_9b7edc2e-bb7b-4edd-a9de-8460d679cb5b.webp?v=1714705871"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fa34408eadc01e86acd416909675c754317b515_9b7edc2e-bb7b-4edd-a9de-8460d679cb5b.webp?v=1714705871","width":2000},{"alt":null,"id":23875543367779,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad64019616e55fecde3a5901342d1c773d1888fe_3d5a1828-383e-4e21-a81a-cbc7b1e8b035.webp?v=1714705873"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad64019616e55fecde3a5901342d1c773d1888fe_3d5a1828-383e-4e21-a81a-cbc7b1e8b035.webp?v=1714705873","width":2000},{"alt":null,"id":23875543728227,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5e72f0b80330f490101e35c0002924411c7bfde_dab0aecf-7485-428d-b277-3afc59fe8733.webp?v=1714705876"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5e72f0b80330f490101e35c0002924411c7bfde_dab0aecf-7485-428d-b277-3afc59fe8733.webp?v=1714705876","width":2000},{"alt":null,"id":23875544285283,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3092ff85eeec62705f9f7a2eb8ba457e49dccc0f_119baa64-556d-4342-bf81-85ae907c4ba5.webp?v=1714705878"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3092ff85eeec62705f9f7a2eb8ba457e49dccc0f_119baa64-556d-4342-bf81-85ae907c4ba5.webp?v=1714705878","width":2000},{"alt":null,"id":23875544711267,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9f1e1535c469e67ebebc0af815281d43ed62feb_4253be4a-a089-4b9d-afe0-869e469c78a6.webp?v=1714705881"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9f1e1535c469e67ebebc0af815281d43ed62feb_4253be4a-a089-4b9d-afe0-869e469c78a6.webp?v=1714705881","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41880184586339,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB51","requires_shipping":true,"taxable":true,"featured_image":{"id":31470640267363,"product_id":7407893938275,"position":9,"created_at":"2024-05-03T11:11:18+08:00","updated_at":"2024-05-03T11:11:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3092ff85eeec62705f9f7a2eb8ba457e49dccc0f_119baa64-556d-4342-bf81-85ae907c4ba5.webp?v=1714705878","variant_ids":[41880184586339]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126124-PB51","featured_media":{"alt":null,"id":23875544285283,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3092ff85eeec62705f9f7a2eb8ba457e49dccc0f_119baa64-556d-4342-bf81-85ae907c4ba5.webp?v=1714705878"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41880184586339,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB51","requires_shipping":true,"taxable":true,"featured_image":{"id":31470640267363,"product_id":7407893938275,"position":9,"created_at":"2024-05-03T11:11:18+08:00","updated_at":"2024-05-03T11:11:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3092ff85eeec62705f9f7a2eb8ba457e49dccc0f_119baa64-556d-4342-bf81-85ae907c4ba5.webp?v=1714705878","variant_ids":[41880184586339]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126124-PB51","featured_media":{"alt":null,"id":23875544285283,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3092ff85eeec62705f9f7a2eb8ba457e49dccc0f_119baa64-556d-4342-bf81-85ae907c4ba5.webp?v=1714705878"}},"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: "停產" }