$product = {"id":7408454500451,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 1G - 右看看","handle":"iphone-12-pro-max-mod-nx-printable-iv04","description":null,"published_at":"2024-06-11T16:37:40+08:00","created_at":"2024-05-03T15:29:46+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-1G","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-1chun","device-iPhone 12 pro max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-1chun","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":41885659562083,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-IV04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472323035235,"product_id":7408454500451,"position":7,"created_at":"2024-05-03T15:30:02+08:00","updated_at":"2024-05-03T15:30:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48850c3e73fe8eb53b9b5ddc647bc19af917a7ed_a6bede59-cc0b-4b0c-8560-c74a81646033.webp?v=1714721402","variant_ids":[41885659562083]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 1G - 右看看 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-IV04","featured_media":{"alt":null,"id":23877239439459,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48850c3e73fe8eb53b9b5ddc647bc19af917a7ed_a6bede59-cc0b-4b0c-8560-c74a81646033.webp?v=1714721402"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0011978b958620f803e2152cc4dca6fd331c8800_9c6c62a3-173e-4699-9f6e-d6fc98825f4f.webp?v=1714721388","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c97b7ccaff013c7deddfc7b23a9963a7146c92f_5ab04a77-cdb9-46d6-b05e-5dc4551b9c43.webp?v=1714721390","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f70cc2c2a0fe19afaeb0cd78ceab99ccbc9584b_599e0892-8706-4bac-8839-819a1f13605a.webp?v=1714721393","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3607ab417dfc74faccde000e74215d062bc9d32f_48537dea-af9a-465f-b39e-01ea742f950f.webp?v=1714721395","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d722837e7355d4d05d9618d17b94a9ccd7ad0d6_ebe0d877-22de-4a8a-8a60-0d655372baec.webp?v=1714721397","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68d62d4117d728a31b5bf488a7640ffb1208495e_621ec414-82d0-479e-818f-4083ef3d207f.webp?v=1714721400","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48850c3e73fe8eb53b9b5ddc647bc19af917a7ed_a6bede59-cc0b-4b0c-8560-c74a81646033.webp?v=1714721402","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fae0329273087fb41bf864af9f0ca09b4beff32_a9b07926-05cd-4364-ab69-001b2bbe0987.webp?v=1714721404","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4fbad2da172f3ba4d88f6b0569430d97c5c3a61_358ffd52-a9fb-4fb1-a069-07ec8c5a4f93.webp?v=1714721407","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d4ba3c1dcb3fe0de6fb120b1acd78ac8a5ccaf7_343302b8-e791-4bc7-8db1-4d47b7868e3f.webp?v=1714721409"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0011978b958620f803e2152cc4dca6fd331c8800_9c6c62a3-173e-4699-9f6e-d6fc98825f4f.webp?v=1714721388","options":["color"],"media":[{"alt":null,"id":23877235998819,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0011978b958620f803e2152cc4dca6fd331c8800_9c6c62a3-173e-4699-9f6e-d6fc98825f4f.webp?v=1714721388"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0011978b958620f803e2152cc4dca6fd331c8800_9c6c62a3-173e-4699-9f6e-d6fc98825f4f.webp?v=1714721388","width":2000},{"alt":null,"id":23877236490339,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c97b7ccaff013c7deddfc7b23a9963a7146c92f_5ab04a77-cdb9-46d6-b05e-5dc4551b9c43.webp?v=1714721390"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c97b7ccaff013c7deddfc7b23a9963a7146c92f_5ab04a77-cdb9-46d6-b05e-5dc4551b9c43.webp?v=1714721390","width":2000},{"alt":null,"id":23877236949091,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f70cc2c2a0fe19afaeb0cd78ceab99ccbc9584b_599e0892-8706-4bac-8839-819a1f13605a.webp?v=1714721393"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f70cc2c2a0fe19afaeb0cd78ceab99ccbc9584b_599e0892-8706-4bac-8839-819a1f13605a.webp?v=1714721393","width":2000},{"alt":null,"id":23877237506147,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3607ab417dfc74faccde000e74215d062bc9d32f_48537dea-af9a-465f-b39e-01ea742f950f.webp?v=1714721395"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3607ab417dfc74faccde000e74215d062bc9d32f_48537dea-af9a-465f-b39e-01ea742f950f.webp?v=1714721395","width":2000},{"alt":null,"id":23877238456419,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d722837e7355d4d05d9618d17b94a9ccd7ad0d6_ebe0d877-22de-4a8a-8a60-0d655372baec.webp?v=1714721397"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d722837e7355d4d05d9618d17b94a9ccd7ad0d6_ebe0d877-22de-4a8a-8a60-0d655372baec.webp?v=1714721397","width":2000},{"alt":null,"id":23877238947939,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68d62d4117d728a31b5bf488a7640ffb1208495e_621ec414-82d0-479e-818f-4083ef3d207f.webp?v=1714721400"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68d62d4117d728a31b5bf488a7640ffb1208495e_621ec414-82d0-479e-818f-4083ef3d207f.webp?v=1714721400","width":2000},{"alt":null,"id":23877239439459,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48850c3e73fe8eb53b9b5ddc647bc19af917a7ed_a6bede59-cc0b-4b0c-8560-c74a81646033.webp?v=1714721402"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48850c3e73fe8eb53b9b5ddc647bc19af917a7ed_a6bede59-cc0b-4b0c-8560-c74a81646033.webp?v=1714721402","width":2000},{"alt":null,"id":23877239865443,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fae0329273087fb41bf864af9f0ca09b4beff32_a9b07926-05cd-4364-ab69-001b2bbe0987.webp?v=1714721404"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fae0329273087fb41bf864af9f0ca09b4beff32_a9b07926-05cd-4364-ab69-001b2bbe0987.webp?v=1714721404","width":2000},{"alt":null,"id":23877240291427,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4fbad2da172f3ba4d88f6b0569430d97c5c3a61_358ffd52-a9fb-4fb1-a069-07ec8c5a4f93.webp?v=1714721407"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4fbad2da172f3ba4d88f6b0569430d97c5c3a61_358ffd52-a9fb-4fb1-a069-07ec8c5a4f93.webp?v=1714721407","width":2000},{"alt":null,"id":23877240782947,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d4ba3c1dcb3fe0de6fb120b1acd78ac8a5ccaf7_343302b8-e791-4bc7-8db1-4d47b7868e3f.webp?v=1714721409"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d4ba3c1dcb3fe0de6fb120b1acd78ac8a5ccaf7_343302b8-e791-4bc7-8db1-4d47b7868e3f.webp?v=1714721409","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885659562083,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-IV04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472323035235,"product_id":7408454500451,"position":7,"created_at":"2024-05-03T15:30:02+08:00","updated_at":"2024-05-03T15:30:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48850c3e73fe8eb53b9b5ddc647bc19af917a7ed_a6bede59-cc0b-4b0c-8560-c74a81646033.webp?v=1714721402","variant_ids":[41885659562083]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 1G - 右看看 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-IV04","featured_media":{"alt":null,"id":23877239439459,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48850c3e73fe8eb53b9b5ddc647bc19af917a7ed_a6bede59-cc0b-4b0c-8560-c74a81646033.webp?v=1714721402"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885659562083,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-IV04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472323035235,"product_id":7408454500451,"position":7,"created_at":"2024-05-03T15:30:02+08:00","updated_at":"2024-05-03T15:30:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48850c3e73fe8eb53b9b5ddc647bc19af917a7ed_a6bede59-cc0b-4b0c-8560-c74a81646033.webp?v=1714721402","variant_ids":[41885659562083]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 1G - 右看看 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-IV04","featured_media":{"alt":null,"id":23877239439459,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48850c3e73fe8eb53b9b5ddc647bc19af917a7ed_a6bede59-cc0b-4b0c-8560-c74a81646033.webp?v=1714721402"}},"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: "停產" }