$product = {"id":7408430776419,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Sticker-紅","handle":"iphone-12-pro-max-mod-nx-printable-pb33","description":null,"published_at":"2024-06-11T16:37:02+08:00","created_at":"2024-05-03T15:25:18+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":41885400727651,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB33","requires_shipping":true,"taxable":true,"featured_image":{"id":31472260677731,"product_id":7408430776419,"position":6,"created_at":"2024-05-03T15:25:33+08:00","updated_at":"2024-05-03T15:25:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cea6321cc77743be1462b2068140424cb694c7d2_1efdee0d-b5ab-4f31-b6f4-a08795d9a5ca.webp?v=1714721133","variant_ids":[41885400727651]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Sticker-紅 - 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-PB33","featured_media":{"alt":null,"id":23877176983651,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cea6321cc77743be1462b2068140424cb694c7d2_1efdee0d-b5ab-4f31-b6f4-a08795d9a5ca.webp?v=1714721133"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50dfd8a7275ea7f87e191b58231159841cc8fc3a_e4d51cd2-3381-482b-8e7d-faeec5ac4e66.webp?v=1714721121","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a69fd6dae203edcacd8d6737c3fbc382ccd2724e_0b8b6a21-bc53-4daf-9cf1-c10b0cf3830a.webp?v=1714721123","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cad9bbea95acc9412a004ad64afe4f79b788a99b_a56e5e1c-94dc-4efd-8e54-aabd30e4d715.webp?v=1714721126","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05331e02ef915c6098720bc3b265e6df22a3a42d_76b7bb8a-4f0e-4690-b76f-d8d85ea94f1d.webp?v=1714721128","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/835c7e877cd621e68b89dd67850b0950150a503c_693097b6-9a33-4a34-a2ad-bac0a8f7e787.webp?v=1714721131","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cea6321cc77743be1462b2068140424cb694c7d2_1efdee0d-b5ab-4f31-b6f4-a08795d9a5ca.webp?v=1714721133","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4ee47eec6c941cb1fc3f9ddb019005c4d4e11f4_1e3eb81f-904b-43ad-b6d7-7e7846a015c6.webp?v=1714721136","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6150843e6779218fa4cf1670d7b4d2d7116de48_97b078e5-0f48-46af-b962-5be5c24a0dc4.webp?v=1714721138","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51b623d4a211efca9e4a6818175f017c95097838_00907ed2-ec94-42e7-ba9d-97a5b038179a.webp?v=1714721140","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf8c019a57604c242107816fe873915a3a5af77e_ba43ed3d-5fa6-4e18-a0b1-e4f8a380bd01.webp?v=1714721143"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50dfd8a7275ea7f87e191b58231159841cc8fc3a_e4d51cd2-3381-482b-8e7d-faeec5ac4e66.webp?v=1714721121","options":["color"],"media":[{"alt":null,"id":23877173510243,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50dfd8a7275ea7f87e191b58231159841cc8fc3a_e4d51cd2-3381-482b-8e7d-faeec5ac4e66.webp?v=1714721121"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50dfd8a7275ea7f87e191b58231159841cc8fc3a_e4d51cd2-3381-482b-8e7d-faeec5ac4e66.webp?v=1714721121","width":2000},{"alt":null,"id":23877174165603,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a69fd6dae203edcacd8d6737c3fbc382ccd2724e_0b8b6a21-bc53-4daf-9cf1-c10b0cf3830a.webp?v=1714721123"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a69fd6dae203edcacd8d6737c3fbc382ccd2724e_0b8b6a21-bc53-4daf-9cf1-c10b0cf3830a.webp?v=1714721123","width":2000},{"alt":null,"id":23877174722659,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cad9bbea95acc9412a004ad64afe4f79b788a99b_a56e5e1c-94dc-4efd-8e54-aabd30e4d715.webp?v=1714721126"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cad9bbea95acc9412a004ad64afe4f79b788a99b_a56e5e1c-94dc-4efd-8e54-aabd30e4d715.webp?v=1714721126","width":2000},{"alt":null,"id":23877175443555,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05331e02ef915c6098720bc3b265e6df22a3a42d_76b7bb8a-4f0e-4690-b76f-d8d85ea94f1d.webp?v=1714721128"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05331e02ef915c6098720bc3b265e6df22a3a42d_76b7bb8a-4f0e-4690-b76f-d8d85ea94f1d.webp?v=1714721128","width":2000},{"alt":null,"id":23877176426595,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/835c7e877cd621e68b89dd67850b0950150a503c_693097b6-9a33-4a34-a2ad-bac0a8f7e787.webp?v=1714721131"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/835c7e877cd621e68b89dd67850b0950150a503c_693097b6-9a33-4a34-a2ad-bac0a8f7e787.webp?v=1714721131","width":2000},{"alt":null,"id":23877176983651,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cea6321cc77743be1462b2068140424cb694c7d2_1efdee0d-b5ab-4f31-b6f4-a08795d9a5ca.webp?v=1714721133"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cea6321cc77743be1462b2068140424cb694c7d2_1efdee0d-b5ab-4f31-b6f4-a08795d9a5ca.webp?v=1714721133","width":2000},{"alt":null,"id":23877177704547,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4ee47eec6c941cb1fc3f9ddb019005c4d4e11f4_1e3eb81f-904b-43ad-b6d7-7e7846a015c6.webp?v=1714721136"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4ee47eec6c941cb1fc3f9ddb019005c4d4e11f4_1e3eb81f-904b-43ad-b6d7-7e7846a015c6.webp?v=1714721136","width":2000},{"alt":null,"id":23877178687587,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6150843e6779218fa4cf1670d7b4d2d7116de48_97b078e5-0f48-46af-b962-5be5c24a0dc4.webp?v=1714721138"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6150843e6779218fa4cf1670d7b4d2d7116de48_97b078e5-0f48-46af-b962-5be5c24a0dc4.webp?v=1714721138","width":2000},{"alt":null,"id":23877179441251,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51b623d4a211efca9e4a6818175f017c95097838_00907ed2-ec94-42e7-ba9d-97a5b038179a.webp?v=1714721140"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51b623d4a211efca9e4a6818175f017c95097838_00907ed2-ec94-42e7-ba9d-97a5b038179a.webp?v=1714721140","width":2000},{"alt":null,"id":23877179998307,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf8c019a57604c242107816fe873915a3a5af77e_ba43ed3d-5fa6-4e18-a0b1-e4f8a380bd01.webp?v=1714721143"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf8c019a57604c242107816fe873915a3a5af77e_ba43ed3d-5fa6-4e18-a0b1-e4f8a380bd01.webp?v=1714721143","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885400727651,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB33","requires_shipping":true,"taxable":true,"featured_image":{"id":31472260677731,"product_id":7408430776419,"position":6,"created_at":"2024-05-03T15:25:33+08:00","updated_at":"2024-05-03T15:25:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cea6321cc77743be1462b2068140424cb694c7d2_1efdee0d-b5ab-4f31-b6f4-a08795d9a5ca.webp?v=1714721133","variant_ids":[41885400727651]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Sticker-紅 - 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-PB33","featured_media":{"alt":null,"id":23877176983651,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cea6321cc77743be1462b2068140424cb694c7d2_1efdee0d-b5ab-4f31-b6f4-a08795d9a5ca.webp?v=1714721133"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885400727651,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB33","requires_shipping":true,"taxable":true,"featured_image":{"id":31472260677731,"product_id":7408430776419,"position":6,"created_at":"2024-05-03T15:25:33+08:00","updated_at":"2024-05-03T15:25:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cea6321cc77743be1462b2068140424cb694c7d2_1efdee0d-b5ab-4f31-b6f4-a08795d9a5ca.webp?v=1714721133","variant_ids":[41885400727651]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Sticker-紅 - 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-PB33","featured_media":{"alt":null,"id":23877176983651,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cea6321cc77743be1462b2068140424cb694c7d2_1efdee0d-b5ab-4f31-b6f4-a08795d9a5ca.webp?v=1714721133"}},"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: "停產" }