$product = {"id":7408510861411,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 小圖款-丘巴卡","handle":"iphone-12-mini-mod-nx-printable-pc07","description":null,"published_at":"2024-06-11T16:39:17+08:00","created_at":"2024-05-03T15:40:54+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 12 mini","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":41886316724323,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31472464953443,"product_id":7408510861411,"position":6,"created_at":"2024-05-03T15:41:09+08:00","updated_at":"2024-05-03T15:41:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9311ea36c8d96f7bd17bca886c4fce2c9e17231_ae2d6ce3-bc85-4335-a949-5c6bc00a1a4a.webp?v=1714722069","variant_ids":[41886316724323]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0118424-PC07","featured_media":{"alt":null,"id":23877382045795,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9311ea36c8d96f7bd17bca886c4fce2c9e17231_ae2d6ce3-bc85-4335-a949-5c6bc00a1a4a.webp?v=1714722069"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6143854c3e9fd8775ab741b7e13860083d29c43d_e7420b6a-9c8c-4e69-a5b8-22621af928d6.webp?v=1714722056","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acd8f184453fcfb4dbb7f84e7383da9cc8857f28_87fe55b5-e008-4414-a70a-115caf02734e.webp?v=1714722059","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfd32c4b1b55ae2af7813696edd3af2c234de1f4_e56667c8-6f3f-4603-8a54-c8cf30e3fab8.webp?v=1714722061","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b2635373dc616668dacb956195fdd59dcd27d21_c83978e8-cc80-49a4-a2c3-41d926acf056.webp?v=1714722064","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d43c13f6052160860395c10e4a58c95954fc6ae1_7473b075-ec94-4c89-b0e8-be109240aaf5.webp?v=1714722067","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9311ea36c8d96f7bd17bca886c4fce2c9e17231_ae2d6ce3-bc85-4335-a949-5c6bc00a1a4a.webp?v=1714722069","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9c69d725877fda0c03012e840b74191b83d3c7f_25423b07-a64e-4488-aa09-d2e1da7fc1b2.webp?v=1714722071","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/974d4c44b270d43568a53888027a03dc3fafbc5c_933c383f-1c71-4a42-b55c-1063c3915826.webp?v=1714722074","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/444a19510f022d4bd05a5a480969e9ea8817709c_66318808-76a7-461e-9eaa-ad527ccbc8e9.webp?v=1714722076","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29b71659a1412a59ae2a20c6990cf488e0b2b85a_97488b44-ffb4-46ec-80d8-e0ffcfeca494.webp?v=1714722079","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ce068871f3990c1d1fb3556c47fc2bcef6589d6_34a4c7c1-0c42-440d-b136-6c5fae19cfa8.webp?v=1714722082"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6143854c3e9fd8775ab741b7e13860083d29c43d_e7420b6a-9c8c-4e69-a5b8-22621af928d6.webp?v=1714722056","options":["color"],"media":[{"alt":null,"id":23877379457123,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6143854c3e9fd8775ab741b7e13860083d29c43d_e7420b6a-9c8c-4e69-a5b8-22621af928d6.webp?v=1714722056"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6143854c3e9fd8775ab741b7e13860083d29c43d_e7420b6a-9c8c-4e69-a5b8-22621af928d6.webp?v=1714722056","width":2000},{"alt":null,"id":23877380014179,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acd8f184453fcfb4dbb7f84e7383da9cc8857f28_87fe55b5-e008-4414-a70a-115caf02734e.webp?v=1714722059"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acd8f184453fcfb4dbb7f84e7383da9cc8857f28_87fe55b5-e008-4414-a70a-115caf02734e.webp?v=1714722059","width":2000},{"alt":null,"id":23877380538467,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfd32c4b1b55ae2af7813696edd3af2c234de1f4_e56667c8-6f3f-4603-8a54-c8cf30e3fab8.webp?v=1714722061"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfd32c4b1b55ae2af7813696edd3af2c234de1f4_e56667c8-6f3f-4603-8a54-c8cf30e3fab8.webp?v=1714722061","width":2000},{"alt":null,"id":23877381161059,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b2635373dc616668dacb956195fdd59dcd27d21_c83978e8-cc80-49a4-a2c3-41d926acf056.webp?v=1714722064"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b2635373dc616668dacb956195fdd59dcd27d21_c83978e8-cc80-49a4-a2c3-41d926acf056.webp?v=1714722064","width":2000},{"alt":null,"id":23877381619811,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d43c13f6052160860395c10e4a58c95954fc6ae1_7473b075-ec94-4c89-b0e8-be109240aaf5.webp?v=1714722067"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d43c13f6052160860395c10e4a58c95954fc6ae1_7473b075-ec94-4c89-b0e8-be109240aaf5.webp?v=1714722067","width":2000},{"alt":null,"id":23877382045795,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9311ea36c8d96f7bd17bca886c4fce2c9e17231_ae2d6ce3-bc85-4335-a949-5c6bc00a1a4a.webp?v=1714722069"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9311ea36c8d96f7bd17bca886c4fce2c9e17231_ae2d6ce3-bc85-4335-a949-5c6bc00a1a4a.webp?v=1714722069","width":2000},{"alt":null,"id":23877382537315,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9c69d725877fda0c03012e840b74191b83d3c7f_25423b07-a64e-4488-aa09-d2e1da7fc1b2.webp?v=1714722071"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9c69d725877fda0c03012e840b74191b83d3c7f_25423b07-a64e-4488-aa09-d2e1da7fc1b2.webp?v=1714722071","width":2000},{"alt":null,"id":23877383225443,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/974d4c44b270d43568a53888027a03dc3fafbc5c_933c383f-1c71-4a42-b55c-1063c3915826.webp?v=1714722074"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/974d4c44b270d43568a53888027a03dc3fafbc5c_933c383f-1c71-4a42-b55c-1063c3915826.webp?v=1714722074","width":2000},{"alt":null,"id":23877383651427,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/444a19510f022d4bd05a5a480969e9ea8817709c_66318808-76a7-461e-9eaa-ad527ccbc8e9.webp?v=1714722076"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/444a19510f022d4bd05a5a480969e9ea8817709c_66318808-76a7-461e-9eaa-ad527ccbc8e9.webp?v=1714722076","width":2000},{"alt":null,"id":23877384208483,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29b71659a1412a59ae2a20c6990cf488e0b2b85a_97488b44-ffb4-46ec-80d8-e0ffcfeca494.webp?v=1714722079"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29b71659a1412a59ae2a20c6990cf488e0b2b85a_97488b44-ffb4-46ec-80d8-e0ffcfeca494.webp?v=1714722079","width":2000},{"alt":null,"id":23877384896611,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ce068871f3990c1d1fb3556c47fc2bcef6589d6_34a4c7c1-0c42-440d-b136-6c5fae19cfa8.webp?v=1714722082"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ce068871f3990c1d1fb3556c47fc2bcef6589d6_34a4c7c1-0c42-440d-b136-6c5fae19cfa8.webp?v=1714722082","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886316724323,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31472464953443,"product_id":7408510861411,"position":6,"created_at":"2024-05-03T15:41:09+08:00","updated_at":"2024-05-03T15:41:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9311ea36c8d96f7bd17bca886c4fce2c9e17231_ae2d6ce3-bc85-4335-a949-5c6bc00a1a4a.webp?v=1714722069","variant_ids":[41886316724323]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0118424-PC07","featured_media":{"alt":null,"id":23877382045795,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9311ea36c8d96f7bd17bca886c4fce2c9e17231_ae2d6ce3-bc85-4335-a949-5c6bc00a1a4a.webp?v=1714722069"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886316724323,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31472464953443,"product_id":7408510861411,"position":6,"created_at":"2024-05-03T15:41:09+08:00","updated_at":"2024-05-03T15:41:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9311ea36c8d96f7bd17bca886c4fce2c9e17231_ae2d6ce3-bc85-4335-a949-5c6bc00a1a4a.webp?v=1714722069","variant_ids":[41886316724323]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0118424-PC07","featured_media":{"alt":null,"id":23877382045795,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9311ea36c8d96f7bd17bca886c4fce2c9e17231_ae2d6ce3-bc85-4335-a949-5c6bc00a1a4a.webp?v=1714722069"}},"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: "停產" }