$product = {"id":7415997825123,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-潮流系列","handle":"iphone-xs-max-mod-nx-printable-pb42","description":null,"published_at":"2024-06-11T16:50:00+08:00","created_at":"2024-05-06T12:39:27+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":41916349481059,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB42","requires_shipping":true,"taxable":true,"featured_image":{"id":31490949120099,"product_id":7415997825123,"position":8,"created_at":"2024-05-06T12:39:47+08:00","updated_at":"2024-05-06T12:39:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8197769c61caea3db35e8b2d8826584789795562_d0949b77-9a4f-4179-812e-fb5c9c64b49d.webp?v=1714970387","variant_ids":[41916349481059]},"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-PB42","featured_media":{"alt":null,"id":23896356192355,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8197769c61caea3db35e8b2d8826584789795562_d0949b77-9a4f-4179-812e-fb5c9c64b49d.webp?v=1714970387"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83e927b5b0b007fb4d79a6c07eea884848cfdd27_f19adbde-64e6-4ed2-aa87-e2023fefd1b8.webp?v=1714970370","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e01a05f38fce31ff0b2fc0668dd943ed53503a31_45fd3706-2aa1-4184-8da6-c58197029720.webp?v=1714970372","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c573e284d8d59e981579001fb30b45df2eb444cb_a5ecb27a-61fd-43a9-952d-b5708194e863.webp?v=1714970375","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9c89abec8cc5d2b8d2c59bb0585ecf795b68ad7_2f7a620f-7f8d-4665-8a91-e0e648d6c6bb.webp?v=1714970377","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8af7eec5eff5d19f577e1b4f4c80ee48fb68ef9f_b953959d-9438-4e27-b2ef-31cc56d5dabc.webp?v=1714970380","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10de7c6a4368bc9d53fff6004ade1929c6a1264e_8a8258b3-6060-4143-8f71-2360eb95130a.webp?v=1714970382","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d924ebcc1b92a56ce0b4d137d57fe369b77dc98f_185460b2-fd30-4733-8371-711d60114fde.webp?v=1714970384","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8197769c61caea3db35e8b2d8826584789795562_d0949b77-9a4f-4179-812e-fb5c9c64b49d.webp?v=1714970387","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9cbb7fdf0a89b4de88d6af79dbcd707122cbd62_06074baf-48be-4a0e-820b-96634ed793be.webp?v=1714970389","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc26b04c89434498325c9b71e7eea3b4c334b08c_591b1cda-0178-4f69-9b7d-de0b88fe237c.webp?v=1714970392"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83e927b5b0b007fb4d79a6c07eea884848cfdd27_f19adbde-64e6-4ed2-aa87-e2023fefd1b8.webp?v=1714970370","options":["color"],"media":[{"alt":null,"id":23896352161891,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83e927b5b0b007fb4d79a6c07eea884848cfdd27_f19adbde-64e6-4ed2-aa87-e2023fefd1b8.webp?v=1714970370"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83e927b5b0b007fb4d79a6c07eea884848cfdd27_f19adbde-64e6-4ed2-aa87-e2023fefd1b8.webp?v=1714970370","width":2000},{"alt":null,"id":23896352686179,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e01a05f38fce31ff0b2fc0668dd943ed53503a31_45fd3706-2aa1-4184-8da6-c58197029720.webp?v=1714970372"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e01a05f38fce31ff0b2fc0668dd943ed53503a31_45fd3706-2aa1-4184-8da6-c58197029720.webp?v=1714970372","width":2000},{"alt":null,"id":23896353112163,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c573e284d8d59e981579001fb30b45df2eb444cb_a5ecb27a-61fd-43a9-952d-b5708194e863.webp?v=1714970375"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c573e284d8d59e981579001fb30b45df2eb444cb_a5ecb27a-61fd-43a9-952d-b5708194e863.webp?v=1714970375","width":2000},{"alt":null,"id":23896353570915,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9c89abec8cc5d2b8d2c59bb0585ecf795b68ad7_2f7a620f-7f8d-4665-8a91-e0e648d6c6bb.webp?v=1714970377"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f9c89abec8cc5d2b8d2c59bb0585ecf795b68ad7_2f7a620f-7f8d-4665-8a91-e0e648d6c6bb.webp?v=1714970377","width":2000},{"alt":null,"id":23896353996899,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8af7eec5eff5d19f577e1b4f4c80ee48fb68ef9f_b953959d-9438-4e27-b2ef-31cc56d5dabc.webp?v=1714970380"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8af7eec5eff5d19f577e1b4f4c80ee48fb68ef9f_b953959d-9438-4e27-b2ef-31cc56d5dabc.webp?v=1714970380","width":2000},{"alt":null,"id":23896354553955,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10de7c6a4368bc9d53fff6004ade1929c6a1264e_8a8258b3-6060-4143-8f71-2360eb95130a.webp?v=1714970382"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10de7c6a4368bc9d53fff6004ade1929c6a1264e_8a8258b3-6060-4143-8f71-2360eb95130a.webp?v=1714970382","width":2000},{"alt":null,"id":23896355045475,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d924ebcc1b92a56ce0b4d137d57fe369b77dc98f_185460b2-fd30-4733-8371-711d60114fde.webp?v=1714970384"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d924ebcc1b92a56ce0b4d137d57fe369b77dc98f_185460b2-fd30-4733-8371-711d60114fde.webp?v=1714970384","width":2000},{"alt":null,"id":23896356192355,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8197769c61caea3db35e8b2d8826584789795562_d0949b77-9a4f-4179-812e-fb5c9c64b49d.webp?v=1714970387"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8197769c61caea3db35e8b2d8826584789795562_d0949b77-9a4f-4179-812e-fb5c9c64b49d.webp?v=1714970387","width":2000},{"alt":null,"id":23896356618339,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9cbb7fdf0a89b4de88d6af79dbcd707122cbd62_06074baf-48be-4a0e-820b-96634ed793be.webp?v=1714970389"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9cbb7fdf0a89b4de88d6af79dbcd707122cbd62_06074baf-48be-4a0e-820b-96634ed793be.webp?v=1714970389","width":2000},{"alt":null,"id":23896357011555,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc26b04c89434498325c9b71e7eea3b4c334b08c_591b1cda-0178-4f69-9b7d-de0b88fe237c.webp?v=1714970392"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc26b04c89434498325c9b71e7eea3b4c334b08c_591b1cda-0178-4f69-9b7d-de0b88fe237c.webp?v=1714970392","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41916349481059,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB42","requires_shipping":true,"taxable":true,"featured_image":{"id":31490949120099,"product_id":7415997825123,"position":8,"created_at":"2024-05-06T12:39:47+08:00","updated_at":"2024-05-06T12:39:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8197769c61caea3db35e8b2d8826584789795562_d0949b77-9a4f-4179-812e-fb5c9c64b49d.webp?v=1714970387","variant_ids":[41916349481059]},"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-PB42","featured_media":{"alt":null,"id":23896356192355,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8197769c61caea3db35e8b2d8826584789795562_d0949b77-9a4f-4179-812e-fb5c9c64b49d.webp?v=1714970387"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41916349481059,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PB42","requires_shipping":true,"taxable":true,"featured_image":{"id":31490949120099,"product_id":7415997825123,"position":8,"created_at":"2024-05-06T12:39:47+08:00","updated_at":"2024-05-06T12:39:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8197769c61caea3db35e8b2d8826584789795562_d0949b77-9a4f-4179-812e-fb5c9c64b49d.webp?v=1714970387","variant_ids":[41916349481059]},"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-PB42","featured_media":{"alt":null,"id":23896356192355,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8197769c61caea3db35e8b2d8826584789795562_d0949b77-9a4f-4179-812e-fb5c9c64b49d.webp?v=1714970387"}},"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: "停產" }