$product = {"id":7416360665187,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Look - 人在做 大堡礁在看","handle":"iphone-8-mod-nx-printable-af07","description":null,"published_at":"2024-06-11T16:56:56+08:00","created_at":"2024-05-06T14:41:51+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":41918895259747,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-AF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31491935666275,"product_id":7416360665187,"position":1,"created_at":"2024-05-06T14:41:53+08:00","updated_at":"2024-05-06T14:41:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3ed058a0b9acf433daac7b84970fd2f38ce90ab_2ed1c878-07cf-4d04-94bb-cf4ba2a1e3cc.webp?v=1714977713","variant_ids":[41918895259747]},"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-AF07","featured_media":{"alt":null,"id":23897348767843,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3ed058a0b9acf433daac7b84970fd2f38ce90ab_2ed1c878-07cf-4d04-94bb-cf4ba2a1e3cc.webp?v=1714977713"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3ed058a0b9acf433daac7b84970fd2f38ce90ab_2ed1c878-07cf-4d04-94bb-cf4ba2a1e3cc.webp?v=1714977713","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/755ba59b6fe7d320d0b3ff5d8bc9dd970c86ccde_527dbbf7-97e0-41bd-9adf-8a7883372ad1.webp?v=1714977715","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e676f52f1c175c079bb85829b60437df85ad6e49_06700e2e-e0af-4674-9cdc-abdc7a107530.webp?v=1714977718","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba3c101804e8e0443a23f976807a9db849db4cc5_6865ddaa-962c-4daa-9363-3093d63eb8cf.webp?v=1714977720","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2ad842053b31374a26a38a69800c17820b9061b_e61dd3cd-bd18-4a73-b658-73cc86142fea.webp?v=1714977722","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/706f191bf699509e4722e82ece5c31b69858935f_c8442cb7-274e-4dbb-8f92-e59a388e1706.webp?v=1714977724","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c07f18a9cce4539b2826f91043efdee348aa783_4c3c60b2-9ea4-4bc2-816e-57f24de55e05.webp?v=1714977727","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d67ce6bce0e59be4ce0ac93a541474fb8d96989b_d4c8f0ba-3708-4573-9e22-fd95ecece0ef.webp?v=1714977730","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e659fd06274e0fe45bf31355595d849a18855975_f621243b-f2c5-43a7-aa5c-aaba79d7f9ed.webp?v=1714977732","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68fff8590c65811bfa7f75d0a10e5ebb0e9c8ae2_7d45a0a7-a26e-485d-b318-b466005913d4.webp?v=1714977734"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3ed058a0b9acf433daac7b84970fd2f38ce90ab_2ed1c878-07cf-4d04-94bb-cf4ba2a1e3cc.webp?v=1714977713","options":["color"],"media":[{"alt":null,"id":23897348767843,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3ed058a0b9acf433daac7b84970fd2f38ce90ab_2ed1c878-07cf-4d04-94bb-cf4ba2a1e3cc.webp?v=1714977713"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3ed058a0b9acf433daac7b84970fd2f38ce90ab_2ed1c878-07cf-4d04-94bb-cf4ba2a1e3cc.webp?v=1714977713","width":2000},{"alt":null,"id":23897349357667,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/755ba59b6fe7d320d0b3ff5d8bc9dd970c86ccde_527dbbf7-97e0-41bd-9adf-8a7883372ad1.webp?v=1714977715"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/755ba59b6fe7d320d0b3ff5d8bc9dd970c86ccde_527dbbf7-97e0-41bd-9adf-8a7883372ad1.webp?v=1714977715","width":2000},{"alt":null,"id":23897349849187,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e676f52f1c175c079bb85829b60437df85ad6e49_06700e2e-e0af-4674-9cdc-abdc7a107530.webp?v=1714977718"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e676f52f1c175c079bb85829b60437df85ad6e49_06700e2e-e0af-4674-9cdc-abdc7a107530.webp?v=1714977718","width":2000},{"alt":null,"id":23897350242403,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba3c101804e8e0443a23f976807a9db849db4cc5_6865ddaa-962c-4daa-9363-3093d63eb8cf.webp?v=1714977720"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba3c101804e8e0443a23f976807a9db849db4cc5_6865ddaa-962c-4daa-9363-3093d63eb8cf.webp?v=1714977720","width":2000},{"alt":null,"id":23897350635619,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2ad842053b31374a26a38a69800c17820b9061b_e61dd3cd-bd18-4a73-b658-73cc86142fea.webp?v=1714977722"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2ad842053b31374a26a38a69800c17820b9061b_e61dd3cd-bd18-4a73-b658-73cc86142fea.webp?v=1714977722","width":2000},{"alt":null,"id":23897351127139,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/706f191bf699509e4722e82ece5c31b69858935f_c8442cb7-274e-4dbb-8f92-e59a388e1706.webp?v=1714977724"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/706f191bf699509e4722e82ece5c31b69858935f_c8442cb7-274e-4dbb-8f92-e59a388e1706.webp?v=1714977724","width":2000},{"alt":null,"id":23897351585891,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c07f18a9cce4539b2826f91043efdee348aa783_4c3c60b2-9ea4-4bc2-816e-57f24de55e05.webp?v=1714977727"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c07f18a9cce4539b2826f91043efdee348aa783_4c3c60b2-9ea4-4bc2-816e-57f24de55e05.webp?v=1714977727","width":2000},{"alt":null,"id":23897352044643,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d67ce6bce0e59be4ce0ac93a541474fb8d96989b_d4c8f0ba-3708-4573-9e22-fd95ecece0ef.webp?v=1714977730"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d67ce6bce0e59be4ce0ac93a541474fb8d96989b_d4c8f0ba-3708-4573-9e22-fd95ecece0ef.webp?v=1714977730","width":2000},{"alt":null,"id":23897352503395,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e659fd06274e0fe45bf31355595d849a18855975_f621243b-f2c5-43a7-aa5c-aaba79d7f9ed.webp?v=1714977732"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e659fd06274e0fe45bf31355595d849a18855975_f621243b-f2c5-43a7-aa5c-aaba79d7f9ed.webp?v=1714977732","width":2000},{"alt":null,"id":23897353224291,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68fff8590c65811bfa7f75d0a10e5ebb0e9c8ae2_7d45a0a7-a26e-485d-b318-b466005913d4.webp?v=1714977734"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68fff8590c65811bfa7f75d0a10e5ebb0e9c8ae2_7d45a0a7-a26e-485d-b318-b466005913d4.webp?v=1714977734","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918895259747,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-AF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31491935666275,"product_id":7416360665187,"position":1,"created_at":"2024-05-06T14:41:53+08:00","updated_at":"2024-05-06T14:41:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3ed058a0b9acf433daac7b84970fd2f38ce90ab_2ed1c878-07cf-4d04-94bb-cf4ba2a1e3cc.webp?v=1714977713","variant_ids":[41918895259747]},"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-AF07","featured_media":{"alt":null,"id":23897348767843,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3ed058a0b9acf433daac7b84970fd2f38ce90ab_2ed1c878-07cf-4d04-94bb-cf4ba2a1e3cc.webp?v=1714977713"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918895259747,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-AF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31491935666275,"product_id":7416360665187,"position":1,"created_at":"2024-05-06T14:41:53+08:00","updated_at":"2024-05-06T14:41:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3ed058a0b9acf433daac7b84970fd2f38ce90ab_2ed1c878-07cf-4d04-94bb-cf4ba2a1e3cc.webp?v=1714977713","variant_ids":[41918895259747]},"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-AF07","featured_media":{"alt":null,"id":23897348767843,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3ed058a0b9acf433daac7b84970fd2f38ce90ab_2ed1c878-07cf-4d04-94bb-cf4ba2a1e3cc.webp?v=1714977713"}},"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: "停產" }