$product = {"id":7408540876899,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - ATAT-日文字系列","handle":"iphone-12-pro-max-mod-nx-printable-pb66","description":null,"published_at":"2024-06-11T16:40:09+08:00","created_at":"2024-05-03T15:46:42+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 12 pro 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":41886649319523,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB66","requires_shipping":true,"taxable":true,"featured_image":{"id":31472538550371,"product_id":7408540876899,"position":3,"created_at":"2024-05-03T15:46:49+08:00","updated_at":"2024-05-03T15:46:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce6b24521c9dae49cfa557537a0622217e36deeb_395b5427-47dd-4a38-bdd3-eb2e1d5793b3.webp?v=1714722409","variant_ids":[41886649319523]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - ATAT-日文字系列 - 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":"NPB0118724-PB66","featured_media":{"alt":null,"id":23877455839331,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce6b24521c9dae49cfa557537a0622217e36deeb_395b5427-47dd-4a38-bdd3-eb2e1d5793b3.webp?v=1714722409"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ea59d41927db4f925008ccd34927b573fc8a759_27226bf6-b892-41ca-98aa-5b0ef02a7d38.webp?v=1714722405","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0790d464b0cbefc43c07d4f9b32bc50553a20494_5457e2ca-96d4-4182-a8db-b635d6fcb963.webp?v=1714722407","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce6b24521c9dae49cfa557537a0622217e36deeb_395b5427-47dd-4a38-bdd3-eb2e1d5793b3.webp?v=1714722409","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1641dffabdb2d04ef470cf103da89bf9b43363f_096158f2-2ca6-48ca-aa87-c84d30334e40.webp?v=1714722412","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e4a658b1cccdb763874be40ee420b004dfeff1b_3763a4ea-708f-43ed-bedf-24309584b17e.webp?v=1714722414","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37363e9e2dd7cd56123af1a0801f2890fb69e8fd_d83fbc58-5522-4487-a10f-5190f69eaf64.webp?v=1714722417","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d01b3d394bf6771dae55aaed3798dfe6ac45b3f_02c51e6d-b650-4170-91ec-700372e12f4f.webp?v=1714722419","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd046eab381533f845035ed67fe566da3a7e9e9b_f75afe2a-2785-4e5b-8986-481910859a37.webp?v=1714722421","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26dbf4f5e833d9c749193c871d481f9f4a25fda4_9edc3fd5-5949-4880-a765-f0afb47bf7f5.webp?v=1714722424","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fcfa1ac02ea3df6405b485afe9f40e4321e0f1c_dbf7a4b1-31e6-4952-be2d-6b8fd3ce4024.webp?v=1714722426"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ea59d41927db4f925008ccd34927b573fc8a759_27226bf6-b892-41ca-98aa-5b0ef02a7d38.webp?v=1714722405","options":["color"],"media":[{"alt":null,"id":23877454725219,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ea59d41927db4f925008ccd34927b573fc8a759_27226bf6-b892-41ca-98aa-5b0ef02a7d38.webp?v=1714722405"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ea59d41927db4f925008ccd34927b573fc8a759_27226bf6-b892-41ca-98aa-5b0ef02a7d38.webp?v=1714722405","width":2000},{"alt":null,"id":23877455282275,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0790d464b0cbefc43c07d4f9b32bc50553a20494_5457e2ca-96d4-4182-a8db-b635d6fcb963.webp?v=1714722407"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0790d464b0cbefc43c07d4f9b32bc50553a20494_5457e2ca-96d4-4182-a8db-b635d6fcb963.webp?v=1714722407","width":2000},{"alt":null,"id":23877455839331,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce6b24521c9dae49cfa557537a0622217e36deeb_395b5427-47dd-4a38-bdd3-eb2e1d5793b3.webp?v=1714722409"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce6b24521c9dae49cfa557537a0622217e36deeb_395b5427-47dd-4a38-bdd3-eb2e1d5793b3.webp?v=1714722409","width":2000},{"alt":null,"id":23877456724067,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1641dffabdb2d04ef470cf103da89bf9b43363f_096158f2-2ca6-48ca-aa87-c84d30334e40.webp?v=1714722412"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1641dffabdb2d04ef470cf103da89bf9b43363f_096158f2-2ca6-48ca-aa87-c84d30334e40.webp?v=1714722412","width":2000},{"alt":null,"id":23877457281123,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e4a658b1cccdb763874be40ee420b004dfeff1b_3763a4ea-708f-43ed-bedf-24309584b17e.webp?v=1714722414"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e4a658b1cccdb763874be40ee420b004dfeff1b_3763a4ea-708f-43ed-bedf-24309584b17e.webp?v=1714722414","width":2000},{"alt":null,"id":23877457674339,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37363e9e2dd7cd56123af1a0801f2890fb69e8fd_d83fbc58-5522-4487-a10f-5190f69eaf64.webp?v=1714722417"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37363e9e2dd7cd56123af1a0801f2890fb69e8fd_d83fbc58-5522-4487-a10f-5190f69eaf64.webp?v=1714722417","width":2000},{"alt":null,"id":23877458329699,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d01b3d394bf6771dae55aaed3798dfe6ac45b3f_02c51e6d-b650-4170-91ec-700372e12f4f.webp?v=1714722419"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d01b3d394bf6771dae55aaed3798dfe6ac45b3f_02c51e6d-b650-4170-91ec-700372e12f4f.webp?v=1714722419","width":2000},{"alt":null,"id":23877458690147,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd046eab381533f845035ed67fe566da3a7e9e9b_f75afe2a-2785-4e5b-8986-481910859a37.webp?v=1714722421"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd046eab381533f845035ed67fe566da3a7e9e9b_f75afe2a-2785-4e5b-8986-481910859a37.webp?v=1714722421","width":2000},{"alt":null,"id":23877459148899,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26dbf4f5e833d9c749193c871d481f9f4a25fda4_9edc3fd5-5949-4880-a765-f0afb47bf7f5.webp?v=1714722424"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26dbf4f5e833d9c749193c871d481f9f4a25fda4_9edc3fd5-5949-4880-a765-f0afb47bf7f5.webp?v=1714722424","width":2000},{"alt":null,"id":23877460000867,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fcfa1ac02ea3df6405b485afe9f40e4321e0f1c_dbf7a4b1-31e6-4952-be2d-6b8fd3ce4024.webp?v=1714722426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fcfa1ac02ea3df6405b485afe9f40e4321e0f1c_dbf7a4b1-31e6-4952-be2d-6b8fd3ce4024.webp?v=1714722426","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886649319523,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB66","requires_shipping":true,"taxable":true,"featured_image":{"id":31472538550371,"product_id":7408540876899,"position":3,"created_at":"2024-05-03T15:46:49+08:00","updated_at":"2024-05-03T15:46:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce6b24521c9dae49cfa557537a0622217e36deeb_395b5427-47dd-4a38-bdd3-eb2e1d5793b3.webp?v=1714722409","variant_ids":[41886649319523]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - ATAT-日文字系列 - 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":"NPB0118724-PB66","featured_media":{"alt":null,"id":23877455839331,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce6b24521c9dae49cfa557537a0622217e36deeb_395b5427-47dd-4a38-bdd3-eb2e1d5793b3.webp?v=1714722409"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886649319523,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB66","requires_shipping":true,"taxable":true,"featured_image":{"id":31472538550371,"product_id":7408540876899,"position":3,"created_at":"2024-05-03T15:46:49+08:00","updated_at":"2024-05-03T15:46:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce6b24521c9dae49cfa557537a0622217e36deeb_395b5427-47dd-4a38-bdd3-eb2e1d5793b3.webp?v=1714722409","variant_ids":[41886649319523]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - ATAT-日文字系列 - 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":"NPB0118724-PB66","featured_media":{"alt":null,"id":23877455839331,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce6b24521c9dae49cfa557537a0622217e36deeb_395b5427-47dd-4a38-bdd3-eb2e1d5793b3.webp?v=1714722409"}},"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: "停產" }