$product = {"id":7408058269795,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星際大戰四部曲:曙光乍現-電影海報","handle":"iphone-13-pro-max-mod-nx-printable-pb101","description":null,"published_at":"2024-06-11T16:30:16+08:00","created_at":"2024-05-03T11:50:58+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":41882213679203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB101","requires_shipping":true,"taxable":true,"featured_image":{"id":31471087517795,"product_id":7408058269795,"position":7,"created_at":"2024-05-03T11:51:16+08:00","updated_at":"2024-05-03T11:51:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce8f7142873f5501ef779ccaf46d73cdbc8d8dc4_196675c7-fa5b-4c9f-b391-73e08ceda394.webp?v=1714708276","variant_ids":[41882213679203]},"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-PB101","featured_media":{"alt":null,"id":23875992617059,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce8f7142873f5501ef779ccaf46d73cdbc8d8dc4_196675c7-fa5b-4c9f-b391-73e08ceda394.webp?v=1714708276"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882214170723,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB101","requires_shipping":true,"taxable":true,"featured_image":{"id":31471086370915,"product_id":7408058269795,"position":4,"created_at":"2024-05-03T11:51:08+08:00","updated_at":"2024-05-03T11:51:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47f32182db4e22cf089e1eabf20c55d331c78c6b_46fae415-b2e4-4494-b0db-10a633e3864c.webp?v=1714708268","variant_ids":[41882214170723]},"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-PB101","featured_media":{"alt":null,"id":23875991502947,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47f32182db4e22cf089e1eabf20c55d331c78c6b_46fae415-b2e4-4494-b0db-10a633e3864c.webp?v=1714708268"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/602e1ab74c41b831fc61388f832690ba1f4f75f6_e3e8abd3-39ce-4428-9227-08e5260196fe.webp?v=1714708261","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/116ae0458cd2f67b620aa7a45d37ec38d545d23b_c97a6018-54ef-4c24-bc0d-1470e25e011f.webp?v=1714708263","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f09a122547bd31474e13c477751b64b222e1241_36e9d731-c95a-4885-99ce-49d392aa63b2.webp?v=1714708266","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47f32182db4e22cf089e1eabf20c55d331c78c6b_46fae415-b2e4-4494-b0db-10a633e3864c.webp?v=1714708268","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f30ba5d60c97479e6a3ee5474ba1e617a146dbe_4cdeb10f-0082-4fe5-ab52-925b460a36d1.webp?v=1714708271","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1f994f128b748035422529122e2a2b4f3a6d849_f0f31d3b-6a9a-4edc-98d7-2f628ac07af3.webp?v=1714708273","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce8f7142873f5501ef779ccaf46d73cdbc8d8dc4_196675c7-fa5b-4c9f-b391-73e08ceda394.webp?v=1714708276","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46623f2c33a4f0f01cb1236e008744f3b62591aa_c645c6af-c184-44df-a09d-dd0257501510.webp?v=1714708278","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/835d4fa7564fb551d672eb9205da887c1a64c6b0_129c6810-a447-4618-a7b9-d8440fa745fd.webp?v=1714708280","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20971be53f3ad6a5af83d0b685aa97276ec9c0a7_dc17b215-55c5-41d8-82f5-f60bea0d6aac.webp?v=1714708283"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/602e1ab74c41b831fc61388f832690ba1f4f75f6_e3e8abd3-39ce-4428-9227-08e5260196fe.webp?v=1714708261","options":["color"],"media":[{"alt":null,"id":23875989897315,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/602e1ab74c41b831fc61388f832690ba1f4f75f6_e3e8abd3-39ce-4428-9227-08e5260196fe.webp?v=1714708261"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/602e1ab74c41b831fc61388f832690ba1f4f75f6_e3e8abd3-39ce-4428-9227-08e5260196fe.webp?v=1714708261","width":2000},{"alt":null,"id":23875990388835,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/116ae0458cd2f67b620aa7a45d37ec38d545d23b_c97a6018-54ef-4c24-bc0d-1470e25e011f.webp?v=1714708263"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/116ae0458cd2f67b620aa7a45d37ec38d545d23b_c97a6018-54ef-4c24-bc0d-1470e25e011f.webp?v=1714708263","width":2000},{"alt":null,"id":23875991142499,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f09a122547bd31474e13c477751b64b222e1241_36e9d731-c95a-4885-99ce-49d392aa63b2.webp?v=1714708266"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f09a122547bd31474e13c477751b64b222e1241_36e9d731-c95a-4885-99ce-49d392aa63b2.webp?v=1714708266","width":2000},{"alt":null,"id":23875991502947,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47f32182db4e22cf089e1eabf20c55d331c78c6b_46fae415-b2e4-4494-b0db-10a633e3864c.webp?v=1714708268"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47f32182db4e22cf089e1eabf20c55d331c78c6b_46fae415-b2e4-4494-b0db-10a633e3864c.webp?v=1714708268","width":2000},{"alt":null,"id":23875991896163,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f30ba5d60c97479e6a3ee5474ba1e617a146dbe_4cdeb10f-0082-4fe5-ab52-925b460a36d1.webp?v=1714708271"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f30ba5d60c97479e6a3ee5474ba1e617a146dbe_4cdeb10f-0082-4fe5-ab52-925b460a36d1.webp?v=1714708271","width":2000},{"alt":null,"id":23875992223843,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1f994f128b748035422529122e2a2b4f3a6d849_f0f31d3b-6a9a-4edc-98d7-2f628ac07af3.webp?v=1714708273"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1f994f128b748035422529122e2a2b4f3a6d849_f0f31d3b-6a9a-4edc-98d7-2f628ac07af3.webp?v=1714708273","width":2000},{"alt":null,"id":23875992617059,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce8f7142873f5501ef779ccaf46d73cdbc8d8dc4_196675c7-fa5b-4c9f-b391-73e08ceda394.webp?v=1714708276"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce8f7142873f5501ef779ccaf46d73cdbc8d8dc4_196675c7-fa5b-4c9f-b391-73e08ceda394.webp?v=1714708276","width":2000},{"alt":null,"id":23875993239651,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46623f2c33a4f0f01cb1236e008744f3b62591aa_c645c6af-c184-44df-a09d-dd0257501510.webp?v=1714708278"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46623f2c33a4f0f01cb1236e008744f3b62591aa_c645c6af-c184-44df-a09d-dd0257501510.webp?v=1714708278","width":2000},{"alt":null,"id":23875993501795,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/835d4fa7564fb551d672eb9205da887c1a64c6b0_129c6810-a447-4618-a7b9-d8440fa745fd.webp?v=1714708280"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/835d4fa7564fb551d672eb9205da887c1a64c6b0_129c6810-a447-4618-a7b9-d8440fa745fd.webp?v=1714708280","width":2000},{"alt":null,"id":23875993927779,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20971be53f3ad6a5af83d0b685aa97276ec9c0a7_dc17b215-55c5-41d8-82f5-f60bea0d6aac.webp?v=1714708283"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20971be53f3ad6a5af83d0b685aa97276ec9c0a7_dc17b215-55c5-41d8-82f5-f60bea0d6aac.webp?v=1714708283","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41882213679203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB101","requires_shipping":true,"taxable":true,"featured_image":{"id":31471087517795,"product_id":7408058269795,"position":7,"created_at":"2024-05-03T11:51:16+08:00","updated_at":"2024-05-03T11:51:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce8f7142873f5501ef779ccaf46d73cdbc8d8dc4_196675c7-fa5b-4c9f-b391-73e08ceda394.webp?v=1714708276","variant_ids":[41882213679203]},"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-PB101","featured_media":{"alt":null,"id":23875992617059,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce8f7142873f5501ef779ccaf46d73cdbc8d8dc4_196675c7-fa5b-4c9f-b391-73e08ceda394.webp?v=1714708276"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882214170723,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB101","requires_shipping":true,"taxable":true,"featured_image":{"id":31471086370915,"product_id":7408058269795,"position":4,"created_at":"2024-05-03T11:51:08+08:00","updated_at":"2024-05-03T11:51:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47f32182db4e22cf089e1eabf20c55d331c78c6b_46fae415-b2e4-4494-b0db-10a633e3864c.webp?v=1714708268","variant_ids":[41882214170723]},"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-PB101","featured_media":{"alt":null,"id":23875991502947,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47f32182db4e22cf089e1eabf20c55d331c78c6b_46fae415-b2e4-4494-b0db-10a633e3864c.webp?v=1714708268"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41882213679203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB101","requires_shipping":true,"taxable":true,"featured_image":{"id":31471087517795,"product_id":7408058269795,"position":7,"created_at":"2024-05-03T11:51:16+08:00","updated_at":"2024-05-03T11:51:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce8f7142873f5501ef779ccaf46d73cdbc8d8dc4_196675c7-fa5b-4c9f-b391-73e08ceda394.webp?v=1714708276","variant_ids":[41882213679203]},"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-PB101","featured_media":{"alt":null,"id":23875992617059,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce8f7142873f5501ef779ccaf46d73cdbc8d8dc4_196675c7-fa5b-4c9f-b391-73e08ceda394.webp?v=1714708276"}},"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: "停產" }