$product = {"id":7416385536099,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Batman - 小丑與蝙蝠俠撲克牌","handle":"iphone-8-mod-nx-printable-sb15","description":null,"published_at":"2024-06-11T16:57:38+08:00","created_at":"2024-05-06T14:46:42+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 8","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":41919168544867,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SB15","requires_shipping":true,"taxable":true,"featured_image":{"id":31492000776291,"product_id":7416385536099,"position":7,"created_at":"2024-05-06T14:46:59+08:00","updated_at":"2024-05-06T14:46:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b5c321da5376fb56b257836d28c02e7ef76e552_c5e1625f-fa41-45bc-850e-3c27755ee2e5.webp?v=1714978019","variant_ids":[41919168544867]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 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":"NPB0105424-SB15","featured_media":{"alt":null,"id":23897414533219,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b5c321da5376fb56b257836d28c02e7ef76e552_c5e1625f-fa41-45bc-850e-3c27755ee2e5.webp?v=1714978019"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10b0d5e7666f0b1d52f9ca38851adb50a84e6e51_0822649d-5ccc-4027-ba1c-749af50c8386.webp?v=1714978005","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c0db838b89670b0e498cd4816cbe8ea28ad2d09_6dc9d85d-5753-47d5-a8c0-81a9f4dcaaf5.webp?v=1714978007","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64cbf81151107753368d61368d5a39fa9810a13e_a2497262-eb28-48dc-81ee-f1b5965d55c0.webp?v=1714978009","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1f36ec40145ed3607df96d82875eab68c3e218a_ef77687b-b7be-4da6-955e-e012170f5cb4.webp?v=1714978012","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e730590a976123b27135ac7ea272670917285046_22c9fc5d-69ee-4c6a-ab4d-6f9e82bc84d4.webp?v=1714978014","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bca8c20c47c7f45f033bf26c6d828000c53a450_05e03c01-1965-45a7-8e8f-eb698e2ec3fe.webp?v=1714978017","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b5c321da5376fb56b257836d28c02e7ef76e552_c5e1625f-fa41-45bc-850e-3c27755ee2e5.webp?v=1714978019","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/039f82c197b40bede5d6dbbfff30b94f1a9ddf8a_565a5fa7-dc1e-447f-82ad-51b8a4dba1c8.webp?v=1714978021","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/834cd6a6fbbde6163318548fb0d1ef29a0a1b6a1_ec1dcaa3-682f-467f-9d79-7130893876ae.webp?v=1714978024","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/598b9ce3b05d5585bc74c0d373fd1f956ceb24a0_c84677a8-4960-4979-bf0e-84a43985e105.webp?v=1714978026"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10b0d5e7666f0b1d52f9ca38851adb50a84e6e51_0822649d-5ccc-4027-ba1c-749af50c8386.webp?v=1714978005","options":["color"],"media":[{"alt":null,"id":23897411485795,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10b0d5e7666f0b1d52f9ca38851adb50a84e6e51_0822649d-5ccc-4027-ba1c-749af50c8386.webp?v=1714978005"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10b0d5e7666f0b1d52f9ca38851adb50a84e6e51_0822649d-5ccc-4027-ba1c-749af50c8386.webp?v=1714978005","width":2000},{"alt":null,"id":23897411846243,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c0db838b89670b0e498cd4816cbe8ea28ad2d09_6dc9d85d-5753-47d5-a8c0-81a9f4dcaaf5.webp?v=1714978007"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c0db838b89670b0e498cd4816cbe8ea28ad2d09_6dc9d85d-5753-47d5-a8c0-81a9f4dcaaf5.webp?v=1714978007","width":2000},{"alt":null,"id":23897412370531,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64cbf81151107753368d61368d5a39fa9810a13e_a2497262-eb28-48dc-81ee-f1b5965d55c0.webp?v=1714978009"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64cbf81151107753368d61368d5a39fa9810a13e_a2497262-eb28-48dc-81ee-f1b5965d55c0.webp?v=1714978009","width":2000},{"alt":null,"id":23897412665443,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1f36ec40145ed3607df96d82875eab68c3e218a_ef77687b-b7be-4da6-955e-e012170f5cb4.webp?v=1714978012"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1f36ec40145ed3607df96d82875eab68c3e218a_ef77687b-b7be-4da6-955e-e012170f5cb4.webp?v=1714978012","width":2000},{"alt":null,"id":23897413419107,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e730590a976123b27135ac7ea272670917285046_22c9fc5d-69ee-4c6a-ab4d-6f9e82bc84d4.webp?v=1714978014"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e730590a976123b27135ac7ea272670917285046_22c9fc5d-69ee-4c6a-ab4d-6f9e82bc84d4.webp?v=1714978014","width":2000},{"alt":null,"id":23897413845091,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bca8c20c47c7f45f033bf26c6d828000c53a450_05e03c01-1965-45a7-8e8f-eb698e2ec3fe.webp?v=1714978017"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bca8c20c47c7f45f033bf26c6d828000c53a450_05e03c01-1965-45a7-8e8f-eb698e2ec3fe.webp?v=1714978017","width":2000},{"alt":null,"id":23897414533219,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b5c321da5376fb56b257836d28c02e7ef76e552_c5e1625f-fa41-45bc-850e-3c27755ee2e5.webp?v=1714978019"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b5c321da5376fb56b257836d28c02e7ef76e552_c5e1625f-fa41-45bc-850e-3c27755ee2e5.webp?v=1714978019","width":2000},{"alt":null,"id":23897414893667,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/039f82c197b40bede5d6dbbfff30b94f1a9ddf8a_565a5fa7-dc1e-447f-82ad-51b8a4dba1c8.webp?v=1714978021"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/039f82c197b40bede5d6dbbfff30b94f1a9ddf8a_565a5fa7-dc1e-447f-82ad-51b8a4dba1c8.webp?v=1714978021","width":2000},{"alt":null,"id":23897415581795,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/834cd6a6fbbde6163318548fb0d1ef29a0a1b6a1_ec1dcaa3-682f-467f-9d79-7130893876ae.webp?v=1714978024"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/834cd6a6fbbde6163318548fb0d1ef29a0a1b6a1_ec1dcaa3-682f-467f-9d79-7130893876ae.webp?v=1714978024","width":2000},{"alt":null,"id":23897416106083,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/598b9ce3b05d5585bc74c0d373fd1f956ceb24a0_c84677a8-4960-4979-bf0e-84a43985e105.webp?v=1714978026"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/598b9ce3b05d5585bc74c0d373fd1f956ceb24a0_c84677a8-4960-4979-bf0e-84a43985e105.webp?v=1714978026","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41919168544867,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SB15","requires_shipping":true,"taxable":true,"featured_image":{"id":31492000776291,"product_id":7416385536099,"position":7,"created_at":"2024-05-06T14:46:59+08:00","updated_at":"2024-05-06T14:46:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b5c321da5376fb56b257836d28c02e7ef76e552_c5e1625f-fa41-45bc-850e-3c27755ee2e5.webp?v=1714978019","variant_ids":[41919168544867]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 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":"NPB0105424-SB15","featured_media":{"alt":null,"id":23897414533219,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b5c321da5376fb56b257836d28c02e7ef76e552_c5e1625f-fa41-45bc-850e-3c27755ee2e5.webp?v=1714978019"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41919168544867,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SB15","requires_shipping":true,"taxable":true,"featured_image":{"id":31492000776291,"product_id":7416385536099,"position":7,"created_at":"2024-05-06T14:46:59+08:00","updated_at":"2024-05-06T14:46:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b5c321da5376fb56b257836d28c02e7ef76e552_c5e1625f-fa41-45bc-850e-3c27755ee2e5.webp?v=1714978019","variant_ids":[41919168544867]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 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":"NPB0105424-SB15","featured_media":{"alt":null,"id":23897414533219,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b5c321da5376fb56b257836d28c02e7ef76e552_c5e1625f-fa41-45bc-850e-3c27755ee2e5.webp?v=1714978019"}},"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: "停產" }