$product = {"id":7408477962339,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-大臉系列","handle":"iphone-12-pro-max-mod-nx-printable-pb77","description":null,"published_at":"2024-06-11T16:38:20+08:00","created_at":"2024-05-03T15:34:25+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 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":41885926457443,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31472377725027,"product_id":7408477962339,"position":4,"created_at":"2024-05-03T15:34:34+08:00","updated_at":"2024-05-03T15:34:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d33357c006f53d0084cc18cf44d1999370de34a0_387c9fba-36c5-423e-a53c-e619a6c5aa5a.webp?v=1714721674","variant_ids":[41885926457443]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 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":"NPB0118724-PB77","featured_media":{"alt":null,"id":23877294620771,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d33357c006f53d0084cc18cf44d1999370de34a0_387c9fba-36c5-423e-a53c-e619a6c5aa5a.webp?v=1714721674"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41f5bc30e7b8f881bbe0a7a0885e59d0b3ad17be_da8a53dd-4330-4833-ab9c-e2ed4714392e.webp?v=1714721667","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da7a07beb8a203ccf5bbb8fe5a6429e0735ffef3_75783dbb-556e-44e5-8f51-2b508507ef9b.webp?v=1714721670","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ae737c9c77d27392fdaa5be81c8ca24bccf9a6e_e0073c71-a9ce-4913-b5b7-7a1d9d2e1ad4.webp?v=1714721672","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d33357c006f53d0084cc18cf44d1999370de34a0_387c9fba-36c5-423e-a53c-e619a6c5aa5a.webp?v=1714721674","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/004711d8b6fd17f8a5046bbcfdf3a3fe0adfcb3c_58888bfd-064b-41cc-b561-14483d27b054.webp?v=1714721677","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f210ee7a0856275a4f50310d025350c6f88753e_f7025209-0624-49c0-b0fb-a3f511a1b3f3.webp?v=1714721679","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e980368f48aa9e4665c3d63db2f34d3f1086939_b4482d8c-c4e1-4d01-8bde-e627428e2967.webp?v=1714721681","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/573ece74ea829feb7214c245a0f33561279e49a5_28392826-cb6d-4abf-aea8-8181f6c9784b.webp?v=1714721683","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d90d4608588a3ef4a2ebd8c8e8ad16d2544f04e5_1ebd9fde-ccf2-44d6-b10f-c9d13ba155bc.webp?v=1714721685","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b01fc67cf045d4b4f37bedd244d5804f56f5d70_5d997dfb-2eb5-49d4-9b03-6f013539e122.webp?v=1714721688"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41f5bc30e7b8f881bbe0a7a0885e59d0b3ad17be_da8a53dd-4330-4833-ab9c-e2ed4714392e.webp?v=1714721667","options":["color"],"media":[{"alt":null,"id":23877293211747,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41f5bc30e7b8f881bbe0a7a0885e59d0b3ad17be_da8a53dd-4330-4833-ab9c-e2ed4714392e.webp?v=1714721667"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41f5bc30e7b8f881bbe0a7a0885e59d0b3ad17be_da8a53dd-4330-4833-ab9c-e2ed4714392e.webp?v=1714721667","width":2000},{"alt":null,"id":23877293572195,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da7a07beb8a203ccf5bbb8fe5a6429e0735ffef3_75783dbb-556e-44e5-8f51-2b508507ef9b.webp?v=1714721670"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da7a07beb8a203ccf5bbb8fe5a6429e0735ffef3_75783dbb-556e-44e5-8f51-2b508507ef9b.webp?v=1714721670","width":2000},{"alt":null,"id":23877294096483,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ae737c9c77d27392fdaa5be81c8ca24bccf9a6e_e0073c71-a9ce-4913-b5b7-7a1d9d2e1ad4.webp?v=1714721672"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ae737c9c77d27392fdaa5be81c8ca24bccf9a6e_e0073c71-a9ce-4913-b5b7-7a1d9d2e1ad4.webp?v=1714721672","width":2000},{"alt":null,"id":23877294620771,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d33357c006f53d0084cc18cf44d1999370de34a0_387c9fba-36c5-423e-a53c-e619a6c5aa5a.webp?v=1714721674"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d33357c006f53d0084cc18cf44d1999370de34a0_387c9fba-36c5-423e-a53c-e619a6c5aa5a.webp?v=1714721674","width":2000},{"alt":null,"id":23877295145059,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/004711d8b6fd17f8a5046bbcfdf3a3fe0adfcb3c_58888bfd-064b-41cc-b561-14483d27b054.webp?v=1714721677"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/004711d8b6fd17f8a5046bbcfdf3a3fe0adfcb3c_58888bfd-064b-41cc-b561-14483d27b054.webp?v=1714721677","width":2000},{"alt":null,"id":23877295538275,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f210ee7a0856275a4f50310d025350c6f88753e_f7025209-0624-49c0-b0fb-a3f511a1b3f3.webp?v=1714721679"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f210ee7a0856275a4f50310d025350c6f88753e_f7025209-0624-49c0-b0fb-a3f511a1b3f3.webp?v=1714721679","width":2000},{"alt":null,"id":23877296128099,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e980368f48aa9e4665c3d63db2f34d3f1086939_b4482d8c-c4e1-4d01-8bde-e627428e2967.webp?v=1714721681"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e980368f48aa9e4665c3d63db2f34d3f1086939_b4482d8c-c4e1-4d01-8bde-e627428e2967.webp?v=1714721681","width":2000},{"alt":null,"id":23877296619619,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/573ece74ea829feb7214c245a0f33561279e49a5_28392826-cb6d-4abf-aea8-8181f6c9784b.webp?v=1714721683"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/573ece74ea829feb7214c245a0f33561279e49a5_28392826-cb6d-4abf-aea8-8181f6c9784b.webp?v=1714721683","width":2000},{"alt":null,"id":23877297274979,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d90d4608588a3ef4a2ebd8c8e8ad16d2544f04e5_1ebd9fde-ccf2-44d6-b10f-c9d13ba155bc.webp?v=1714721685"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d90d4608588a3ef4a2ebd8c8e8ad16d2544f04e5_1ebd9fde-ccf2-44d6-b10f-c9d13ba155bc.webp?v=1714721685","width":2000},{"alt":null,"id":23877298651235,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b01fc67cf045d4b4f37bedd244d5804f56f5d70_5d997dfb-2eb5-49d4-9b03-6f013539e122.webp?v=1714721688"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b01fc67cf045d4b4f37bedd244d5804f56f5d70_5d997dfb-2eb5-49d4-9b03-6f013539e122.webp?v=1714721688","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885926457443,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31472377725027,"product_id":7408477962339,"position":4,"created_at":"2024-05-03T15:34:34+08:00","updated_at":"2024-05-03T15:34:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d33357c006f53d0084cc18cf44d1999370de34a0_387c9fba-36c5-423e-a53c-e619a6c5aa5a.webp?v=1714721674","variant_ids":[41885926457443]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 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":"NPB0118724-PB77","featured_media":{"alt":null,"id":23877294620771,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d33357c006f53d0084cc18cf44d1999370de34a0_387c9fba-36c5-423e-a53c-e619a6c5aa5a.webp?v=1714721674"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885926457443,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31472377725027,"product_id":7408477962339,"position":4,"created_at":"2024-05-03T15:34:34+08:00","updated_at":"2024-05-03T15:34:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d33357c006f53d0084cc18cf44d1999370de34a0_387c9fba-36c5-423e-a53c-e619a6c5aa5a.webp?v=1714721674","variant_ids":[41885926457443]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 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":"NPB0118724-PB77","featured_media":{"alt":null,"id":23877294620771,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d33357c006f53d0084cc18cf44d1999370de34a0_387c9fba-36c5-423e-a53c-e619a6c5aa5a.webp?v=1714721674"}},"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: "停產" }