$product = {"id":7415902634083,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 小圖款-凱羅忍","handle":"iphone-xs-max-mod-nx-printable-pc06","description":null,"published_at":"2024-06-11T16:47:30+08:00","created_at":"2024-05-06T12:21:46+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":41915370012771,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PC06","requires_shipping":true,"taxable":true,"featured_image":{"id":31490695331939,"product_id":7415902634083,"position":4,"created_at":"2024-05-06T12:21:56+08:00","updated_at":"2024-05-06T12:21:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ae0bf38731899bffca466bd85dbf232a9194b4d_ff09672e-f3f5-4086-b64d-21fba50d2560.webp?v=1714969316","variant_ids":[41915370012771]},"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-PC06","featured_media":{"alt":null,"id":23896102010979,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ae0bf38731899bffca466bd85dbf232a9194b4d_ff09672e-f3f5-4086-b64d-21fba50d2560.webp?v=1714969316"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea4a4af9daaaa2826a79dcff18cda57223160987_c1652f45-02e5-452a-9b4e-d650e3e3edc4.webp?v=1714969309","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7aa406b37ccfe30475865631649a3a6e34c8782a_4a95eb43-424e-464e-9353-84e11b1ee728.webp?v=1714969311","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54ca7b10f2610eafaa9e3a5db6651487db42b3c9_810253f5-4f98-4ffc-bbc1-8e9e535d948e.webp?v=1714969314","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ae0bf38731899bffca466bd85dbf232a9194b4d_ff09672e-f3f5-4086-b64d-21fba50d2560.webp?v=1714969316","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9d5714f92d2537bbd2cc3a6ac37de7b7c35ae42_527c5653-7968-4286-bbb2-32c69637ae4c.webp?v=1714969319","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21f6798d46afec999124716fd08fcd9fca42c3be_00ea0f5c-9235-4bcf-a477-2c81c0d21358.webp?v=1714969321","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/445fcd58adc2203915280b1c1097fe318ed1f60c_6e3be3bc-b280-4779-b06d-077aec592c5b.webp?v=1714969323","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38d3a65e6b805bf7fba4361ca54355c8359ca28b_106ae3df-2c92-4aa4-a5d0-5e9f35623b67.webp?v=1714969327","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d4e6eddd955a78dc885d414f9dbead8dc4c296e_50705521-46c5-4b52-9401-b26562ba95fe.webp?v=1714969329","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c0d98dbceb3090781120a091a0f059263d262ee_389031cd-4f09-4f75-9cc5-5053401469a2.webp?v=1714969331"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea4a4af9daaaa2826a79dcff18cda57223160987_c1652f45-02e5-452a-9b4e-d650e3e3edc4.webp?v=1714969309","options":["color"],"media":[{"alt":null,"id":23896100733027,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea4a4af9daaaa2826a79dcff18cda57223160987_c1652f45-02e5-452a-9b4e-d650e3e3edc4.webp?v=1714969309"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea4a4af9daaaa2826a79dcff18cda57223160987_c1652f45-02e5-452a-9b4e-d650e3e3edc4.webp?v=1714969309","width":2000},{"alt":null,"id":23896101126243,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7aa406b37ccfe30475865631649a3a6e34c8782a_4a95eb43-424e-464e-9353-84e11b1ee728.webp?v=1714969311"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7aa406b37ccfe30475865631649a3a6e34c8782a_4a95eb43-424e-464e-9353-84e11b1ee728.webp?v=1714969311","width":2000},{"alt":null,"id":23896101617763,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54ca7b10f2610eafaa9e3a5db6651487db42b3c9_810253f5-4f98-4ffc-bbc1-8e9e535d948e.webp?v=1714969314"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54ca7b10f2610eafaa9e3a5db6651487db42b3c9_810253f5-4f98-4ffc-bbc1-8e9e535d948e.webp?v=1714969314","width":2000},{"alt":null,"id":23896102010979,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ae0bf38731899bffca466bd85dbf232a9194b4d_ff09672e-f3f5-4086-b64d-21fba50d2560.webp?v=1714969316"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ae0bf38731899bffca466bd85dbf232a9194b4d_ff09672e-f3f5-4086-b64d-21fba50d2560.webp?v=1714969316","width":2000},{"alt":null,"id":23896102535267,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9d5714f92d2537bbd2cc3a6ac37de7b7c35ae42_527c5653-7968-4286-bbb2-32c69637ae4c.webp?v=1714969319"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9d5714f92d2537bbd2cc3a6ac37de7b7c35ae42_527c5653-7968-4286-bbb2-32c69637ae4c.webp?v=1714969319","width":2000},{"alt":null,"id":23896102830179,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21f6798d46afec999124716fd08fcd9fca42c3be_00ea0f5c-9235-4bcf-a477-2c81c0d21358.webp?v=1714969321"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21f6798d46afec999124716fd08fcd9fca42c3be_00ea0f5c-9235-4bcf-a477-2c81c0d21358.webp?v=1714969321","width":2000},{"alt":null,"id":23896103256163,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/445fcd58adc2203915280b1c1097fe318ed1f60c_6e3be3bc-b280-4779-b06d-077aec592c5b.webp?v=1714969323"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/445fcd58adc2203915280b1c1097fe318ed1f60c_6e3be3bc-b280-4779-b06d-077aec592c5b.webp?v=1714969323","width":2000},{"alt":null,"id":23896104108131,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38d3a65e6b805bf7fba4361ca54355c8359ca28b_106ae3df-2c92-4aa4-a5d0-5e9f35623b67.webp?v=1714969327"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38d3a65e6b805bf7fba4361ca54355c8359ca28b_106ae3df-2c92-4aa4-a5d0-5e9f35623b67.webp?v=1714969327","width":2000},{"alt":null,"id":23896104599651,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d4e6eddd955a78dc885d414f9dbead8dc4c296e_50705521-46c5-4b52-9401-b26562ba95fe.webp?v=1714969329"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d4e6eddd955a78dc885d414f9dbead8dc4c296e_50705521-46c5-4b52-9401-b26562ba95fe.webp?v=1714969329","width":2000},{"alt":null,"id":23896105025635,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c0d98dbceb3090781120a091a0f059263d262ee_389031cd-4f09-4f75-9cc5-5053401469a2.webp?v=1714969331"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c0d98dbceb3090781120a091a0f059263d262ee_389031cd-4f09-4f75-9cc5-5053401469a2.webp?v=1714969331","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41915370012771,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PC06","requires_shipping":true,"taxable":true,"featured_image":{"id":31490695331939,"product_id":7415902634083,"position":4,"created_at":"2024-05-06T12:21:56+08:00","updated_at":"2024-05-06T12:21:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ae0bf38731899bffca466bd85dbf232a9194b4d_ff09672e-f3f5-4086-b64d-21fba50d2560.webp?v=1714969316","variant_ids":[41915370012771]},"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-PC06","featured_media":{"alt":null,"id":23896102010979,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ae0bf38731899bffca466bd85dbf232a9194b4d_ff09672e-f3f5-4086-b64d-21fba50d2560.webp?v=1714969316"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41915370012771,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-PC06","requires_shipping":true,"taxable":true,"featured_image":{"id":31490695331939,"product_id":7415902634083,"position":4,"created_at":"2024-05-06T12:21:56+08:00","updated_at":"2024-05-06T12:21:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ae0bf38731899bffca466bd85dbf232a9194b4d_ff09672e-f3f5-4086-b64d-21fba50d2560.webp?v=1714969316","variant_ids":[41915370012771]},"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-PC06","featured_media":{"alt":null,"id":23896102010979,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ae0bf38731899bffca466bd85dbf232a9194b4d_ff09672e-f3f5-4086-b64d-21fba50d2560.webp?v=1714969316"}},"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: "停產" }