$product = {"id":7416012144739,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-散步-幽默系列","handle":"iphone-xs-max-mod-nx-printable-pc13","description":null,"published_at":"2024-06-11T16:50:23+08:00","created_at":"2024-05-06T12:42:02+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone XS Max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","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":41916496380003,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31490981036131,"product_id":7416012144739,"position":1,"created_at":"2024-05-06T12:42:04+08:00","updated_at":"2024-05-06T12:42:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90c11a02171e4fd1dcd02622ff33233031a8d511_dbd1f11f-f5b5-4361-a7de-e8ab0477e798.webp?v=1714970524","variant_ids":[41916496380003]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-散步-幽默系列 - 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":"NPB0108624-PC13","featured_media":{"alt":null,"id":23896388239459,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90c11a02171e4fd1dcd02622ff33233031a8d511_dbd1f11f-f5b5-4361-a7de-e8ab0477e798.webp?v=1714970524"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90c11a02171e4fd1dcd02622ff33233031a8d511_dbd1f11f-f5b5-4361-a7de-e8ab0477e798.webp?v=1714970524","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb127fea27ebb3f0d1c59732fed6425769336e1c_239d9bd1-8cfd-4afc-bea3-47e534fd3623.webp?v=1714970527","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e3e444b2d4b5bfed1d7062116cfe4603dca3e24_c917fa9a-d826-44af-99ac-f3a768690408.webp?v=1714970529","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42511598c280e50f90bd2ce09311891325eaf96b_6d063ff8-6c27-4ac3-9e21-bdaeee6b6c77.webp?v=1714970532","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a14f2e431cba783d0f36a14f0464e23250a54cf2_16ef8d4d-604f-48f3-a828-c38b8f95c642.webp?v=1714970534","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5dc84a8d9d9d7fbaeff3bbfe6f3a6695882df3b8_d5e6002e-f7b1-4759-85ff-eca1ebdc3f03.webp?v=1714970536","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8db915e94ab5f1c8176fefbdff09bfef55e3c389_cc8986dd-aa9f-40ca-9ae2-2aff7364c753.webp?v=1714970539","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/420cb26360971a1c327c9cb3444bf3e2a561c531_9f0b7ebf-5db4-4c9e-8733-7838583c76da.webp?v=1714970541","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c431407c2a2af55b3a8248383e0ed72f6e48251f_c2116845-1dd2-4c08-935a-1ef44ecf1282.webp?v=1714970544","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/255ab87200a78e2dd2ed2998d634a7eb3bc1e805_72c18690-cde9-4430-9368-8d3946924091.webp?v=1714970546"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90c11a02171e4fd1dcd02622ff33233031a8d511_dbd1f11f-f5b5-4361-a7de-e8ab0477e798.webp?v=1714970524","options":["color"],"media":[{"alt":null,"id":23896388239459,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90c11a02171e4fd1dcd02622ff33233031a8d511_dbd1f11f-f5b5-4361-a7de-e8ab0477e798.webp?v=1714970524"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90c11a02171e4fd1dcd02622ff33233031a8d511_dbd1f11f-f5b5-4361-a7de-e8ab0477e798.webp?v=1714970524","width":2000},{"alt":null,"id":23896389189731,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb127fea27ebb3f0d1c59732fed6425769336e1c_239d9bd1-8cfd-4afc-bea3-47e534fd3623.webp?v=1714970527"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb127fea27ebb3f0d1c59732fed6425769336e1c_239d9bd1-8cfd-4afc-bea3-47e534fd3623.webp?v=1714970527","width":2000},{"alt":null,"id":23896389550179,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e3e444b2d4b5bfed1d7062116cfe4603dca3e24_c917fa9a-d826-44af-99ac-f3a768690408.webp?v=1714970529"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e3e444b2d4b5bfed1d7062116cfe4603dca3e24_c917fa9a-d826-44af-99ac-f3a768690408.webp?v=1714970529","width":2000},{"alt":null,"id":23896390271075,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42511598c280e50f90bd2ce09311891325eaf96b_6d063ff8-6c27-4ac3-9e21-bdaeee6b6c77.webp?v=1714970532"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42511598c280e50f90bd2ce09311891325eaf96b_6d063ff8-6c27-4ac3-9e21-bdaeee6b6c77.webp?v=1714970532","width":2000},{"alt":null,"id":23896391286883,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a14f2e431cba783d0f36a14f0464e23250a54cf2_16ef8d4d-604f-48f3-a828-c38b8f95c642.webp?v=1714970534"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a14f2e431cba783d0f36a14f0464e23250a54cf2_16ef8d4d-604f-48f3-a828-c38b8f95c642.webp?v=1714970534","width":2000},{"alt":null,"id":23896391909475,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5dc84a8d9d9d7fbaeff3bbfe6f3a6695882df3b8_d5e6002e-f7b1-4759-85ff-eca1ebdc3f03.webp?v=1714970536"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5dc84a8d9d9d7fbaeff3bbfe6f3a6695882df3b8_d5e6002e-f7b1-4759-85ff-eca1ebdc3f03.webp?v=1714970536","width":2000},{"alt":null,"id":23896392499299,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8db915e94ab5f1c8176fefbdff09bfef55e3c389_cc8986dd-aa9f-40ca-9ae2-2aff7364c753.webp?v=1714970539"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8db915e94ab5f1c8176fefbdff09bfef55e3c389_cc8986dd-aa9f-40ca-9ae2-2aff7364c753.webp?v=1714970539","width":2000},{"alt":null,"id":23896393089123,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/420cb26360971a1c327c9cb3444bf3e2a561c531_9f0b7ebf-5db4-4c9e-8733-7838583c76da.webp?v=1714970541"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/420cb26360971a1c327c9cb3444bf3e2a561c531_9f0b7ebf-5db4-4c9e-8733-7838583c76da.webp?v=1714970541","width":2000},{"alt":null,"id":23896393416803,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c431407c2a2af55b3a8248383e0ed72f6e48251f_c2116845-1dd2-4c08-935a-1ef44ecf1282.webp?v=1714970544"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c431407c2a2af55b3a8248383e0ed72f6e48251f_c2116845-1dd2-4c08-935a-1ef44ecf1282.webp?v=1714970544","width":2000},{"alt":null,"id":23896394039395,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/255ab87200a78e2dd2ed2998d634a7eb3bc1e805_72c18690-cde9-4430-9368-8d3946924091.webp?v=1714970546"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/255ab87200a78e2dd2ed2998d634a7eb3bc1e805_72c18690-cde9-4430-9368-8d3946924091.webp?v=1714970546","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41916496380003,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31490981036131,"product_id":7416012144739,"position":1,"created_at":"2024-05-06T12:42:04+08:00","updated_at":"2024-05-06T12:42:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90c11a02171e4fd1dcd02622ff33233031a8d511_dbd1f11f-f5b5-4361-a7de-e8ab0477e798.webp?v=1714970524","variant_ids":[41916496380003]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-散步-幽默系列 - 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":"NPB0108624-PC13","featured_media":{"alt":null,"id":23896388239459,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90c11a02171e4fd1dcd02622ff33233031a8d511_dbd1f11f-f5b5-4361-a7de-e8ab0477e798.webp?v=1714970524"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41916496380003,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31490981036131,"product_id":7416012144739,"position":1,"created_at":"2024-05-06T12:42:04+08:00","updated_at":"2024-05-06T12:42:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90c11a02171e4fd1dcd02622ff33233031a8d511_dbd1f11f-f5b5-4361-a7de-e8ab0477e798.webp?v=1714970524","variant_ids":[41916496380003]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-散步-幽默系列 - 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":"NPB0108624-PC13","featured_media":{"alt":null,"id":23896388239459,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90c11a02171e4fd1dcd02622ff33233031a8d511_dbd1f11f-f5b5-4361-a7de-e8ab0477e798.webp?v=1714970524"}},"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: "停產" }