$product = {"id":7408427892835,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Pixel Jeff 皮傑 - Work Day","handle":"iphone-12-pro-max-mod-nx-printable-hq03","description":null,"published_at":"2024-06-11T16:36:57+08:00","created_at":"2024-05-03T15:24:45+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Pixel Jeff 皮傑","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-pixeljeff","device-iPhone 12 pro max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-pixeljeff","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":41885367730275,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-HQ03","requires_shipping":true,"taxable":true,"featured_image":{"id":31472248586339,"product_id":7408427892835,"position":3,"created_at":"2024-05-03T15:24:52+08:00","updated_at":"2024-05-03T15:24:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/637f056fda157644a46177bb8ec62609c799c112_9a2ce20d-8ad5-4e33-9e22-7efb06b2ad4f.webp?v=1714721092","variant_ids":[41885367730275]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Pixel Jeff 皮傑 - Work Day - 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-HQ03","featured_media":{"alt":null,"id":23877164826723,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/637f056fda157644a46177bb8ec62609c799c112_9a2ce20d-8ad5-4e33-9e22-7efb06b2ad4f.webp?v=1714721092"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7367e76c566985dccf7f8914f3f3a98625187773_a563dbd7-6c28-4b88-8a79-238766c69a32.webp?v=1714721088","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61bc1ded995e00d741eb50b4d20630350ef0a6e7_06e6c4f1-3812-4d32-933e-effa227314a4.webp?v=1714721090","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/637f056fda157644a46177bb8ec62609c799c112_9a2ce20d-8ad5-4e33-9e22-7efb06b2ad4f.webp?v=1714721092","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0132d90fa4a0d22a308bf6636222a8ebbdf8bc9_035b277f-7f82-4ce9-a3d5-6cd63ce162ec.webp?v=1714721094","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c49d741fea1f5ce38cfcb33f40dc5a0a783e6bdb_f899e25c-1fab-4a31-9c41-825fe9a05ce8.webp?v=1714721097","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69f2577ff7f81865f53a6f807d7ab075a398ee8e_8ba93d53-b675-4229-a972-7f79c8f90b3c.webp?v=1714721099","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/237ad7ce58edc12e10d6b101de4c58a62dddbbcb_ae157ffc-0aa6-4e20-9904-572779f17c26.webp?v=1714721102","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/626fc2c004b543bc0aff62c6884032a42d2c6d2e_7a11be97-6430-47f9-b211-a966248a48c9.webp?v=1714721104","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f62b967c2629f144e136b9c97466a82ddc9fd8ac_3825947a-7e7e-46c1-8fbf-87a8ab48d6fc.webp?v=1714721106","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73aa0e2b6f36b1cb7782c62adf0b83544de5fe99_f531a6aa-8058-4a38-94e3-02f924f020a2.webp?v=1714721109"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7367e76c566985dccf7f8914f3f3a98625187773_a563dbd7-6c28-4b88-8a79-238766c69a32.webp?v=1714721088","options":["color"],"media":[{"alt":null,"id":23877163581539,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7367e76c566985dccf7f8914f3f3a98625187773_a563dbd7-6c28-4b88-8a79-238766c69a32.webp?v=1714721088"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7367e76c566985dccf7f8914f3f3a98625187773_a563dbd7-6c28-4b88-8a79-238766c69a32.webp?v=1714721088","width":2000},{"alt":null,"id":23877163941987,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61bc1ded995e00d741eb50b4d20630350ef0a6e7_06e6c4f1-3812-4d32-933e-effa227314a4.webp?v=1714721090"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61bc1ded995e00d741eb50b4d20630350ef0a6e7_06e6c4f1-3812-4d32-933e-effa227314a4.webp?v=1714721090","width":2000},{"alt":null,"id":23877164826723,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/637f056fda157644a46177bb8ec62609c799c112_9a2ce20d-8ad5-4e33-9e22-7efb06b2ad4f.webp?v=1714721092"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/637f056fda157644a46177bb8ec62609c799c112_9a2ce20d-8ad5-4e33-9e22-7efb06b2ad4f.webp?v=1714721092","width":2000},{"alt":null,"id":23877165121635,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0132d90fa4a0d22a308bf6636222a8ebbdf8bc9_035b277f-7f82-4ce9-a3d5-6cd63ce162ec.webp?v=1714721094"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0132d90fa4a0d22a308bf6636222a8ebbdf8bc9_035b277f-7f82-4ce9-a3d5-6cd63ce162ec.webp?v=1714721094","width":2000},{"alt":null,"id":23877165744227,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c49d741fea1f5ce38cfcb33f40dc5a0a783e6bdb_f899e25c-1fab-4a31-9c41-825fe9a05ce8.webp?v=1714721097"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c49d741fea1f5ce38cfcb33f40dc5a0a783e6bdb_f899e25c-1fab-4a31-9c41-825fe9a05ce8.webp?v=1714721097","width":2000},{"alt":null,"id":23877166760035,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69f2577ff7f81865f53a6f807d7ab075a398ee8e_8ba93d53-b675-4229-a972-7f79c8f90b3c.webp?v=1714721099"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69f2577ff7f81865f53a6f807d7ab075a398ee8e_8ba93d53-b675-4229-a972-7f79c8f90b3c.webp?v=1714721099","width":2000},{"alt":null,"id":23877168398435,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/237ad7ce58edc12e10d6b101de4c58a62dddbbcb_ae157ffc-0aa6-4e20-9904-572779f17c26.webp?v=1714721102"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/237ad7ce58edc12e10d6b101de4c58a62dddbbcb_ae157ffc-0aa6-4e20-9904-572779f17c26.webp?v=1714721102","width":2000},{"alt":null,"id":23877168824419,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/626fc2c004b543bc0aff62c6884032a42d2c6d2e_7a11be97-6430-47f9-b211-a966248a48c9.webp?v=1714721104"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/626fc2c004b543bc0aff62c6884032a42d2c6d2e_7a11be97-6430-47f9-b211-a966248a48c9.webp?v=1714721104","width":2000},{"alt":null,"id":23877169414243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f62b967c2629f144e136b9c97466a82ddc9fd8ac_3825947a-7e7e-46c1-8fbf-87a8ab48d6fc.webp?v=1714721106"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f62b967c2629f144e136b9c97466a82ddc9fd8ac_3825947a-7e7e-46c1-8fbf-87a8ab48d6fc.webp?v=1714721106","width":2000},{"alt":null,"id":23877170135139,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73aa0e2b6f36b1cb7782c62adf0b83544de5fe99_f531a6aa-8058-4a38-94e3-02f924f020a2.webp?v=1714721109"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73aa0e2b6f36b1cb7782c62adf0b83544de5fe99_f531a6aa-8058-4a38-94e3-02f924f020a2.webp?v=1714721109","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885367730275,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-HQ03","requires_shipping":true,"taxable":true,"featured_image":{"id":31472248586339,"product_id":7408427892835,"position":3,"created_at":"2024-05-03T15:24:52+08:00","updated_at":"2024-05-03T15:24:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/637f056fda157644a46177bb8ec62609c799c112_9a2ce20d-8ad5-4e33-9e22-7efb06b2ad4f.webp?v=1714721092","variant_ids":[41885367730275]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Pixel Jeff 皮傑 - Work Day - 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-HQ03","featured_media":{"alt":null,"id":23877164826723,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/637f056fda157644a46177bb8ec62609c799c112_9a2ce20d-8ad5-4e33-9e22-7efb06b2ad4f.webp?v=1714721092"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885367730275,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-HQ03","requires_shipping":true,"taxable":true,"featured_image":{"id":31472248586339,"product_id":7408427892835,"position":3,"created_at":"2024-05-03T15:24:52+08:00","updated_at":"2024-05-03T15:24:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/637f056fda157644a46177bb8ec62609c799c112_9a2ce20d-8ad5-4e33-9e22-7efb06b2ad4f.webp?v=1714721092","variant_ids":[41885367730275]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Pixel Jeff 皮傑 - Work Day - 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-HQ03","featured_media":{"alt":null,"id":23877164826723,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/637f056fda157644a46177bb8ec62609c799c112_9a2ce20d-8ad5-4e33-9e22-7efb06b2ad4f.webp?v=1714721092"}},"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: "停產" }