$product = {"id":7416345821283,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Pattern 伊沃克人-Galaxy","handle":"iphone-8-mod-nx-printable-pb60","description":null,"published_at":"2024-06-11T16:56:31+08:00","created_at":"2024-05-06T14:38:56+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 8","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":41918734467171,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB60","requires_shipping":true,"taxable":true,"featured_image":{"id":31491899359331,"product_id":7416345821283,"position":2,"created_at":"2024-05-06T14:39:00+08:00","updated_at":"2024-05-06T14:39:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c76916a5e4d7a1d35cea409beceb02329f83c42f_3b851670-1dab-46e7-a068-4c329effbdd5.webp?v=1714977541","variant_ids":[41918734467171]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Pattern 伊沃克人-Galaxy - 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":"NPB0105424-PB60","featured_media":{"alt":null,"id":23897312297059,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c76916a5e4d7a1d35cea409beceb02329f83c42f_3b851670-1dab-46e7-a068-4c329effbdd5.webp?v=1714977541"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce66e5ca4f9b30b650a72d60ca96b956b493cdf6_189343d0-9e36-4c05-b702-f4c6e6391d48.webp?v=1714977538","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c76916a5e4d7a1d35cea409beceb02329f83c42f_3b851670-1dab-46e7-a068-4c329effbdd5.webp?v=1714977541","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e7f541c166db7e93eac4a8160109200174890d7_21d67a54-35c8-4525-831b-d054308a9dcf.webp?v=1714977543","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9687505132f9e84bbe95a316859904343d5edb0a_fc440cd6-2327-4eba-84e1-44e354a7db9a.webp?v=1714977546","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/970dc5cfcd4646f152cb5b2fc3dbad3afd70ba5c_5c5b39ec-4866-417c-a93d-ada8d03a8bf8.webp?v=1714977548","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05094ebb0ed62ada56b545adf2676b54a65f98a4_6d8965bd-78d9-4b22-9e06-3632d8f80ea3.webp?v=1714977551","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a87e7eec667bd36d346c817c8644e950736bbfbc_e03a1f3e-17ae-4dce-81ba-7652df70b288.webp?v=1714977553","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d69953ddd79014a3cc7b66889231be85fb81c06a_230ee057-c42a-4aca-9ba3-843b9b61220a.webp?v=1714977555","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33be50106a6bd01a435e182edfebbaea90c117ef_8d814522-9d1e-41d0-91dc-251424571a60.webp?v=1714977558","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e84b383044404ed720707074021153ba60428201_ab14c453-735b-4af0-b80b-dffbcf88b24a.webp?v=1714977560"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce66e5ca4f9b30b650a72d60ca96b956b493cdf6_189343d0-9e36-4c05-b702-f4c6e6391d48.webp?v=1714977538","options":["color"],"media":[{"alt":null,"id":23897311641699,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce66e5ca4f9b30b650a72d60ca96b956b493cdf6_189343d0-9e36-4c05-b702-f4c6e6391d48.webp?v=1714977538"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce66e5ca4f9b30b650a72d60ca96b956b493cdf6_189343d0-9e36-4c05-b702-f4c6e6391d48.webp?v=1714977538","width":2000},{"alt":null,"id":23897312297059,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c76916a5e4d7a1d35cea409beceb02329f83c42f_3b851670-1dab-46e7-a068-4c329effbdd5.webp?v=1714977541"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c76916a5e4d7a1d35cea409beceb02329f83c42f_3b851670-1dab-46e7-a068-4c329effbdd5.webp?v=1714977541","width":2000},{"alt":null,"id":23897312886883,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e7f541c166db7e93eac4a8160109200174890d7_21d67a54-35c8-4525-831b-d054308a9dcf.webp?v=1714977543"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e7f541c166db7e93eac4a8160109200174890d7_21d67a54-35c8-4525-831b-d054308a9dcf.webp?v=1714977543","width":2000},{"alt":null,"id":23897313411171,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9687505132f9e84bbe95a316859904343d5edb0a_fc440cd6-2327-4eba-84e1-44e354a7db9a.webp?v=1714977546"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9687505132f9e84bbe95a316859904343d5edb0a_fc440cd6-2327-4eba-84e1-44e354a7db9a.webp?v=1714977546","width":2000},{"alt":null,"id":23897313902691,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/970dc5cfcd4646f152cb5b2fc3dbad3afd70ba5c_5c5b39ec-4866-417c-a93d-ada8d03a8bf8.webp?v=1714977548"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/970dc5cfcd4646f152cb5b2fc3dbad3afd70ba5c_5c5b39ec-4866-417c-a93d-ada8d03a8bf8.webp?v=1714977548","width":2000},{"alt":null,"id":23897314426979,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05094ebb0ed62ada56b545adf2676b54a65f98a4_6d8965bd-78d9-4b22-9e06-3632d8f80ea3.webp?v=1714977551"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05094ebb0ed62ada56b545adf2676b54a65f98a4_6d8965bd-78d9-4b22-9e06-3632d8f80ea3.webp?v=1714977551","width":2000},{"alt":null,"id":23897314951267,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a87e7eec667bd36d346c817c8644e950736bbfbc_e03a1f3e-17ae-4dce-81ba-7652df70b288.webp?v=1714977553"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a87e7eec667bd36d346c817c8644e950736bbfbc_e03a1f3e-17ae-4dce-81ba-7652df70b288.webp?v=1714977553","width":2000},{"alt":null,"id":23897315442787,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d69953ddd79014a3cc7b66889231be85fb81c06a_230ee057-c42a-4aca-9ba3-843b9b61220a.webp?v=1714977555"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d69953ddd79014a3cc7b66889231be85fb81c06a_230ee057-c42a-4aca-9ba3-843b9b61220a.webp?v=1714977555","width":2000},{"alt":null,"id":23897315901539,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33be50106a6bd01a435e182edfebbaea90c117ef_8d814522-9d1e-41d0-91dc-251424571a60.webp?v=1714977558"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33be50106a6bd01a435e182edfebbaea90c117ef_8d814522-9d1e-41d0-91dc-251424571a60.webp?v=1714977558","width":2000},{"alt":null,"id":23897317408867,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e84b383044404ed720707074021153ba60428201_ab14c453-735b-4af0-b80b-dffbcf88b24a.webp?v=1714977560"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e84b383044404ed720707074021153ba60428201_ab14c453-735b-4af0-b80b-dffbcf88b24a.webp?v=1714977560","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918734467171,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB60","requires_shipping":true,"taxable":true,"featured_image":{"id":31491899359331,"product_id":7416345821283,"position":2,"created_at":"2024-05-06T14:39:00+08:00","updated_at":"2024-05-06T14:39:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c76916a5e4d7a1d35cea409beceb02329f83c42f_3b851670-1dab-46e7-a068-4c329effbdd5.webp?v=1714977541","variant_ids":[41918734467171]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Pattern 伊沃克人-Galaxy - 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":"NPB0105424-PB60","featured_media":{"alt":null,"id":23897312297059,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c76916a5e4d7a1d35cea409beceb02329f83c42f_3b851670-1dab-46e7-a068-4c329effbdd5.webp?v=1714977541"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918734467171,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB60","requires_shipping":true,"taxable":true,"featured_image":{"id":31491899359331,"product_id":7416345821283,"position":2,"created_at":"2024-05-06T14:39:00+08:00","updated_at":"2024-05-06T14:39:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c76916a5e4d7a1d35cea409beceb02329f83c42f_3b851670-1dab-46e7-a068-4c329effbdd5.webp?v=1714977541","variant_ids":[41918734467171]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Pattern 伊沃克人-Galaxy - 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":"NPB0105424-PB60","featured_media":{"alt":null,"id":23897312297059,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c76916a5e4d7a1d35cea409beceb02329f83c42f_3b851670-1dab-46e7-a068-4c329effbdd5.webp?v=1714977541"}},"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: "停產" }