$product = {"id":7407747825763,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 波巴菲特-剪紙系列","handle":"iphone-14-plus-mod-nx-printable-pb58","description":null,"published_at":"2024-06-11T16:22:43+08:00","created_at":"2024-05-03T10:47:32+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":41878359801955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB58","requires_shipping":true,"taxable":true,"featured_image":{"id":31470318977123,"product_id":7407747825763,"position":9,"created_at":"2024-05-03T10:47:54+08:00","updated_at":"2024-05-03T10:47:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf8c40ea9c6b91f3ac3dda5f805c0bc75c88cda5_50302fbe-63a4-402a-89e8-e303fc896dfe.webp?v=1714704474","variant_ids":[41878359801955]},"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-PB58","featured_media":{"alt":null,"id":23875222241379,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf8c40ea9c6b91f3ac3dda5f805c0bc75c88cda5_50302fbe-63a4-402a-89e8-e303fc896dfe.webp?v=1714704474"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5897b55f6283c45fe3b1e0522f1386c2b0a8fb7d_c5e206a1-d85c-4286-9211-4a262784071a.webp?v=1714704455","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38e43ac5b6815ec1909cb26969078b7ddee11f73_a05d677a-f5ed-4abe-b595-26579d181ccc.webp?v=1714704457","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d638ed51d222859db3551ccb6d4ef10729455b93_f28c1867-c54c-48f7-abe7-122a8a60be74.webp?v=1714704459","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/592d999add94f5fe0527652fabe3b7249bd35aac_921c4a12-16ac-40f5-a0ac-1bc8abf8aae7.webp?v=1714704462","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d331a0a2ae315e17d64cca630fa8a8c871bad041_83038e79-f807-480a-82d2-d3aac0377490.webp?v=1714704464","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd75c7e06adaba88f6126b9e6aaf68c991783c23_e2a3cd62-4996-4c2e-9641-c726d7822b30.webp?v=1714704467","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf95383ba40a2f1b901aa11192f7faef744a6ae5_2d518bf8-9d72-4295-b223-3fc07f3e42ec.webp?v=1714704470","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be02c0c80ad6208cb9d36a3b7e2a492aee4e36ae_7d1d92d2-ab13-4e63-92ab-9c9898e6c8a6.webp?v=1714704472","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf8c40ea9c6b91f3ac3dda5f805c0bc75c88cda5_50302fbe-63a4-402a-89e8-e303fc896dfe.webp?v=1714704474","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d79b7b58f2e1d75ec42e74dd77228166f90dcc0f_8ae47abc-025f-40f1-85ba-4f43f95aebfe.webp?v=1714704477"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5897b55f6283c45fe3b1e0522f1386c2b0a8fb7d_c5e206a1-d85c-4286-9211-4a262784071a.webp?v=1714704455","options":["color"],"media":[{"alt":null,"id":23875216900195,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5897b55f6283c45fe3b1e0522f1386c2b0a8fb7d_c5e206a1-d85c-4286-9211-4a262784071a.webp?v=1714704455"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5897b55f6283c45fe3b1e0522f1386c2b0a8fb7d_c5e206a1-d85c-4286-9211-4a262784071a.webp?v=1714704455","width":2000},{"alt":null,"id":23875217358947,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38e43ac5b6815ec1909cb26969078b7ddee11f73_a05d677a-f5ed-4abe-b595-26579d181ccc.webp?v=1714704457"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38e43ac5b6815ec1909cb26969078b7ddee11f73_a05d677a-f5ed-4abe-b595-26579d181ccc.webp?v=1714704457","width":2000},{"alt":null,"id":23875217981539,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d638ed51d222859db3551ccb6d4ef10729455b93_f28c1867-c54c-48f7-abe7-122a8a60be74.webp?v=1714704459"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d638ed51d222859db3551ccb6d4ef10729455b93_f28c1867-c54c-48f7-abe7-122a8a60be74.webp?v=1714704459","width":2000},{"alt":null,"id":23875218767971,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/592d999add94f5fe0527652fabe3b7249bd35aac_921c4a12-16ac-40f5-a0ac-1bc8abf8aae7.webp?v=1714704462"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/592d999add94f5fe0527652fabe3b7249bd35aac_921c4a12-16ac-40f5-a0ac-1bc8abf8aae7.webp?v=1714704462","width":2000},{"alt":null,"id":23875219456099,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d331a0a2ae315e17d64cca630fa8a8c871bad041_83038e79-f807-480a-82d2-d3aac0377490.webp?v=1714704464"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d331a0a2ae315e17d64cca630fa8a8c871bad041_83038e79-f807-480a-82d2-d3aac0377490.webp?v=1714704464","width":2000},{"alt":null,"id":23875220045923,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd75c7e06adaba88f6126b9e6aaf68c991783c23_e2a3cd62-4996-4c2e-9641-c726d7822b30.webp?v=1714704467"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd75c7e06adaba88f6126b9e6aaf68c991783c23_e2a3cd62-4996-4c2e-9641-c726d7822b30.webp?v=1714704467","width":2000},{"alt":null,"id":23875221028963,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf95383ba40a2f1b901aa11192f7faef744a6ae5_2d518bf8-9d72-4295-b223-3fc07f3e42ec.webp?v=1714704470"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf95383ba40a2f1b901aa11192f7faef744a6ae5_2d518bf8-9d72-4295-b223-3fc07f3e42ec.webp?v=1714704470","width":2000},{"alt":null,"id":23875221520483,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be02c0c80ad6208cb9d36a3b7e2a492aee4e36ae_7d1d92d2-ab13-4e63-92ab-9c9898e6c8a6.webp?v=1714704472"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be02c0c80ad6208cb9d36a3b7e2a492aee4e36ae_7d1d92d2-ab13-4e63-92ab-9c9898e6c8a6.webp?v=1714704472","width":2000},{"alt":null,"id":23875222241379,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf8c40ea9c6b91f3ac3dda5f805c0bc75c88cda5_50302fbe-63a4-402a-89e8-e303fc896dfe.webp?v=1714704474"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf8c40ea9c6b91f3ac3dda5f805c0bc75c88cda5_50302fbe-63a4-402a-89e8-e303fc896dfe.webp?v=1714704474","width":2000},{"alt":null,"id":23875222896739,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d79b7b58f2e1d75ec42e74dd77228166f90dcc0f_8ae47abc-025f-40f1-85ba-4f43f95aebfe.webp?v=1714704477"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d79b7b58f2e1d75ec42e74dd77228166f90dcc0f_8ae47abc-025f-40f1-85ba-4f43f95aebfe.webp?v=1714704477","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41878359801955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB58","requires_shipping":true,"taxable":true,"featured_image":{"id":31470318977123,"product_id":7407747825763,"position":9,"created_at":"2024-05-03T10:47:54+08:00","updated_at":"2024-05-03T10:47:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf8c40ea9c6b91f3ac3dda5f805c0bc75c88cda5_50302fbe-63a4-402a-89e8-e303fc896dfe.webp?v=1714704474","variant_ids":[41878359801955]},"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-PB58","featured_media":{"alt":null,"id":23875222241379,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf8c40ea9c6b91f3ac3dda5f805c0bc75c88cda5_50302fbe-63a4-402a-89e8-e303fc896dfe.webp?v=1714704474"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41878359801955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB58","requires_shipping":true,"taxable":true,"featured_image":{"id":31470318977123,"product_id":7407747825763,"position":9,"created_at":"2024-05-03T10:47:54+08:00","updated_at":"2024-05-03T10:47:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf8c40ea9c6b91f3ac3dda5f805c0bc75c88cda5_50302fbe-63a4-402a-89e8-e303fc896dfe.webp?v=1714704474","variant_ids":[41878359801955]},"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-PB58","featured_media":{"alt":null,"id":23875222241379,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf8c40ea9c6b91f3ac3dda5f805c0bc75c88cda5_50302fbe-63a4-402a-89e8-e303fc896dfe.webp?v=1714704474"}},"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: "停產" }