$product = {"id":7408506667107,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 小圖款-BB8","handle":"iphone-12-pro-max-mod-nx-printable-pc04","description":null,"published_at":"2024-06-11T16:39:10+08:00","created_at":"2024-05-03T15:40:08+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":41886261870691,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PC04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472454893667,"product_id":7408506667107,"position":6,"created_at":"2024-05-03T15:40:23+08:00","updated_at":"2024-05-03T15:40:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82006ac0145d89827a5d0fe221e3bff844b00e73_93b67b42-b36d-4058-8a50-be29d4e9f37b.webp?v=1714722023","variant_ids":[41886261870691]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 小圖款-BB8 - 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-PC04","featured_media":{"alt":null,"id":23877371953251,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82006ac0145d89827a5d0fe221e3bff844b00e73_93b67b42-b36d-4058-8a50-be29d4e9f37b.webp?v=1714722023"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/587598712727b8051a81b0cde5099b035635d50b_b520f31e-c8cd-415c-8e1e-f64f595fc6fc.webp?v=1714722011","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9dc0c1c4a7a6b89349faa327f4ded10a51ad5df_4abe139e-38bb-47b0-815d-95c12673330d.webp?v=1714722014","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/911cb31616ef2d4b2c251057963927110f423b7d_f2c9c571-0b1c-4138-a7ad-a0c1459c65cd.webp?v=1714722016","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e267f5aeecc1ede869103c83073e66c3d26a165_d08c6a85-fda6-4aea-9a1c-7af481dd22c3.webp?v=1714722018","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c2a13774841eec91f012d0630186c7d71041b59_de9a44aa-49d7-453d-8759-9f3b535ba313.webp?v=1714722021","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82006ac0145d89827a5d0fe221e3bff844b00e73_93b67b42-b36d-4058-8a50-be29d4e9f37b.webp?v=1714722023","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2bce46612cd8e0f0033a15aacbee38805a5541b_1d54002d-715c-4c01-b6d9-e36dd1f68237.webp?v=1714722025","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/619af72434620fc706a1b3cdef4173aa31d1f31b_4a3d1879-4592-4768-bcb9-c719f9e5c627.webp?v=1714722027","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0383fb20887c673136069e2a1c9724ceee0e0ae0_b85f2fc0-3c04-4782-a5b8-0c86e66f48b6.webp?v=1714722029","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30713ff11579b63d38a0a92e53f777a3e6d0e116_2a59f262-708d-4d7b-a246-df02d6a29593.webp?v=1714722032"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/587598712727b8051a81b0cde5099b035635d50b_b520f31e-c8cd-415c-8e1e-f64f595fc6fc.webp?v=1714722011","options":["color"],"media":[{"alt":null,"id":23877369495651,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/587598712727b8051a81b0cde5099b035635d50b_b520f31e-c8cd-415c-8e1e-f64f595fc6fc.webp?v=1714722011"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/587598712727b8051a81b0cde5099b035635d50b_b520f31e-c8cd-415c-8e1e-f64f595fc6fc.webp?v=1714722011","width":2000},{"alt":null,"id":23877370019939,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9dc0c1c4a7a6b89349faa327f4ded10a51ad5df_4abe139e-38bb-47b0-815d-95c12673330d.webp?v=1714722014"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9dc0c1c4a7a6b89349faa327f4ded10a51ad5df_4abe139e-38bb-47b0-815d-95c12673330d.webp?v=1714722014","width":2000},{"alt":null,"id":23877370511459,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/911cb31616ef2d4b2c251057963927110f423b7d_f2c9c571-0b1c-4138-a7ad-a0c1459c65cd.webp?v=1714722016"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/911cb31616ef2d4b2c251057963927110f423b7d_f2c9c571-0b1c-4138-a7ad-a0c1459c65cd.webp?v=1714722016","width":2000},{"alt":null,"id":23877371002979,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e267f5aeecc1ede869103c83073e66c3d26a165_d08c6a85-fda6-4aea-9a1c-7af481dd22c3.webp?v=1714722018"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e267f5aeecc1ede869103c83073e66c3d26a165_d08c6a85-fda6-4aea-9a1c-7af481dd22c3.webp?v=1714722018","width":2000},{"alt":null,"id":23877371428963,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c2a13774841eec91f012d0630186c7d71041b59_de9a44aa-49d7-453d-8759-9f3b535ba313.webp?v=1714722021"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c2a13774841eec91f012d0630186c7d71041b59_de9a44aa-49d7-453d-8759-9f3b535ba313.webp?v=1714722021","width":2000},{"alt":null,"id":23877371953251,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82006ac0145d89827a5d0fe221e3bff844b00e73_93b67b42-b36d-4058-8a50-be29d4e9f37b.webp?v=1714722023"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82006ac0145d89827a5d0fe221e3bff844b00e73_93b67b42-b36d-4058-8a50-be29d4e9f37b.webp?v=1714722023","width":2000},{"alt":null,"id":23877372412003,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2bce46612cd8e0f0033a15aacbee38805a5541b_1d54002d-715c-4c01-b6d9-e36dd1f68237.webp?v=1714722025"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2bce46612cd8e0f0033a15aacbee38805a5541b_1d54002d-715c-4c01-b6d9-e36dd1f68237.webp?v=1714722025","width":2000},{"alt":null,"id":23877373395043,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/619af72434620fc706a1b3cdef4173aa31d1f31b_4a3d1879-4592-4768-bcb9-c719f9e5c627.webp?v=1714722027"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/619af72434620fc706a1b3cdef4173aa31d1f31b_4a3d1879-4592-4768-bcb9-c719f9e5c627.webp?v=1714722027","width":2000},{"alt":null,"id":23877373821027,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0383fb20887c673136069e2a1c9724ceee0e0ae0_b85f2fc0-3c04-4782-a5b8-0c86e66f48b6.webp?v=1714722029"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0383fb20887c673136069e2a1c9724ceee0e0ae0_b85f2fc0-3c04-4782-a5b8-0c86e66f48b6.webp?v=1714722029","width":2000},{"alt":null,"id":23877374279779,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30713ff11579b63d38a0a92e53f777a3e6d0e116_2a59f262-708d-4d7b-a246-df02d6a29593.webp?v=1714722032"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30713ff11579b63d38a0a92e53f777a3e6d0e116_2a59f262-708d-4d7b-a246-df02d6a29593.webp?v=1714722032","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886261870691,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PC04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472454893667,"product_id":7408506667107,"position":6,"created_at":"2024-05-03T15:40:23+08:00","updated_at":"2024-05-03T15:40:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82006ac0145d89827a5d0fe221e3bff844b00e73_93b67b42-b36d-4058-8a50-be29d4e9f37b.webp?v=1714722023","variant_ids":[41886261870691]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 小圖款-BB8 - 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-PC04","featured_media":{"alt":null,"id":23877371953251,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82006ac0145d89827a5d0fe221e3bff844b00e73_93b67b42-b36d-4058-8a50-be29d4e9f37b.webp?v=1714722023"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886261870691,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PC04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472454893667,"product_id":7408506667107,"position":6,"created_at":"2024-05-03T15:40:23+08:00","updated_at":"2024-05-03T15:40:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82006ac0145d89827a5d0fe221e3bff844b00e73_93b67b42-b36d-4058-8a50-be29d4e9f37b.webp?v=1714722023","variant_ids":[41886261870691]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 小圖款-BB8 - 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-PC04","featured_media":{"alt":null,"id":23877371953251,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82006ac0145d89827a5d0fe221e3bff844b00e73_93b67b42-b36d-4058-8a50-be29d4e9f37b.webp?v=1714722023"}},"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: "停產" }