$product = {"id":7407991423075,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星際大戰四部曲:曙光乍現-電影海報","handle":"iphone-14-plus-mod-nx-printable-pb101","description":null,"published_at":"2024-06-11T16:28:30+08:00","created_at":"2024-05-03T11:30: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 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":41881459130467,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB101","requires_shipping":true,"taxable":true,"featured_image":{"id":31470897725539,"product_id":7407991423075,"position":9,"created_at":"2024-05-03T11:30:47+08:00","updated_at":"2024-05-03T11:30:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf13c2d0594376cf9e80cf750857743a84f329fc_3c6d5f76-3da7-41ca-95ba-8e613f3bd937.webp?v=1714707047","variant_ids":[41881459130467]},"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-PB101","featured_media":{"alt":null,"id":23875802366051,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf13c2d0594376cf9e80cf750857743a84f329fc_3c6d5f76-3da7-41ca-95ba-8e613f3bd937.webp?v=1714707047"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e8dbfbf0c0fc8679ebb5f476bd701177bbdbcf8_8f80a240-eee0-4797-83b9-2403bba8707f.webp?v=1714707027","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/552510edb0d62cc6ccc1bc910241584c8efec533_815ea514-8c24-48c1-8757-ef179916b475.webp?v=1714707030","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee36545ff392edc98c4fec7ee289d7d09201f5ca_9eb3ebea-f041-4bc9-a2a6-d52227b52d5c.webp?v=1714707032","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f56881d93d2fece5af416fe3e21be52cd66b356_75054643-8f24-4346-966a-d4800a2c464a.webp?v=1714707035","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69cfadccb612ee885f2f7aaa5865aa9052758cba_fead2b22-e3d4-416f-a79e-a3461c80a039.webp?v=1714707037","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7d629447dbafc5d6f15ee3a900f29b75f6085f7_65f75626-0fe6-45fa-9c04-2bb2f4d082ef.webp?v=1714707039","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d513a112d2c1bde90b7f755758c6c87d0c3f2bfb_8ecbf3a9-06f5-43a7-81dc-2bc6d4d62b23.webp?v=1714707042","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef8ce7d3e22684a15473fbf576dd69016dccfcc0_3cf178f2-2b1e-44bb-a4e9-f744b8142e0f.webp?v=1714707044","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf13c2d0594376cf9e80cf750857743a84f329fc_3c6d5f76-3da7-41ca-95ba-8e613f3bd937.webp?v=1714707047","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/419a4560788db505d95f99ffa67fb1f06aa90a6c_34d741a1-edd6-488c-b7eb-2b0ee33ce2b6.webp?v=1714707049"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e8dbfbf0c0fc8679ebb5f476bd701177bbdbcf8_8f80a240-eee0-4797-83b9-2403bba8707f.webp?v=1714707027","options":["color"],"media":[{"alt":null,"id":23875798794339,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e8dbfbf0c0fc8679ebb5f476bd701177bbdbcf8_8f80a240-eee0-4797-83b9-2403bba8707f.webp?v=1714707027"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e8dbfbf0c0fc8679ebb5f476bd701177bbdbcf8_8f80a240-eee0-4797-83b9-2403bba8707f.webp?v=1714707027","width":2000},{"alt":null,"id":23875799253091,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/552510edb0d62cc6ccc1bc910241584c8efec533_815ea514-8c24-48c1-8757-ef179916b475.webp?v=1714707030"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/552510edb0d62cc6ccc1bc910241584c8efec533_815ea514-8c24-48c1-8757-ef179916b475.webp?v=1714707030","width":2000},{"alt":null,"id":23875799548003,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee36545ff392edc98c4fec7ee289d7d09201f5ca_9eb3ebea-f041-4bc9-a2a6-d52227b52d5c.webp?v=1714707032"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee36545ff392edc98c4fec7ee289d7d09201f5ca_9eb3ebea-f041-4bc9-a2a6-d52227b52d5c.webp?v=1714707032","width":2000},{"alt":null,"id":23875800203363,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f56881d93d2fece5af416fe3e21be52cd66b356_75054643-8f24-4346-966a-d4800a2c464a.webp?v=1714707035"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f56881d93d2fece5af416fe3e21be52cd66b356_75054643-8f24-4346-966a-d4800a2c464a.webp?v=1714707035","width":2000},{"alt":null,"id":23875800760419,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69cfadccb612ee885f2f7aaa5865aa9052758cba_fead2b22-e3d4-416f-a79e-a3461c80a039.webp?v=1714707037"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69cfadccb612ee885f2f7aaa5865aa9052758cba_fead2b22-e3d4-416f-a79e-a3461c80a039.webp?v=1714707037","width":2000},{"alt":null,"id":23875801153635,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7d629447dbafc5d6f15ee3a900f29b75f6085f7_65f75626-0fe6-45fa-9c04-2bb2f4d082ef.webp?v=1714707039"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7d629447dbafc5d6f15ee3a900f29b75f6085f7_65f75626-0fe6-45fa-9c04-2bb2f4d082ef.webp?v=1714707039","width":2000},{"alt":null,"id":23875801579619,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d513a112d2c1bde90b7f755758c6c87d0c3f2bfb_8ecbf3a9-06f5-43a7-81dc-2bc6d4d62b23.webp?v=1714707042"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d513a112d2c1bde90b7f755758c6c87d0c3f2bfb_8ecbf3a9-06f5-43a7-81dc-2bc6d4d62b23.webp?v=1714707042","width":2000},{"alt":null,"id":23875802005603,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef8ce7d3e22684a15473fbf576dd69016dccfcc0_3cf178f2-2b1e-44bb-a4e9-f744b8142e0f.webp?v=1714707044"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef8ce7d3e22684a15473fbf576dd69016dccfcc0_3cf178f2-2b1e-44bb-a4e9-f744b8142e0f.webp?v=1714707044","width":2000},{"alt":null,"id":23875802366051,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf13c2d0594376cf9e80cf750857743a84f329fc_3c6d5f76-3da7-41ca-95ba-8e613f3bd937.webp?v=1714707047"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf13c2d0594376cf9e80cf750857743a84f329fc_3c6d5f76-3da7-41ca-95ba-8e613f3bd937.webp?v=1714707047","width":2000},{"alt":null,"id":23875802529891,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/419a4560788db505d95f99ffa67fb1f06aa90a6c_34d741a1-edd6-488c-b7eb-2b0ee33ce2b6.webp?v=1714707049"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/419a4560788db505d95f99ffa67fb1f06aa90a6c_34d741a1-edd6-488c-b7eb-2b0ee33ce2b6.webp?v=1714707049","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41881459130467,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB101","requires_shipping":true,"taxable":true,"featured_image":{"id":31470897725539,"product_id":7407991423075,"position":9,"created_at":"2024-05-03T11:30:47+08:00","updated_at":"2024-05-03T11:30:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf13c2d0594376cf9e80cf750857743a84f329fc_3c6d5f76-3da7-41ca-95ba-8e613f3bd937.webp?v=1714707047","variant_ids":[41881459130467]},"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-PB101","featured_media":{"alt":null,"id":23875802366051,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf13c2d0594376cf9e80cf750857743a84f329fc_3c6d5f76-3da7-41ca-95ba-8e613f3bd937.webp?v=1714707047"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41881459130467,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB101","requires_shipping":true,"taxable":true,"featured_image":{"id":31470897725539,"product_id":7407991423075,"position":9,"created_at":"2024-05-03T11:30:47+08:00","updated_at":"2024-05-03T11:30:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf13c2d0594376cf9e80cf750857743a84f329fc_3c6d5f76-3da7-41ca-95ba-8e613f3bd937.webp?v=1714707047","variant_ids":[41881459130467]},"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-PB101","featured_media":{"alt":null,"id":23875802366051,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf13c2d0594376cf9e80cf750857743a84f329fc_3c6d5f76-3da7-41ca-95ba-8e613f3bd937.webp?v=1714707047"}},"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: "停產" }