$product = {"id":7407659221091,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-散步-幽默系列","handle":"iphone-14-plus-mod-nx-printable-pc13","description":null,"published_at":"2024-06-11T16:21:38+08:00","created_at":"2024-05-03T10:38: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 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":41877304606819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31470170243171,"product_id":7407659221091,"position":5,"created_at":"2024-05-03T10:38:42+08:00","updated_at":"2024-05-03T10:38:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5059025f62b7db643356d7cbfb18a68226d2419_b74f6075-5b4a-47c5-963f-1218d9b60538.webp?v=1714703922","variant_ids":[41877304606819]},"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-PC13","featured_media":{"alt":null,"id":23875073146979,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5059025f62b7db643356d7cbfb18a68226d2419_b74f6075-5b4a-47c5-963f-1218d9b60538.webp?v=1714703922"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/716214ddf60f4dc94381e6d42af9013a7412b4fc_69416fb2-a068-4f7c-a134-b762d9f9a1ae.webp?v=1714703912","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bd878493faba827b426baaa190cf82013e07ce3_61175a8b-3250-4b39-8532-b2d7518f0791.webp?v=1714703915","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46f25fac6920dd75f68f7d6655a36dd07148ac4f_25744237-5f4b-42e7-a810-7e043b26b716.webp?v=1714703917","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60be39e938363268de0f35e75d614a0bff26c3d2_b945ab98-8fd3-4d69-a05f-4d55bb76d53d.webp?v=1714703920","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5059025f62b7db643356d7cbfb18a68226d2419_b74f6075-5b4a-47c5-963f-1218d9b60538.webp?v=1714703922","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef7422e7eacab893e7e9382dbae13331be3f4212_032e0935-2daa-4bf8-a303-a3c4c6a4f9f4.webp?v=1714703925","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fab0b4e91f24bcd4ada60964a4053862cf9074f6_57727401-d9fe-4ae1-97f4-902eaf97a7cf.webp?v=1714703928","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/969283f7b128d856978fdc78c3756d402f5ccd86_fdf2099e-e852-4ea7-aadc-aca58d8dea3c.webp?v=1714703930","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2ba979ed96d165b07569d66d1cd901566b1c125_f07580d7-b0cd-4942-aa3c-60a26989be2d.webp?v=1714703933","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53f6573a6d6c2666a34cc81e85054bdd4e99a2b4_16ecb5bd-4862-4818-855e-d575761c3dc6.webp?v=1714703935"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/716214ddf60f4dc94381e6d42af9013a7412b4fc_69416fb2-a068-4f7c-a134-b762d9f9a1ae.webp?v=1714703912","options":["color"],"media":[{"alt":null,"id":23875070787683,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/716214ddf60f4dc94381e6d42af9013a7412b4fc_69416fb2-a068-4f7c-a134-b762d9f9a1ae.webp?v=1714703912"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/716214ddf60f4dc94381e6d42af9013a7412b4fc_69416fb2-a068-4f7c-a134-b762d9f9a1ae.webp?v=1714703912","width":2000},{"alt":null,"id":23875071213667,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bd878493faba827b426baaa190cf82013e07ce3_61175a8b-3250-4b39-8532-b2d7518f0791.webp?v=1714703915"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9bd878493faba827b426baaa190cf82013e07ce3_61175a8b-3250-4b39-8532-b2d7518f0791.webp?v=1714703915","width":2000},{"alt":null,"id":23875071803491,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46f25fac6920dd75f68f7d6655a36dd07148ac4f_25744237-5f4b-42e7-a810-7e043b26b716.webp?v=1714703917"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46f25fac6920dd75f68f7d6655a36dd07148ac4f_25744237-5f4b-42e7-a810-7e043b26b716.webp?v=1714703917","width":2000},{"alt":null,"id":23875072491619,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60be39e938363268de0f35e75d614a0bff26c3d2_b945ab98-8fd3-4d69-a05f-4d55bb76d53d.webp?v=1714703920"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60be39e938363268de0f35e75d614a0bff26c3d2_b945ab98-8fd3-4d69-a05f-4d55bb76d53d.webp?v=1714703920","width":2000},{"alt":null,"id":23875073146979,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5059025f62b7db643356d7cbfb18a68226d2419_b74f6075-5b4a-47c5-963f-1218d9b60538.webp?v=1714703922"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5059025f62b7db643356d7cbfb18a68226d2419_b74f6075-5b4a-47c5-963f-1218d9b60538.webp?v=1714703922","width":2000},{"alt":null,"id":23875073769571,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef7422e7eacab893e7e9382dbae13331be3f4212_032e0935-2daa-4bf8-a303-a3c4c6a4f9f4.webp?v=1714703925"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef7422e7eacab893e7e9382dbae13331be3f4212_032e0935-2daa-4bf8-a303-a3c4c6a4f9f4.webp?v=1714703925","width":2000},{"alt":null,"id":23875074424931,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fab0b4e91f24bcd4ada60964a4053862cf9074f6_57727401-d9fe-4ae1-97f4-902eaf97a7cf.webp?v=1714703928"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fab0b4e91f24bcd4ada60964a4053862cf9074f6_57727401-d9fe-4ae1-97f4-902eaf97a7cf.webp?v=1714703928","width":2000},{"alt":null,"id":23875074916451,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/969283f7b128d856978fdc78c3756d402f5ccd86_fdf2099e-e852-4ea7-aadc-aca58d8dea3c.webp?v=1714703930"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/969283f7b128d856978fdc78c3756d402f5ccd86_fdf2099e-e852-4ea7-aadc-aca58d8dea3c.webp?v=1714703930","width":2000},{"alt":null,"id":23875075539043,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2ba979ed96d165b07569d66d1cd901566b1c125_f07580d7-b0cd-4942-aa3c-60a26989be2d.webp?v=1714703933"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2ba979ed96d165b07569d66d1cd901566b1c125_f07580d7-b0cd-4942-aa3c-60a26989be2d.webp?v=1714703933","width":2000},{"alt":null,"id":23875076030563,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53f6573a6d6c2666a34cc81e85054bdd4e99a2b4_16ecb5bd-4862-4818-855e-d575761c3dc6.webp?v=1714703935"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53f6573a6d6c2666a34cc81e85054bdd4e99a2b4_16ecb5bd-4862-4818-855e-d575761c3dc6.webp?v=1714703935","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41877304606819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31470170243171,"product_id":7407659221091,"position":5,"created_at":"2024-05-03T10:38:42+08:00","updated_at":"2024-05-03T10:38:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5059025f62b7db643356d7cbfb18a68226d2419_b74f6075-5b4a-47c5-963f-1218d9b60538.webp?v=1714703922","variant_ids":[41877304606819]},"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-PC13","featured_media":{"alt":null,"id":23875073146979,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5059025f62b7db643356d7cbfb18a68226d2419_b74f6075-5b4a-47c5-963f-1218d9b60538.webp?v=1714703922"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41877304606819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31470170243171,"product_id":7407659221091,"position":5,"created_at":"2024-05-03T10:38:42+08:00","updated_at":"2024-05-03T10:38:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5059025f62b7db643356d7cbfb18a68226d2419_b74f6075-5b4a-47c5-963f-1218d9b60538.webp?v=1714703922","variant_ids":[41877304606819]},"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-PC13","featured_media":{"alt":null,"id":23875073146979,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5059025f62b7db643356d7cbfb18a68226d2419_b74f6075-5b4a-47c5-963f-1218d9b60538.webp?v=1714703922"}},"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: "停產" }