$product = {"id":7408413638755,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-噴漆白","handle":"iphone-12-pro-max-mod-nx-printable-pb02","description":null,"published_at":"2024-06-11T16:36:33+08:00","created_at":"2024-05-03T15:21:44+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":41885201825891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31472204808291,"product_id":7408413638755,"position":1,"created_at":"2024-05-03T15:21:46+08:00","updated_at":"2024-05-03T15:21:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2b7703b3c83e4c77e55e442ba03121cb0489ffc_542fe4fe-6cb9-4eb9-b8f4-8c4f98ed0aaf.webp?v=1714720906","variant_ids":[41885201825891]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro 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":"NPB0118724-PB02","featured_media":{"alt":null,"id":23877120589923,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2b7703b3c83e4c77e55e442ba03121cb0489ffc_542fe4fe-6cb9-4eb9-b8f4-8c4f98ed0aaf.webp?v=1714720906"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2b7703b3c83e4c77e55e442ba03121cb0489ffc_542fe4fe-6cb9-4eb9-b8f4-8c4f98ed0aaf.webp?v=1714720906","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d5af03bfb576934ed69dfa79409b2350c7da9d9_d274cbc6-bfc0-4916-b3b8-4063e3123b82.webp?v=1714720908","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b7fe18799d8c83cb10cbdb56495142ba925da7b_f8689d06-9fa5-4f7a-b211-f407af26bd5b.webp?v=1714720911","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64ccc2f738157e694b05b15498309cf6837e8769_f48ae1ce-7c33-482b-9500-abf47f4a2d76.webp?v=1714720913","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93450f7dfa95776b43064291671e7aa3e8adfa4a_facca2e9-feca-4b3e-a657-3588efe3e993.webp?v=1714720916","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bf7835c4aa51736fc70a5fd16a95cd8e8b425df_1ec31afe-e2f3-4c91-85ef-2360e1e43537.webp?v=1714720918","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88306d62ecaf7ef6f94eea3b4f3ddbb628e0e1f3_00a20ae1-6859-422d-996f-8c2373fba9d4.webp?v=1714720920","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4971f4411aad6ad3b997d1c9c28d14f86e66c0cb_2c859ff7-7a1e-4c39-a5ed-8b9455891729.webp?v=1714720923","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f4405353652d91537bdf89f7cc752c59c0b94dc_e2db792e-afd1-4cf0-8aff-97a7a69a1315.webp?v=1714720926","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af9413d076268f2557acfecf24c6fd7c4e7fde5c_6d0dd7c7-835a-4925-b60d-99426b167d46.webp?v=1714720928"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2b7703b3c83e4c77e55e442ba03121cb0489ffc_542fe4fe-6cb9-4eb9-b8f4-8c4f98ed0aaf.webp?v=1714720906","options":["color"],"media":[{"alt":null,"id":23877120589923,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2b7703b3c83e4c77e55e442ba03121cb0489ffc_542fe4fe-6cb9-4eb9-b8f4-8c4f98ed0aaf.webp?v=1714720906"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2b7703b3c83e4c77e55e442ba03121cb0489ffc_542fe4fe-6cb9-4eb9-b8f4-8c4f98ed0aaf.webp?v=1714720906","width":2000},{"alt":null,"id":23877121048675,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d5af03bfb576934ed69dfa79409b2350c7da9d9_d274cbc6-bfc0-4916-b3b8-4063e3123b82.webp?v=1714720908"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d5af03bfb576934ed69dfa79409b2350c7da9d9_d274cbc6-bfc0-4916-b3b8-4063e3123b82.webp?v=1714720908","width":2000},{"alt":null,"id":23877121736803,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b7fe18799d8c83cb10cbdb56495142ba925da7b_f8689d06-9fa5-4f7a-b211-f407af26bd5b.webp?v=1714720911"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b7fe18799d8c83cb10cbdb56495142ba925da7b_f8689d06-9fa5-4f7a-b211-f407af26bd5b.webp?v=1714720911","width":2000},{"alt":null,"id":23877122621539,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64ccc2f738157e694b05b15498309cf6837e8769_f48ae1ce-7c33-482b-9500-abf47f4a2d76.webp?v=1714720913"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64ccc2f738157e694b05b15498309cf6837e8769_f48ae1ce-7c33-482b-9500-abf47f4a2d76.webp?v=1714720913","width":2000},{"alt":null,"id":23877124161635,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93450f7dfa95776b43064291671e7aa3e8adfa4a_facca2e9-feca-4b3e-a657-3588efe3e993.webp?v=1714720916"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93450f7dfa95776b43064291671e7aa3e8adfa4a_facca2e9-feca-4b3e-a657-3588efe3e993.webp?v=1714720916","width":2000},{"alt":null,"id":23877124685923,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bf7835c4aa51736fc70a5fd16a95cd8e8b425df_1ec31afe-e2f3-4c91-85ef-2360e1e43537.webp?v=1714720918"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bf7835c4aa51736fc70a5fd16a95cd8e8b425df_1ec31afe-e2f3-4c91-85ef-2360e1e43537.webp?v=1714720918","width":2000},{"alt":null,"id":23877125275747,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88306d62ecaf7ef6f94eea3b4f3ddbb628e0e1f3_00a20ae1-6859-422d-996f-8c2373fba9d4.webp?v=1714720920"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88306d62ecaf7ef6f94eea3b4f3ddbb628e0e1f3_00a20ae1-6859-422d-996f-8c2373fba9d4.webp?v=1714720920","width":2000},{"alt":null,"id":23877125898339,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4971f4411aad6ad3b997d1c9c28d14f86e66c0cb_2c859ff7-7a1e-4c39-a5ed-8b9455891729.webp?v=1714720923"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4971f4411aad6ad3b997d1c9c28d14f86e66c0cb_2c859ff7-7a1e-4c39-a5ed-8b9455891729.webp?v=1714720923","width":2000},{"alt":null,"id":23877126226019,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f4405353652d91537bdf89f7cc752c59c0b94dc_e2db792e-afd1-4cf0-8aff-97a7a69a1315.webp?v=1714720926"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f4405353652d91537bdf89f7cc752c59c0b94dc_e2db792e-afd1-4cf0-8aff-97a7a69a1315.webp?v=1714720926","width":2000},{"alt":null,"id":23877126750307,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af9413d076268f2557acfecf24c6fd7c4e7fde5c_6d0dd7c7-835a-4925-b60d-99426b167d46.webp?v=1714720928"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af9413d076268f2557acfecf24c6fd7c4e7fde5c_6d0dd7c7-835a-4925-b60d-99426b167d46.webp?v=1714720928","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885201825891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31472204808291,"product_id":7408413638755,"position":1,"created_at":"2024-05-03T15:21:46+08:00","updated_at":"2024-05-03T15:21:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2b7703b3c83e4c77e55e442ba03121cb0489ffc_542fe4fe-6cb9-4eb9-b8f4-8c4f98ed0aaf.webp?v=1714720906","variant_ids":[41885201825891]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro 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":"NPB0118724-PB02","featured_media":{"alt":null,"id":23877120589923,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2b7703b3c83e4c77e55e442ba03121cb0489ffc_542fe4fe-6cb9-4eb9-b8f4-8c4f98ed0aaf.webp?v=1714720906"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885201825891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31472204808291,"product_id":7408413638755,"position":1,"created_at":"2024-05-03T15:21:46+08:00","updated_at":"2024-05-03T15:21:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2b7703b3c83e4c77e55e442ba03121cb0489ffc_542fe4fe-6cb9-4eb9-b8f4-8c4f98ed0aaf.webp?v=1714720906","variant_ids":[41885201825891]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro 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":"NPB0118724-PB02","featured_media":{"alt":null,"id":23877120589923,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2b7703b3c83e4c77e55e442ba03121cb0489ffc_542fe4fe-6cb9-4eb9-b8f4-8c4f98ed0aaf.webp?v=1714720906"}},"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: "停產" }