$product = {"id":7416366825571,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Look - 人在做 北極冰川在看","handle":"iphone-8-mod-nx-printable-af05","description":null,"published_at":"2024-06-11T16:57:06+08:00","created_at":"2024-05-06T14:43:10+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Look","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 8","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-look","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":41918963875939,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-AF05","requires_shipping":true,"taxable":true,"featured_image":{"id":31491954409571,"product_id":7416366825571,"position":6,"created_at":"2024-05-06T14:43:25+08:00","updated_at":"2024-05-06T14:43:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dec150b575f84d7658594e70bd5980fec0090886_cb336e03-02b7-4bde-b1e2-fa478fe59a92.webp?v=1714977805","variant_ids":[41918963875939]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Look - 人在做 北極冰川在看 - 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":"NPB0105424-AF05","featured_media":{"alt":null,"id":23897367576675,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dec150b575f84d7658594e70bd5980fec0090886_cb336e03-02b7-4bde-b1e2-fa478fe59a92.webp?v=1714977805"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38f64afa5845032c03c593f6af0e01b54e3c3208_88b00f4b-cdee-4c55-94f8-eba6c185e957.webp?v=1714977793","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f24fdb934982226f7dadfe78c4668d31afebaf00_84238487-43c7-42fb-ad9c-2b9b504ebd82.webp?v=1714977795","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4455db4d94c14f87e2297822fedf43f672bec55_ed6752a6-cb84-4178-a482-c7be97e956b9.webp?v=1714977798","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17e8be80765a830bb2519fee3b45d03abde47689_925e9b8f-57e5-4320-898a-ee853f54bd4d.webp?v=1714977800","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/409fc7070f4adb4e4e008ece2d9e5128f47e6f88_7014fa1f-2e65-463b-a866-0351391bb7f1.webp?v=1714977803","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dec150b575f84d7658594e70bd5980fec0090886_cb336e03-02b7-4bde-b1e2-fa478fe59a92.webp?v=1714977805","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/962b0d7987e51d031b4e6a5e35a2ecbea8d9e410_512aa939-f15b-4a77-a209-eb6f812f882d.webp?v=1714977807","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33d9534204843c4fe5f8373d257832c6c43128e5_d8ef164c-707f-43c0-914b-3e0cd331d261.webp?v=1714977810","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d02b2fb9ee50d84f136ba603ade8be004c3e6d6_e4eed8d9-d654-4ef5-aa9b-3741cddc001d.webp?v=1714977813","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d215614c7d402573b512490e28d80194520b4a4_c163921b-f7dc-4aa2-b0e7-4e61cc8382e0.webp?v=1714977815"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38f64afa5845032c03c593f6af0e01b54e3c3208_88b00f4b-cdee-4c55-94f8-eba6c185e957.webp?v=1714977793","options":["color"],"media":[{"alt":null,"id":23897365053539,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38f64afa5845032c03c593f6af0e01b54e3c3208_88b00f4b-cdee-4c55-94f8-eba6c185e957.webp?v=1714977793"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38f64afa5845032c03c593f6af0e01b54e3c3208_88b00f4b-cdee-4c55-94f8-eba6c185e957.webp?v=1714977793","width":2000},{"alt":null,"id":23897365708899,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f24fdb934982226f7dadfe78c4668d31afebaf00_84238487-43c7-42fb-ad9c-2b9b504ebd82.webp?v=1714977795"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f24fdb934982226f7dadfe78c4668d31afebaf00_84238487-43c7-42fb-ad9c-2b9b504ebd82.webp?v=1714977795","width":2000},{"alt":null,"id":23897366102115,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4455db4d94c14f87e2297822fedf43f672bec55_ed6752a6-cb84-4178-a482-c7be97e956b9.webp?v=1714977798"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4455db4d94c14f87e2297822fedf43f672bec55_ed6752a6-cb84-4178-a482-c7be97e956b9.webp?v=1714977798","width":2000},{"alt":null,"id":23897366560867,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17e8be80765a830bb2519fee3b45d03abde47689_925e9b8f-57e5-4320-898a-ee853f54bd4d.webp?v=1714977800"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17e8be80765a830bb2519fee3b45d03abde47689_925e9b8f-57e5-4320-898a-ee853f54bd4d.webp?v=1714977800","width":2000},{"alt":null,"id":23897367019619,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/409fc7070f4adb4e4e008ece2d9e5128f47e6f88_7014fa1f-2e65-463b-a866-0351391bb7f1.webp?v=1714977803"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/409fc7070f4adb4e4e008ece2d9e5128f47e6f88_7014fa1f-2e65-463b-a866-0351391bb7f1.webp?v=1714977803","width":2000},{"alt":null,"id":23897367576675,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dec150b575f84d7658594e70bd5980fec0090886_cb336e03-02b7-4bde-b1e2-fa478fe59a92.webp?v=1714977805"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dec150b575f84d7658594e70bd5980fec0090886_cb336e03-02b7-4bde-b1e2-fa478fe59a92.webp?v=1714977805","width":2000},{"alt":null,"id":23897368100963,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/962b0d7987e51d031b4e6a5e35a2ecbea8d9e410_512aa939-f15b-4a77-a209-eb6f812f882d.webp?v=1714977807"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/962b0d7987e51d031b4e6a5e35a2ecbea8d9e410_512aa939-f15b-4a77-a209-eb6f812f882d.webp?v=1714977807","width":2000},{"alt":null,"id":23897368592483,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33d9534204843c4fe5f8373d257832c6c43128e5_d8ef164c-707f-43c0-914b-3e0cd331d261.webp?v=1714977810"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33d9534204843c4fe5f8373d257832c6c43128e5_d8ef164c-707f-43c0-914b-3e0cd331d261.webp?v=1714977810","width":2000},{"alt":null,"id":23897369215075,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d02b2fb9ee50d84f136ba603ade8be004c3e6d6_e4eed8d9-d654-4ef5-aa9b-3741cddc001d.webp?v=1714977813"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d02b2fb9ee50d84f136ba603ade8be004c3e6d6_e4eed8d9-d654-4ef5-aa9b-3741cddc001d.webp?v=1714977813","width":2000},{"alt":null,"id":23897369673827,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d215614c7d402573b512490e28d80194520b4a4_c163921b-f7dc-4aa2-b0e7-4e61cc8382e0.webp?v=1714977815"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d215614c7d402573b512490e28d80194520b4a4_c163921b-f7dc-4aa2-b0e7-4e61cc8382e0.webp?v=1714977815","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918963875939,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-AF05","requires_shipping":true,"taxable":true,"featured_image":{"id":31491954409571,"product_id":7416366825571,"position":6,"created_at":"2024-05-06T14:43:25+08:00","updated_at":"2024-05-06T14:43:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dec150b575f84d7658594e70bd5980fec0090886_cb336e03-02b7-4bde-b1e2-fa478fe59a92.webp?v=1714977805","variant_ids":[41918963875939]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Look - 人在做 北極冰川在看 - 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":"NPB0105424-AF05","featured_media":{"alt":null,"id":23897367576675,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dec150b575f84d7658594e70bd5980fec0090886_cb336e03-02b7-4bde-b1e2-fa478fe59a92.webp?v=1714977805"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918963875939,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-AF05","requires_shipping":true,"taxable":true,"featured_image":{"id":31491954409571,"product_id":7416366825571,"position":6,"created_at":"2024-05-06T14:43:25+08:00","updated_at":"2024-05-06T14:43:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dec150b575f84d7658594e70bd5980fec0090886_cb336e03-02b7-4bde-b1e2-fa478fe59a92.webp?v=1714977805","variant_ids":[41918963875939]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Look - 人在做 北極冰川在看 - 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":"NPB0105424-AF05","featured_media":{"alt":null,"id":23897367576675,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dec150b575f84d7658594e70bd5980fec0090886_cb336e03-02b7-4bde-b1e2-fa478fe59a92.webp?v=1714977805"}},"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: "停產" }