$product = {"id":7416328028259,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Batman - 復古漫畫插圖","handle":"iphone-8-mod-nx-printable-sb08","description":null,"published_at":"2024-06-11T16:56:00+08:00","created_at":"2024-05-06T14:35:20+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":41918553227363,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31491854205027,"product_id":7416328028259,"position":3,"created_at":"2024-05-06T14:35:28+08:00","updated_at":"2024-05-06T14:35:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/098f046a0747ca368fb0775b275a9f9fa3e69595_12cca270-a768-4278-b5b7-bdca4bd3671e.webp?v=1714977328","variant_ids":[41918553227363]},"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-SB08","featured_media":{"alt":null,"id":23897267044451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/098f046a0747ca368fb0775b275a9f9fa3e69595_12cca270-a768-4278-b5b7-bdca4bd3671e.webp?v=1714977328"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfb81449ad1460f1b49f35f640ccf40521cfb4d9_84414eda-7320-4afd-8631-0b5d34441f93.webp?v=1714977323","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4aca3b3fd5e4eb8240430e96a6638ada4bb2736_9287794d-2a6f-4a59-b5f6-8ef6ea475614.webp?v=1714977325","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/098f046a0747ca368fb0775b275a9f9fa3e69595_12cca270-a768-4278-b5b7-bdca4bd3671e.webp?v=1714977328","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a51df757239281460077dff92d319c1bff03f29_adca6bc5-e82b-462d-9a49-dff135315a35.webp?v=1714977338","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cc56d0a3af3926c95f6cec8da4feda9a5775676_d1d5ea6d-ef6b-4923-a631-72a39fab252e.webp?v=1714977341","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37a0f872a3db00571b9508a790fd284d79319b2b_fd5d301f-e9b4-412a-b4fd-ff8a4929dad5.webp?v=1714977343","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0abf732936f5dfb40dcd9eb5d65b0eadb674471_343610ee-9cc9-4f41-a13c-fa6889bbbfc4.webp?v=1714977346","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd7a9d837698b4b48222e6bbe54217986ebd3c55_68a8c950-234a-48dd-9761-6de7d27b966d.webp?v=1714977348","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aafff7c03a5a93bddcf7b3f7bfe19d933be1dce4_dbf71e63-45e4-4a93-930b-cb6ad55a3277.webp?v=1714977350","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e04c953e52ef7448a7ec29c099092c5be7b063f7_bbce8895-1fdf-46ff-90da-c1ddcb9332e2.webp?v=1714977353"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfb81449ad1460f1b49f35f640ccf40521cfb4d9_84414eda-7320-4afd-8631-0b5d34441f93.webp?v=1714977323","options":["color"],"media":[{"alt":null,"id":23897266126947,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfb81449ad1460f1b49f35f640ccf40521cfb4d9_84414eda-7320-4afd-8631-0b5d34441f93.webp?v=1714977323"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfb81449ad1460f1b49f35f640ccf40521cfb4d9_84414eda-7320-4afd-8631-0b5d34441f93.webp?v=1714977323","width":2000},{"alt":null,"id":23897266684003,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4aca3b3fd5e4eb8240430e96a6638ada4bb2736_9287794d-2a6f-4a59-b5f6-8ef6ea475614.webp?v=1714977325"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4aca3b3fd5e4eb8240430e96a6638ada4bb2736_9287794d-2a6f-4a59-b5f6-8ef6ea475614.webp?v=1714977325","width":2000},{"alt":null,"id":23897267044451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/098f046a0747ca368fb0775b275a9f9fa3e69595_12cca270-a768-4278-b5b7-bdca4bd3671e.webp?v=1714977328"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/098f046a0747ca368fb0775b275a9f9fa3e69595_12cca270-a768-4278-b5b7-bdca4bd3671e.webp?v=1714977328","width":2000},{"alt":null,"id":23897268781155,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a51df757239281460077dff92d319c1bff03f29_adca6bc5-e82b-462d-9a49-dff135315a35.webp?v=1714977338"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a51df757239281460077dff92d319c1bff03f29_adca6bc5-e82b-462d-9a49-dff135315a35.webp?v=1714977338","width":2000},{"alt":null,"id":23897269338211,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cc56d0a3af3926c95f6cec8da4feda9a5775676_d1d5ea6d-ef6b-4923-a631-72a39fab252e.webp?v=1714977341"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cc56d0a3af3926c95f6cec8da4feda9a5775676_d1d5ea6d-ef6b-4923-a631-72a39fab252e.webp?v=1714977341","width":2000},{"alt":null,"id":23897269665891,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37a0f872a3db00571b9508a790fd284d79319b2b_fd5d301f-e9b4-412a-b4fd-ff8a4929dad5.webp?v=1714977343"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37a0f872a3db00571b9508a790fd284d79319b2b_fd5d301f-e9b4-412a-b4fd-ff8a4929dad5.webp?v=1714977343","width":2000},{"alt":null,"id":23897270157411,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0abf732936f5dfb40dcd9eb5d65b0eadb674471_343610ee-9cc9-4f41-a13c-fa6889bbbfc4.webp?v=1714977346"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0abf732936f5dfb40dcd9eb5d65b0eadb674471_343610ee-9cc9-4f41-a13c-fa6889bbbfc4.webp?v=1714977346","width":2000},{"alt":null,"id":23897270485091,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd7a9d837698b4b48222e6bbe54217986ebd3c55_68a8c950-234a-48dd-9761-6de7d27b966d.webp?v=1714977348"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd7a9d837698b4b48222e6bbe54217986ebd3c55_68a8c950-234a-48dd-9761-6de7d27b966d.webp?v=1714977348","width":2000},{"alt":null,"id":23897270845539,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aafff7c03a5a93bddcf7b3f7bfe19d933be1dce4_dbf71e63-45e4-4a93-930b-cb6ad55a3277.webp?v=1714977350"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aafff7c03a5a93bddcf7b3f7bfe19d933be1dce4_dbf71e63-45e4-4a93-930b-cb6ad55a3277.webp?v=1714977350","width":2000},{"alt":null,"id":23897271402595,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e04c953e52ef7448a7ec29c099092c5be7b063f7_bbce8895-1fdf-46ff-90da-c1ddcb9332e2.webp?v=1714977353"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e04c953e52ef7448a7ec29c099092c5be7b063f7_bbce8895-1fdf-46ff-90da-c1ddcb9332e2.webp?v=1714977353","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918553227363,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31491854205027,"product_id":7416328028259,"position":3,"created_at":"2024-05-06T14:35:28+08:00","updated_at":"2024-05-06T14:35:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/098f046a0747ca368fb0775b275a9f9fa3e69595_12cca270-a768-4278-b5b7-bdca4bd3671e.webp?v=1714977328","variant_ids":[41918553227363]},"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-SB08","featured_media":{"alt":null,"id":23897267044451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/098f046a0747ca368fb0775b275a9f9fa3e69595_12cca270-a768-4278-b5b7-bdca4bd3671e.webp?v=1714977328"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918553227363,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-SB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31491854205027,"product_id":7416328028259,"position":3,"created_at":"2024-05-06T14:35:28+08:00","updated_at":"2024-05-06T14:35:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/098f046a0747ca368fb0775b275a9f9fa3e69595_12cca270-a768-4278-b5b7-bdca4bd3671e.webp?v=1714977328","variant_ids":[41918553227363]},"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-SB08","featured_media":{"alt":null,"id":23897267044451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/098f046a0747ca368fb0775b275a9f9fa3e69595_12cca270-a768-4278-b5b7-bdca4bd3671e.webp?v=1714977328"}},"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: "停產" }