$product = {"id":7408020815971,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-噴漆黑","handle":"iphone-13-pro-max-mod-nx-printable-pb01","description":null,"published_at":"2024-06-11T16:29:17+08:00","created_at":"2024-05-03T11:42:49+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 13 Pro 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":41881792938083,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31470989148259,"product_id":7408020815971,"position":4,"created_at":"2024-05-03T11:42:59+08:00","updated_at":"2024-05-03T11:42:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c9e27a6a07a1f0d0b3e7242fba197cf8d690ca2_815d3ac3-9a7e-4065-9047-75389de3d8b7.webp?v=1714707779","variant_ids":[41881792938083]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro 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":"NPB0123224-PB01","featured_media":{"alt":null,"id":23875894083683,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c9e27a6a07a1f0d0b3e7242fba197cf8d690ca2_815d3ac3-9a7e-4065-9047-75389de3d8b7.webp?v=1714707779"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881793232995,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31470988099683,"product_id":7408020815971,"position":2,"created_at":"2024-05-03T11:42:54+08:00","updated_at":"2024-05-03T11:42:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abfac7c3cd29cfe76accf5369f46c8168a4cd315_72e16a2f-6af0-4338-a50b-30945e1a661e.webp?v=1714707775","variant_ids":[41881793232995]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro 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":"NPB01232J5-PB01","featured_media":{"alt":null,"id":23875893067875,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abfac7c3cd29cfe76accf5369f46c8168a4cd315_72e16a2f-6af0-4338-a50b-30945e1a661e.webp?v=1714707775"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a99cb902bbb6413ca06f1ffcdf5e69abe2a6d360_71b15c8a-9cdc-4892-b894-caf480a20c62.webp?v=1714707772","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abfac7c3cd29cfe76accf5369f46c8168a4cd315_72e16a2f-6af0-4338-a50b-30945e1a661e.webp?v=1714707775","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99b1ffe50b842cce6ec8317149bb7c492679e809_05e2a55d-3bb8-4dac-a4c2-bb415d46a907.webp?v=1714707777","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c9e27a6a07a1f0d0b3e7242fba197cf8d690ca2_815d3ac3-9a7e-4065-9047-75389de3d8b7.webp?v=1714707779","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c124df480544d70a38446ec612817f85f5dd0e15_8c8e81c7-646f-4ee0-a386-d880c17b52f2.webp?v=1714707782","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7760097cbe97646453a644b5b438506fa6a86af4_67c0114b-de16-45ef-bd7a-3a37f2883ab0.webp?v=1714707784","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9146e1ec04c8a19bb082d86c960c5ba66b9355f8_381d7a7e-9930-4c0a-9f3c-35328483589d.webp?v=1714707787","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12bdb1811fd60032cff03e383429ec9463045952_8b21008f-0277-4dad-97de-bdf95cca25d5.webp?v=1714707789","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6eebaa6f988eaf801a8d1d835ed522b4783513ef_c3908a85-5b37-4b0d-a390-243d32dbab8c.webp?v=1714707791","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbe9c9b261e26b0835c877246ba85d2aeb2d1855_2b0d87c9-0630-4dd6-8996-0354d286ed97.webp?v=1714707793"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a99cb902bbb6413ca06f1ffcdf5e69abe2a6d360_71b15c8a-9cdc-4892-b894-caf480a20c62.webp?v=1714707772","options":["color"],"media":[{"alt":null,"id":23875892543587,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a99cb902bbb6413ca06f1ffcdf5e69abe2a6d360_71b15c8a-9cdc-4892-b894-caf480a20c62.webp?v=1714707772"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a99cb902bbb6413ca06f1ffcdf5e69abe2a6d360_71b15c8a-9cdc-4892-b894-caf480a20c62.webp?v=1714707772","width":2000},{"alt":null,"id":23875893067875,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abfac7c3cd29cfe76accf5369f46c8168a4cd315_72e16a2f-6af0-4338-a50b-30945e1a661e.webp?v=1714707775"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abfac7c3cd29cfe76accf5369f46c8168a4cd315_72e16a2f-6af0-4338-a50b-30945e1a661e.webp?v=1714707775","width":2000},{"alt":null,"id":23875893526627,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99b1ffe50b842cce6ec8317149bb7c492679e809_05e2a55d-3bb8-4dac-a4c2-bb415d46a907.webp?v=1714707777"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99b1ffe50b842cce6ec8317149bb7c492679e809_05e2a55d-3bb8-4dac-a4c2-bb415d46a907.webp?v=1714707777","width":2000},{"alt":null,"id":23875894083683,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c9e27a6a07a1f0d0b3e7242fba197cf8d690ca2_815d3ac3-9a7e-4065-9047-75389de3d8b7.webp?v=1714707779"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c9e27a6a07a1f0d0b3e7242fba197cf8d690ca2_815d3ac3-9a7e-4065-9047-75389de3d8b7.webp?v=1714707779","width":2000},{"alt":null,"id":23875894542435,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c124df480544d70a38446ec612817f85f5dd0e15_8c8e81c7-646f-4ee0-a386-d880c17b52f2.webp?v=1714707782"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c124df480544d70a38446ec612817f85f5dd0e15_8c8e81c7-646f-4ee0-a386-d880c17b52f2.webp?v=1714707782","width":2000},{"alt":null,"id":23875895001187,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7760097cbe97646453a644b5b438506fa6a86af4_67c0114b-de16-45ef-bd7a-3a37f2883ab0.webp?v=1714707784"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7760097cbe97646453a644b5b438506fa6a86af4_67c0114b-de16-45ef-bd7a-3a37f2883ab0.webp?v=1714707784","width":2000},{"alt":null,"id":23875895525475,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9146e1ec04c8a19bb082d86c960c5ba66b9355f8_381d7a7e-9930-4c0a-9f3c-35328483589d.webp?v=1714707787"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9146e1ec04c8a19bb082d86c960c5ba66b9355f8_381d7a7e-9930-4c0a-9f3c-35328483589d.webp?v=1714707787","width":2000},{"alt":null,"id":23875895984227,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12bdb1811fd60032cff03e383429ec9463045952_8b21008f-0277-4dad-97de-bdf95cca25d5.webp?v=1714707789"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12bdb1811fd60032cff03e383429ec9463045952_8b21008f-0277-4dad-97de-bdf95cca25d5.webp?v=1714707789","width":2000},{"alt":null,"id":23875896475747,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6eebaa6f988eaf801a8d1d835ed522b4783513ef_c3908a85-5b37-4b0d-a390-243d32dbab8c.webp?v=1714707791"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6eebaa6f988eaf801a8d1d835ed522b4783513ef_c3908a85-5b37-4b0d-a390-243d32dbab8c.webp?v=1714707791","width":2000},{"alt":null,"id":23875896868963,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbe9c9b261e26b0835c877246ba85d2aeb2d1855_2b0d87c9-0630-4dd6-8996-0354d286ed97.webp?v=1714707793"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbe9c9b261e26b0835c877246ba85d2aeb2d1855_2b0d87c9-0630-4dd6-8996-0354d286ed97.webp?v=1714707793","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41881792938083,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31470989148259,"product_id":7408020815971,"position":4,"created_at":"2024-05-03T11:42:59+08:00","updated_at":"2024-05-03T11:42:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c9e27a6a07a1f0d0b3e7242fba197cf8d690ca2_815d3ac3-9a7e-4065-9047-75389de3d8b7.webp?v=1714707779","variant_ids":[41881792938083]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro 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":"NPB0123224-PB01","featured_media":{"alt":null,"id":23875894083683,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c9e27a6a07a1f0d0b3e7242fba197cf8d690ca2_815d3ac3-9a7e-4065-9047-75389de3d8b7.webp?v=1714707779"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881793232995,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31470988099683,"product_id":7408020815971,"position":2,"created_at":"2024-05-03T11:42:54+08:00","updated_at":"2024-05-03T11:42:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abfac7c3cd29cfe76accf5369f46c8168a4cd315_72e16a2f-6af0-4338-a50b-30945e1a661e.webp?v=1714707775","variant_ids":[41881793232995]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro 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":"NPB01232J5-PB01","featured_media":{"alt":null,"id":23875893067875,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abfac7c3cd29cfe76accf5369f46c8168a4cd315_72e16a2f-6af0-4338-a50b-30945e1a661e.webp?v=1714707775"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41881792938083,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB01","requires_shipping":true,"taxable":true,"featured_image":{"id":31470989148259,"product_id":7408020815971,"position":4,"created_at":"2024-05-03T11:42:59+08:00","updated_at":"2024-05-03T11:42:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c9e27a6a07a1f0d0b3e7242fba197cf8d690ca2_815d3ac3-9a7e-4065-9047-75389de3d8b7.webp?v=1714707779","variant_ids":[41881792938083]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro 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":"NPB0123224-PB01","featured_media":{"alt":null,"id":23875894083683,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c9e27a6a07a1f0d0b3e7242fba197cf8d690ca2_815d3ac3-9a7e-4065-9047-75389de3d8b7.webp?v=1714707779"}},"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: "停產" }