$product = {"id":7408467771491,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Weiweiboy - 可愛大王10週年","handle":"iphone-12-pro-max-mod-nx-printable-eo05","description":null,"published_at":"2024-06-11T16:38:03+08:00","created_at":"2024-05-03T15:32:26+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Weiweiboy","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-weiweiboy","device-iPhone 12 pro max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-weiweiboy","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":41885811605603,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-EO05","requires_shipping":true,"taxable":true,"featured_image":{"id":31472354164835,"product_id":7408467771491,"position":4,"created_at":"2024-05-03T15:32:36+08:00","updated_at":"2024-05-03T15:32:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d661e65709e43bb725f37a33d553f37d197275e4_d9f90b0e-b2e5-4e01-bacb-1053208bd5d5.webp?v=1714721556","variant_ids":[41885811605603]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Weiweiboy - 可愛大王10週年 - 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-EO05","featured_media":{"alt":null,"id":23877270863971,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d661e65709e43bb725f37a33d553f37d197275e4_d9f90b0e-b2e5-4e01-bacb-1053208bd5d5.webp?v=1714721556"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75888afefc0af46e1dbd287f15fe2e81762084ad_6873cf77-d7b3-4be1-90a8-e1f34fc68e42.webp?v=1714721549","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16a6bef81ce9d50ef99f1984134b73a746a58e4e_9eeb688d-5a82-490e-b2de-2ea93b074bf6.webp?v=1714721551","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f9ff53304812f9a566ddd59c28345539ff9db96_1db5320a-41fc-4083-af01-cf94a9a91a48.webp?v=1714721553","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d661e65709e43bb725f37a33d553f37d197275e4_d9f90b0e-b2e5-4e01-bacb-1053208bd5d5.webp?v=1714721556","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4ef6884f10c74e0d2453d653f6df2a974c91eab_03f1c09a-002d-4fb7-84c0-68cf9a2fef89.webp?v=1714721558","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c537d38da4c05e31ce79e4d042b5ede187611094_d2e0921f-8d21-4ff1-b5d3-15b3f1f0af93.webp?v=1714721561","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1f70e268b584ac7a9a227c562526da59e55095d_72ae0e0a-1b27-4966-8de6-67233250714d.webp?v=1714721563","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5e629fde89735591e0ba8233f708ab21c9cf65c_255b12f8-cbad-45fa-88ca-cd62ce38942c.webp?v=1714721566","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7af054da0c97e056be6d5e228d6cc0647c7fe5aa_2d63ef70-acf6-48af-8595-8bdbd30c6934.webp?v=1714721568","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/689761baa59ada73c059fc180620cf20841905a4_fcf3d537-bb8e-4af3-ab13-b6da2c0f6a5e.webp?v=1714721571"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75888afefc0af46e1dbd287f15fe2e81762084ad_6873cf77-d7b3-4be1-90a8-e1f34fc68e42.webp?v=1714721549","options":["color"],"media":[{"alt":null,"id":23877269160035,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75888afefc0af46e1dbd287f15fe2e81762084ad_6873cf77-d7b3-4be1-90a8-e1f34fc68e42.webp?v=1714721549"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75888afefc0af46e1dbd287f15fe2e81762084ad_6873cf77-d7b3-4be1-90a8-e1f34fc68e42.webp?v=1714721549","width":2000},{"alt":null,"id":23877269586019,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16a6bef81ce9d50ef99f1984134b73a746a58e4e_9eeb688d-5a82-490e-b2de-2ea93b074bf6.webp?v=1714721551"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16a6bef81ce9d50ef99f1984134b73a746a58e4e_9eeb688d-5a82-490e-b2de-2ea93b074bf6.webp?v=1714721551","width":2000},{"alt":null,"id":23877270306915,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f9ff53304812f9a566ddd59c28345539ff9db96_1db5320a-41fc-4083-af01-cf94a9a91a48.webp?v=1714721553"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f9ff53304812f9a566ddd59c28345539ff9db96_1db5320a-41fc-4083-af01-cf94a9a91a48.webp?v=1714721553","width":2000},{"alt":null,"id":23877270863971,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d661e65709e43bb725f37a33d553f37d197275e4_d9f90b0e-b2e5-4e01-bacb-1053208bd5d5.webp?v=1714721556"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d661e65709e43bb725f37a33d553f37d197275e4_d9f90b0e-b2e5-4e01-bacb-1053208bd5d5.webp?v=1714721556","width":2000},{"alt":null,"id":23877271355491,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4ef6884f10c74e0d2453d653f6df2a974c91eab_03f1c09a-002d-4fb7-84c0-68cf9a2fef89.webp?v=1714721558"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4ef6884f10c74e0d2453d653f6df2a974c91eab_03f1c09a-002d-4fb7-84c0-68cf9a2fef89.webp?v=1714721558","width":2000},{"alt":null,"id":23877271847011,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c537d38da4c05e31ce79e4d042b5ede187611094_d2e0921f-8d21-4ff1-b5d3-15b3f1f0af93.webp?v=1714721561"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c537d38da4c05e31ce79e4d042b5ede187611094_d2e0921f-8d21-4ff1-b5d3-15b3f1f0af93.webp?v=1714721561","width":2000},{"alt":null,"id":23877272436835,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1f70e268b584ac7a9a227c562526da59e55095d_72ae0e0a-1b27-4966-8de6-67233250714d.webp?v=1714721563"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1f70e268b584ac7a9a227c562526da59e55095d_72ae0e0a-1b27-4966-8de6-67233250714d.webp?v=1714721563","width":2000},{"alt":null,"id":23877272928355,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5e629fde89735591e0ba8233f708ab21c9cf65c_255b12f8-cbad-45fa-88ca-cd62ce38942c.webp?v=1714721566"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5e629fde89735591e0ba8233f708ab21c9cf65c_255b12f8-cbad-45fa-88ca-cd62ce38942c.webp?v=1714721566","width":2000},{"alt":null,"id":23877273485411,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7af054da0c97e056be6d5e228d6cc0647c7fe5aa_2d63ef70-acf6-48af-8595-8bdbd30c6934.webp?v=1714721568"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7af054da0c97e056be6d5e228d6cc0647c7fe5aa_2d63ef70-acf6-48af-8595-8bdbd30c6934.webp?v=1714721568","width":2000},{"alt":null,"id":23877273944163,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/689761baa59ada73c059fc180620cf20841905a4_fcf3d537-bb8e-4af3-ab13-b6da2c0f6a5e.webp?v=1714721571"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/689761baa59ada73c059fc180620cf20841905a4_fcf3d537-bb8e-4af3-ab13-b6da2c0f6a5e.webp?v=1714721571","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885811605603,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-EO05","requires_shipping":true,"taxable":true,"featured_image":{"id":31472354164835,"product_id":7408467771491,"position":4,"created_at":"2024-05-03T15:32:36+08:00","updated_at":"2024-05-03T15:32:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d661e65709e43bb725f37a33d553f37d197275e4_d9f90b0e-b2e5-4e01-bacb-1053208bd5d5.webp?v=1714721556","variant_ids":[41885811605603]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Weiweiboy - 可愛大王10週年 - 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-EO05","featured_media":{"alt":null,"id":23877270863971,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d661e65709e43bb725f37a33d553f37d197275e4_d9f90b0e-b2e5-4e01-bacb-1053208bd5d5.webp?v=1714721556"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885811605603,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-EO05","requires_shipping":true,"taxable":true,"featured_image":{"id":31472354164835,"product_id":7408467771491,"position":4,"created_at":"2024-05-03T15:32:36+08:00","updated_at":"2024-05-03T15:32:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d661e65709e43bb725f37a33d553f37d197275e4_d9f90b0e-b2e5-4e01-bacb-1053208bd5d5.webp?v=1714721556","variant_ids":[41885811605603]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Weiweiboy - 可愛大王10週年 - 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-EO05","featured_media":{"alt":null,"id":23877270863971,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d661e65709e43bb725f37a33d553f37d197275e4_d9f90b0e-b2e5-4e01-bacb-1053208bd5d5.webp?v=1714721556"}},"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: "停產" }