$product = {"id":7407977824355,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【獨家設計款】 - 來自空中的情書(底片版)","handle":"iphone-14-plus-mod-nx-printable-ae05","description":null,"published_at":"2024-06-11T16:28:09+08:00","created_at":"2024-05-03T11:27:26+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"MOD NX 客製化","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","device-iPhone 14 Plus","discountable-item","member","merge","mod-nx-printable","new-modnx-sku","reseller","reseller-modnx-chi-po-lin-series","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":41881300861027,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-AE05","requires_shipping":true,"taxable":true,"featured_image":{"id":31470856274019,"product_id":7407977824355,"position":3,"created_at":"2024-05-03T11:27:33+08:00","updated_at":"2024-05-03T11:27:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baeffb427c0b666db87fd10807cf4e050b1d1e4e_406ed53e-eccc-4fc8-88a2-b582d31c09b2.webp?v=1714706853","variant_ids":[41881300861027]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【獨家設計款】 - 來自空中的情書(底片版) - 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-AE05","featured_media":{"alt":null,"id":23875760980067,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baeffb427c0b666db87fd10807cf4e050b1d1e4e_406ed53e-eccc-4fc8-88a2-b582d31c09b2.webp?v=1714706853"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ba10d983d59448be170faa52810d137cbf62046_5d80e46e-135b-4a25-a6f1-846fb57e4bce.webp?v=1714706849","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6110426322dd70e6823fc707ef9e7e2d32e8d077_db4f300f-ef22-451e-8f81-51bee92a7e45.webp?v=1714706851","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baeffb427c0b666db87fd10807cf4e050b1d1e4e_406ed53e-eccc-4fc8-88a2-b582d31c09b2.webp?v=1714706853","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd9790fc757d0563b5fdd08b731cf25b4d470455_c753a0d1-6a3a-4699-a5dd-3f81cfe42924.webp?v=1714706856","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de0d39ce05c75b0004c4cd7c8e0d032d6f26c0f8_3a2f6714-c0a9-45b2-9ef6-b9c8faaf9630.webp?v=1714706858","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ba2fc05da8d5abf21a5938420386732975f054d_254dfb08-f58d-4862-803d-07131d498c06.webp?v=1714706861","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea9ee51c8268c52a65899ef199524ccfaeff2e0c_058e0ff4-9fcb-4b89-8b94-24a30fcf996f.webp?v=1714706863","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b9bc9a17500257767d8fc1c4573017c83c4a200_0dc4f0f3-1af7-43c9-a223-47258c6b7b10.webp?v=1714706866","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27143a05668869d59826199590c828e6bb38f406_c6df9a0e-70f8-4773-a46d-64964477efbc.webp?v=1714706868","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3caf3fc58ffe0153fb67b38a5849257b92c2831d_fd701eca-01d3-4757-a6d9-07aa5e37802c.webp?v=1714706871"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ba10d983d59448be170faa52810d137cbf62046_5d80e46e-135b-4a25-a6f1-846fb57e4bce.webp?v=1714706849","options":["color"],"media":[{"alt":null,"id":23875759898723,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ba10d983d59448be170faa52810d137cbf62046_5d80e46e-135b-4a25-a6f1-846fb57e4bce.webp?v=1714706849"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ba10d983d59448be170faa52810d137cbf62046_5d80e46e-135b-4a25-a6f1-846fb57e4bce.webp?v=1714706849","width":2000},{"alt":null,"id":23875760357475,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6110426322dd70e6823fc707ef9e7e2d32e8d077_db4f300f-ef22-451e-8f81-51bee92a7e45.webp?v=1714706851"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6110426322dd70e6823fc707ef9e7e2d32e8d077_db4f300f-ef22-451e-8f81-51bee92a7e45.webp?v=1714706851","width":2000},{"alt":null,"id":23875760980067,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baeffb427c0b666db87fd10807cf4e050b1d1e4e_406ed53e-eccc-4fc8-88a2-b582d31c09b2.webp?v=1714706853"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baeffb427c0b666db87fd10807cf4e050b1d1e4e_406ed53e-eccc-4fc8-88a2-b582d31c09b2.webp?v=1714706853","width":2000},{"alt":null,"id":23875761406051,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd9790fc757d0563b5fdd08b731cf25b4d470455_c753a0d1-6a3a-4699-a5dd-3f81cfe42924.webp?v=1714706856"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd9790fc757d0563b5fdd08b731cf25b4d470455_c753a0d1-6a3a-4699-a5dd-3f81cfe42924.webp?v=1714706856","width":2000},{"alt":null,"id":23875761930339,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de0d39ce05c75b0004c4cd7c8e0d032d6f26c0f8_3a2f6714-c0a9-45b2-9ef6-b9c8faaf9630.webp?v=1714706858"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de0d39ce05c75b0004c4cd7c8e0d032d6f26c0f8_3a2f6714-c0a9-45b2-9ef6-b9c8faaf9630.webp?v=1714706858","width":2000},{"alt":null,"id":23875762487395,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ba2fc05da8d5abf21a5938420386732975f054d_254dfb08-f58d-4862-803d-07131d498c06.webp?v=1714706861"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ba2fc05da8d5abf21a5938420386732975f054d_254dfb08-f58d-4862-803d-07131d498c06.webp?v=1714706861","width":2000},{"alt":null,"id":23875763077219,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea9ee51c8268c52a65899ef199524ccfaeff2e0c_058e0ff4-9fcb-4b89-8b94-24a30fcf996f.webp?v=1714706863"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea9ee51c8268c52a65899ef199524ccfaeff2e0c_058e0ff4-9fcb-4b89-8b94-24a30fcf996f.webp?v=1714706863","width":2000},{"alt":null,"id":23875763503203,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b9bc9a17500257767d8fc1c4573017c83c4a200_0dc4f0f3-1af7-43c9-a223-47258c6b7b10.webp?v=1714706866"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b9bc9a17500257767d8fc1c4573017c83c4a200_0dc4f0f3-1af7-43c9-a223-47258c6b7b10.webp?v=1714706866","width":2000},{"alt":null,"id":23875764322403,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27143a05668869d59826199590c828e6bb38f406_c6df9a0e-70f8-4773-a46d-64964477efbc.webp?v=1714706868"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27143a05668869d59826199590c828e6bb38f406_c6df9a0e-70f8-4773-a46d-64964477efbc.webp?v=1714706868","width":2000},{"alt":null,"id":23875764748387,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3caf3fc58ffe0153fb67b38a5849257b92c2831d_fd701eca-01d3-4757-a6d9-07aa5e37802c.webp?v=1714706871"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3caf3fc58ffe0153fb67b38a5849257b92c2831d_fd701eca-01d3-4757-a6d9-07aa5e37802c.webp?v=1714706871","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41881300861027,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-AE05","requires_shipping":true,"taxable":true,"featured_image":{"id":31470856274019,"product_id":7407977824355,"position":3,"created_at":"2024-05-03T11:27:33+08:00","updated_at":"2024-05-03T11:27:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baeffb427c0b666db87fd10807cf4e050b1d1e4e_406ed53e-eccc-4fc8-88a2-b582d31c09b2.webp?v=1714706853","variant_ids":[41881300861027]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【獨家設計款】 - 來自空中的情書(底片版) - 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-AE05","featured_media":{"alt":null,"id":23875760980067,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baeffb427c0b666db87fd10807cf4e050b1d1e4e_406ed53e-eccc-4fc8-88a2-b582d31c09b2.webp?v=1714706853"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41881300861027,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-AE05","requires_shipping":true,"taxable":true,"featured_image":{"id":31470856274019,"product_id":7407977824355,"position":3,"created_at":"2024-05-03T11:27:33+08:00","updated_at":"2024-05-03T11:27:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baeffb427c0b666db87fd10807cf4e050b1d1e4e_406ed53e-eccc-4fc8-88a2-b582d31c09b2.webp?v=1714706853","variant_ids":[41881300861027]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【獨家設計款】 - 來自空中的情書(底片版) - 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-AE05","featured_media":{"alt":null,"id":23875760980067,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baeffb427c0b666db87fd10807cf4e050b1d1e4e_406ed53e-eccc-4fc8-88a2-b582d31c09b2.webp?v=1714706853"}},"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: "停產" }