$product = {"id":7407920971875,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 小丑女圖騰","handle":"iphone-14-plus-mod-nx-printable-sb17","description":null,"published_at":"2024-06-11T16:26:35+08:00","created_at":"2024-05-03T11:16:10+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Batman","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone 14 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-batman","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":41880551686243,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB17","requires_shipping":true,"taxable":true,"featured_image":{"id":31470704328803,"product_id":7407920971875,"position":6,"created_at":"2024-05-03T11:16:26+08:00","updated_at":"2024-05-03T11:16:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0545bfb3d0c02e12ad94c720b3eeb4d554b05ce_d8c859b4-1f23-4e4d-9011-da8f3319fcdf.webp?v=1714706186","variant_ids":[41880551686243]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 小丑女圖騰 - 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-SB17","featured_media":{"alt":null,"id":23875608379491,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0545bfb3d0c02e12ad94c720b3eeb4d554b05ce_d8c859b4-1f23-4e4d-9011-da8f3319fcdf.webp?v=1714706186"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/944ae034eb9517b2f6f79a352cb40dbc3069fea5_da83d6a9-5f50-4211-80ff-c9fec60848e3.webp?v=1714706173","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4939625dbee2c7cc3dc4d2ea39822085c1d5bb6_9f5a767a-4901-4c78-aa76-1f2aaacf685e.webp?v=1714706175","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e72ace208e5374b215e2fbcff95d1bb0c3f32ec_3ce3e54b-013c-4139-b56b-58713a69d3b3.webp?v=1714706178","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3499217717f5a5f1ce5c3acf997f46227f38ed95_67145e49-afaf-4a32-ab79-158aede5d75d.webp?v=1714706181","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df6aea6aee478d02634efdd4f5ff1774f6f0e656_9482f1e8-0453-4f76-802d-82b949a56ff5.webp?v=1714706183","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0545bfb3d0c02e12ad94c720b3eeb4d554b05ce_d8c859b4-1f23-4e4d-9011-da8f3319fcdf.webp?v=1714706186","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e8df685fa2ab292d72c3288896acc5306a75535_f6de2108-f73d-4b87-88aa-482d88173813.webp?v=1714706188","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4620a7023e2000eaf20de86b5d2105b64445d621_1a1dca3c-8f2e-4cb7-a2e4-8db08a3552b8.webp?v=1714706191","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e91383585c24423a20de6a6366693a561318b797_9c186c88-a6ff-4bed-8a27-0aadcc1a3ab0.webp?v=1714706193","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/550f9302d3e6d3963b0e7a3ddecd043285b3e4b4_61a078cb-0466-47ba-a49c-7867a540f4cd.webp?v=1714706196"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/944ae034eb9517b2f6f79a352cb40dbc3069fea5_da83d6a9-5f50-4211-80ff-c9fec60848e3.webp?v=1714706173","options":["color"],"media":[{"alt":null,"id":23875605823587,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/944ae034eb9517b2f6f79a352cb40dbc3069fea5_da83d6a9-5f50-4211-80ff-c9fec60848e3.webp?v=1714706173"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/944ae034eb9517b2f6f79a352cb40dbc3069fea5_da83d6a9-5f50-4211-80ff-c9fec60848e3.webp?v=1714706173","width":2000},{"alt":null,"id":23875606216803,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4939625dbee2c7cc3dc4d2ea39822085c1d5bb6_9f5a767a-4901-4c78-aa76-1f2aaacf685e.webp?v=1714706175"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4939625dbee2c7cc3dc4d2ea39822085c1d5bb6_9f5a767a-4901-4c78-aa76-1f2aaacf685e.webp?v=1714706175","width":2000},{"alt":null,"id":23875606741091,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e72ace208e5374b215e2fbcff95d1bb0c3f32ec_3ce3e54b-013c-4139-b56b-58713a69d3b3.webp?v=1714706178"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e72ace208e5374b215e2fbcff95d1bb0c3f32ec_3ce3e54b-013c-4139-b56b-58713a69d3b3.webp?v=1714706178","width":2000},{"alt":null,"id":23875607429219,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3499217717f5a5f1ce5c3acf997f46227f38ed95_67145e49-afaf-4a32-ab79-158aede5d75d.webp?v=1714706181"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3499217717f5a5f1ce5c3acf997f46227f38ed95_67145e49-afaf-4a32-ab79-158aede5d75d.webp?v=1714706181","width":2000},{"alt":null,"id":23875607986275,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df6aea6aee478d02634efdd4f5ff1774f6f0e656_9482f1e8-0453-4f76-802d-82b949a56ff5.webp?v=1714706183"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df6aea6aee478d02634efdd4f5ff1774f6f0e656_9482f1e8-0453-4f76-802d-82b949a56ff5.webp?v=1714706183","width":2000},{"alt":null,"id":23875608379491,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0545bfb3d0c02e12ad94c720b3eeb4d554b05ce_d8c859b4-1f23-4e4d-9011-da8f3319fcdf.webp?v=1714706186"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0545bfb3d0c02e12ad94c720b3eeb4d554b05ce_d8c859b4-1f23-4e4d-9011-da8f3319fcdf.webp?v=1714706186","width":2000},{"alt":null,"id":23875608871011,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e8df685fa2ab292d72c3288896acc5306a75535_f6de2108-f73d-4b87-88aa-482d88173813.webp?v=1714706188"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e8df685fa2ab292d72c3288896acc5306a75535_f6de2108-f73d-4b87-88aa-482d88173813.webp?v=1714706188","width":2000},{"alt":null,"id":23875609526371,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4620a7023e2000eaf20de86b5d2105b64445d621_1a1dca3c-8f2e-4cb7-a2e4-8db08a3552b8.webp?v=1714706191"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4620a7023e2000eaf20de86b5d2105b64445d621_1a1dca3c-8f2e-4cb7-a2e4-8db08a3552b8.webp?v=1714706191","width":2000},{"alt":null,"id":23875610083427,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e91383585c24423a20de6a6366693a561318b797_9c186c88-a6ff-4bed-8a27-0aadcc1a3ab0.webp?v=1714706193"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e91383585c24423a20de6a6366693a561318b797_9c186c88-a6ff-4bed-8a27-0aadcc1a3ab0.webp?v=1714706193","width":2000},{"alt":null,"id":23875610640483,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/550f9302d3e6d3963b0e7a3ddecd043285b3e4b4_61a078cb-0466-47ba-a49c-7867a540f4cd.webp?v=1714706196"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/550f9302d3e6d3963b0e7a3ddecd043285b3e4b4_61a078cb-0466-47ba-a49c-7867a540f4cd.webp?v=1714706196","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41880551686243,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB17","requires_shipping":true,"taxable":true,"featured_image":{"id":31470704328803,"product_id":7407920971875,"position":6,"created_at":"2024-05-03T11:16:26+08:00","updated_at":"2024-05-03T11:16:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0545bfb3d0c02e12ad94c720b3eeb4d554b05ce_d8c859b4-1f23-4e4d-9011-da8f3319fcdf.webp?v=1714706186","variant_ids":[41880551686243]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 小丑女圖騰 - 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-SB17","featured_media":{"alt":null,"id":23875608379491,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0545bfb3d0c02e12ad94c720b3eeb4d554b05ce_d8c859b4-1f23-4e4d-9011-da8f3319fcdf.webp?v=1714706186"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41880551686243,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB17","requires_shipping":true,"taxable":true,"featured_image":{"id":31470704328803,"product_id":7407920971875,"position":6,"created_at":"2024-05-03T11:16:26+08:00","updated_at":"2024-05-03T11:16:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0545bfb3d0c02e12ad94c720b3eeb4d554b05ce_d8c859b4-1f23-4e4d-9011-da8f3319fcdf.webp?v=1714706186","variant_ids":[41880551686243]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 小丑女圖騰 - 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-SB17","featured_media":{"alt":null,"id":23875608379491,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0545bfb3d0c02e12ad94c720b3eeb4d554b05ce_d8c859b4-1f23-4e4d-9011-da8f3319fcdf.webp?v=1714706186"}},"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: "停產" }