$product = {"id":7416053858403,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-剪紙系列","handle":"iphone-xs-max-mod-nx-printable-pb79","description":null,"published_at":"2024-06-11T16:51:30+08:00","created_at":"2024-05-06T12:49:29+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":41916934684771,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB79","requires_shipping":true,"taxable":true,"featured_image":{"id":31491093725283,"product_id":7416053858403,"position":9,"created_at":"2024-05-06T12:49:49+08:00","updated_at":"2024-05-06T12:49:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61d92a2e2f97ccf1f975cdf05cc5f4bab6cf9915_6707dd75-ecc7-4a50-8138-4116d9c96ba1.webp?v=1714970989","variant_ids":[41916934684771]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0108624-PB79","featured_media":{"alt":null,"id":23896501026915,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61d92a2e2f97ccf1f975cdf05cc5f4bab6cf9915_6707dd75-ecc7-4a50-8138-4116d9c96ba1.webp?v=1714970989"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1d88211c494c55e95edcf4eed03ba8280daa5bd_1066e123-b303-426f-81f4-74b7075e6ec5.webp?v=1714970971","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bc175b323e5ab0b75fa693a5ba1a514fb437760_232a4cd3-4141-42a2-924d-c7a0e46780db.webp?v=1714970974","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fc1c3324b35cee79ea1076cdf37d8475efa1068_bb7e789f-5d8c-408d-95ad-8245d0448a72.webp?v=1714970976","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/997ff16b685a2aec72a27da763458dfad846ad82_0cedbf3f-670a-4e0d-a86b-c901915667aa.webp?v=1714970978","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7e0c3f2a493786879cb4cd9077497bb5c6ab6e0_53eb0026-c45d-4624-bab4-d1bf4ff596df.webp?v=1714970980","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/767f1a68f7568d40518e92ebee41134323ac378a_ac8ac95d-8689-40b3-9866-0b526d254f17.webp?v=1714970983","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d4e887be7d4d74791b6eb2b0075168429fc995c_c6111e0b-f404-46c2-bcb7-0591d0d67f04.webp?v=1714970985","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a7dbcc596dc9fd93838e9442177486d443755a2_58b7daaf-104b-4fb7-a8a8-ba5887c4bda5.webp?v=1714970987","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61d92a2e2f97ccf1f975cdf05cc5f4bab6cf9915_6707dd75-ecc7-4a50-8138-4116d9c96ba1.webp?v=1714970989","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/589d9a74340192672b8275b797f8677364ac6620_651ec4aa-8acf-4494-9088-217d5d7d406a.webp?v=1714970992"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1d88211c494c55e95edcf4eed03ba8280daa5bd_1066e123-b303-426f-81f4-74b7075e6ec5.webp?v=1714970971","options":["color"],"media":[{"alt":null,"id":23896496898147,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1d88211c494c55e95edcf4eed03ba8280daa5bd_1066e123-b303-426f-81f4-74b7075e6ec5.webp?v=1714970971"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1d88211c494c55e95edcf4eed03ba8280daa5bd_1066e123-b303-426f-81f4-74b7075e6ec5.webp?v=1714970971","width":2000},{"alt":null,"id":23896497422435,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bc175b323e5ab0b75fa693a5ba1a514fb437760_232a4cd3-4141-42a2-924d-c7a0e46780db.webp?v=1714970974"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bc175b323e5ab0b75fa693a5ba1a514fb437760_232a4cd3-4141-42a2-924d-c7a0e46780db.webp?v=1714970974","width":2000},{"alt":null,"id":23896497848419,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fc1c3324b35cee79ea1076cdf37d8475efa1068_bb7e789f-5d8c-408d-95ad-8245d0448a72.webp?v=1714970976"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9fc1c3324b35cee79ea1076cdf37d8475efa1068_bb7e789f-5d8c-408d-95ad-8245d0448a72.webp?v=1714970976","width":2000},{"alt":null,"id":23896498274403,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/997ff16b685a2aec72a27da763458dfad846ad82_0cedbf3f-670a-4e0d-a86b-c901915667aa.webp?v=1714970978"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/997ff16b685a2aec72a27da763458dfad846ad82_0cedbf3f-670a-4e0d-a86b-c901915667aa.webp?v=1714970978","width":2000},{"alt":null,"id":23896498798691,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7e0c3f2a493786879cb4cd9077497bb5c6ab6e0_53eb0026-c45d-4624-bab4-d1bf4ff596df.webp?v=1714970980"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7e0c3f2a493786879cb4cd9077497bb5c6ab6e0_53eb0026-c45d-4624-bab4-d1bf4ff596df.webp?v=1714970980","width":2000},{"alt":null,"id":23896499290211,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/767f1a68f7568d40518e92ebee41134323ac378a_ac8ac95d-8689-40b3-9866-0b526d254f17.webp?v=1714970983"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/767f1a68f7568d40518e92ebee41134323ac378a_ac8ac95d-8689-40b3-9866-0b526d254f17.webp?v=1714970983","width":2000},{"alt":null,"id":23896499880035,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d4e887be7d4d74791b6eb2b0075168429fc995c_c6111e0b-f404-46c2-bcb7-0591d0d67f04.webp?v=1714970985"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d4e887be7d4d74791b6eb2b0075168429fc995c_c6111e0b-f404-46c2-bcb7-0591d0d67f04.webp?v=1714970985","width":2000},{"alt":null,"id":23896500338787,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a7dbcc596dc9fd93838e9442177486d443755a2_58b7daaf-104b-4fb7-a8a8-ba5887c4bda5.webp?v=1714970987"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a7dbcc596dc9fd93838e9442177486d443755a2_58b7daaf-104b-4fb7-a8a8-ba5887c4bda5.webp?v=1714970987","width":2000},{"alt":null,"id":23896501026915,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61d92a2e2f97ccf1f975cdf05cc5f4bab6cf9915_6707dd75-ecc7-4a50-8138-4116d9c96ba1.webp?v=1714970989"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61d92a2e2f97ccf1f975cdf05cc5f4bab6cf9915_6707dd75-ecc7-4a50-8138-4116d9c96ba1.webp?v=1714970989","width":2000},{"alt":null,"id":23896501452899,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/589d9a74340192672b8275b797f8677364ac6620_651ec4aa-8acf-4494-9088-217d5d7d406a.webp?v=1714970992"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/589d9a74340192672b8275b797f8677364ac6620_651ec4aa-8acf-4494-9088-217d5d7d406a.webp?v=1714970992","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41916934684771,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB79","requires_shipping":true,"taxable":true,"featured_image":{"id":31491093725283,"product_id":7416053858403,"position":9,"created_at":"2024-05-06T12:49:49+08:00","updated_at":"2024-05-06T12:49:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61d92a2e2f97ccf1f975cdf05cc5f4bab6cf9915_6707dd75-ecc7-4a50-8138-4116d9c96ba1.webp?v=1714970989","variant_ids":[41916934684771]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0108624-PB79","featured_media":{"alt":null,"id":23896501026915,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61d92a2e2f97ccf1f975cdf05cc5f4bab6cf9915_6707dd75-ecc7-4a50-8138-4116d9c96ba1.webp?v=1714970989"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41916934684771,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB79","requires_shipping":true,"taxable":true,"featured_image":{"id":31491093725283,"product_id":7416053858403,"position":9,"created_at":"2024-05-06T12:49:49+08:00","updated_at":"2024-05-06T12:49:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61d92a2e2f97ccf1f975cdf05cc5f4bab6cf9915_6707dd75-ecc7-4a50-8138-4116d9c96ba1.webp?v=1714970989","variant_ids":[41916934684771]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0108624-PB79","featured_media":{"alt":null,"id":23896501026915,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61d92a2e2f97ccf1f975cdf05cc5f4bab6cf9915_6707dd75-ecc7-4a50-8138-4116d9c96ba1.webp?v=1714970989"}},"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: "停產" }