$product = {"id":7416355192931,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報","handle":"iphone-8-mod-nx-printable-pb102","description":null,"published_at":"2024-06-11T16:56:47+08:00","created_at":"2024-05-06T14:40: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 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":41918837227619,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31491924787299,"product_id":7416355192931,"position":8,"created_at":"2024-05-06T14:41:08+08:00","updated_at":"2024-05-06T14:41:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e515f98e4588f2d7bc020aba2bee1c5660f31880_35bd6ea8-c269-4e1e-84e4-95e8b4d39a04.webp?v=1714977668","variant_ids":[41918837227619]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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-PB102","featured_media":{"alt":null,"id":23897337790563,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e515f98e4588f2d7bc020aba2bee1c5660f31880_35bd6ea8-c269-4e1e-84e4-95e8b4d39a04.webp?v=1714977668"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f8f05f311ac9d50becdefbba64a934bbc99142_1934efd5-73c5-47e4-8faa-60d4192f6fc8.webp?v=1714977651","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3a12be68707775d364f7063efe527b5ca61196a_eac6c9cc-8640-4740-a4a9-c15ad20a3239.webp?v=1714977653","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c3db6acc284d813e9ca4b7cb199707824d948e2_97ce7f64-5e29-4e3c-8388-5b50957493cd.webp?v=1714977656","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/657cc27698d1bb2acd8ea47ec2c82a38e17ba5b6_0b160fc6-219b-482b-aaa3-b5f85df4308b.webp?v=1714977658","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a81d29b811215922fce86ff252b3252d25174563_d2a9be54-714a-49f6-a495-b61113fe2759.webp?v=1714977660","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63b73646e61da9ec3b3ad31a92e6581db5f11067_ce1d4b12-2e9b-4b05-a1db-ef9ea8b99ec8.webp?v=1714977663","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca496813207474a39f68d61cefdcbd2f588c7d3c_2ca98047-edef-4140-a61a-69df692b02d4.webp?v=1714977666","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e515f98e4588f2d7bc020aba2bee1c5660f31880_35bd6ea8-c269-4e1e-84e4-95e8b4d39a04.webp?v=1714977668","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbdfb5c52303950c21d6faf57892a5f8b8186eb9_8e7fd469-c21a-4fd3-9dcf-28cde5323244.webp?v=1714977673"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f8f05f311ac9d50becdefbba64a934bbc99142_1934efd5-73c5-47e4-8faa-60d4192f6fc8.webp?v=1714977651","options":["color"],"media":[{"alt":null,"id":23897334448227,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f8f05f311ac9d50becdefbba64a934bbc99142_1934efd5-73c5-47e4-8faa-60d4192f6fc8.webp?v=1714977651"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f8f05f311ac9d50becdefbba64a934bbc99142_1934efd5-73c5-47e4-8faa-60d4192f6fc8.webp?v=1714977651","width":2000},{"alt":null,"id":23897334939747,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3a12be68707775d364f7063efe527b5ca61196a_eac6c9cc-8640-4740-a4a9-c15ad20a3239.webp?v=1714977653"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3a12be68707775d364f7063efe527b5ca61196a_eac6c9cc-8640-4740-a4a9-c15ad20a3239.webp?v=1714977653","width":2000},{"alt":null,"id":23897335431267,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c3db6acc284d813e9ca4b7cb199707824d948e2_97ce7f64-5e29-4e3c-8388-5b50957493cd.webp?v=1714977656"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c3db6acc284d813e9ca4b7cb199707824d948e2_97ce7f64-5e29-4e3c-8388-5b50957493cd.webp?v=1714977656","width":2000},{"alt":null,"id":23897335955555,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/657cc27698d1bb2acd8ea47ec2c82a38e17ba5b6_0b160fc6-219b-482b-aaa3-b5f85df4308b.webp?v=1714977658"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/657cc27698d1bb2acd8ea47ec2c82a38e17ba5b6_0b160fc6-219b-482b-aaa3-b5f85df4308b.webp?v=1714977658","width":2000},{"alt":null,"id":23897336348771,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a81d29b811215922fce86ff252b3252d25174563_d2a9be54-714a-49f6-a495-b61113fe2759.webp?v=1714977660"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a81d29b811215922fce86ff252b3252d25174563_d2a9be54-714a-49f6-a495-b61113fe2759.webp?v=1714977660","width":2000},{"alt":null,"id":23897336840291,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63b73646e61da9ec3b3ad31a92e6581db5f11067_ce1d4b12-2e9b-4b05-a1db-ef9ea8b99ec8.webp?v=1714977663"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63b73646e61da9ec3b3ad31a92e6581db5f11067_ce1d4b12-2e9b-4b05-a1db-ef9ea8b99ec8.webp?v=1714977663","width":2000},{"alt":null,"id":23897337331811,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca496813207474a39f68d61cefdcbd2f588c7d3c_2ca98047-edef-4140-a61a-69df692b02d4.webp?v=1714977666"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca496813207474a39f68d61cefdcbd2f588c7d3c_2ca98047-edef-4140-a61a-69df692b02d4.webp?v=1714977666","width":2000},{"alt":null,"id":23897337790563,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e515f98e4588f2d7bc020aba2bee1c5660f31880_35bd6ea8-c269-4e1e-84e4-95e8b4d39a04.webp?v=1714977668"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e515f98e4588f2d7bc020aba2bee1c5660f31880_35bd6ea8-c269-4e1e-84e4-95e8b4d39a04.webp?v=1714977668","width":2000},{"alt":null,"id":23897338871907,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbdfb5c52303950c21d6faf57892a5f8b8186eb9_8e7fd469-c21a-4fd3-9dcf-28cde5323244.webp?v=1714977673"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbdfb5c52303950c21d6faf57892a5f8b8186eb9_8e7fd469-c21a-4fd3-9dcf-28cde5323244.webp?v=1714977673","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918837227619,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31491924787299,"product_id":7416355192931,"position":8,"created_at":"2024-05-06T14:41:08+08:00","updated_at":"2024-05-06T14:41:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e515f98e4588f2d7bc020aba2bee1c5660f31880_35bd6ea8-c269-4e1e-84e4-95e8b4d39a04.webp?v=1714977668","variant_ids":[41918837227619]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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-PB102","featured_media":{"alt":null,"id":23897337790563,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e515f98e4588f2d7bc020aba2bee1c5660f31880_35bd6ea8-c269-4e1e-84e4-95e8b4d39a04.webp?v=1714977668"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918837227619,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31491924787299,"product_id":7416355192931,"position":8,"created_at":"2024-05-06T14:41:08+08:00","updated_at":"2024-05-06T14:41:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e515f98e4588f2d7bc020aba2bee1c5660f31880_35bd6ea8-c269-4e1e-84e4-95e8b4d39a04.webp?v=1714977668","variant_ids":[41918837227619]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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-PB102","featured_media":{"alt":null,"id":23897337790563,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e515f98e4588f2d7bc020aba2bee1c5660f31880_35bd6ea8-c269-4e1e-84e4-95e8b4d39a04.webp?v=1714977668"}},"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: "停產" }