$product = {"id":7408384606307,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-塗鴉藝術","handle":"iphone-12-pro-max-mod-nx-printable-pb38","description":null,"published_at":"2024-06-11T16:35:46+08:00","created_at":"2024-05-03T15:15:55+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":41884883452003,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB38","requires_shipping":true,"taxable":true,"featured_image":{"id":31472124690531,"product_id":7408384606307,"position":8,"created_at":"2024-05-03T15:16:14+08:00","updated_at":"2024-05-03T15:16:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8bcedeba654dce6d4a8e016ac4e09ada16bdebf_26ca5bbe-8412-4cfd-a535-55aa5c43975a.webp?v=1714720574","variant_ids":[41884883452003]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-塗鴉藝術 - 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-PB38","featured_media":{"alt":null,"id":23877040242787,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8bcedeba654dce6d4a8e016ac4e09ada16bdebf_26ca5bbe-8412-4cfd-a535-55aa5c43975a.webp?v=1714720574"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07aa0aed8836e22b4f753dce04b419347ef2bad5_59e7a074-e8a4-46dd-9b59-7c026cbbd9af.webp?v=1714720558","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02e8684d9867c0b868bf18dbf994fd150ac5d7c3_1b62c8c6-89ce-4992-898d-2f5f557ca433.webp?v=1714720560","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5b946475d3e0be9b5ecfedf9ba41da688cbce6c_00b59a24-ac5a-4ed0-9af5-5d78b8df288f.webp?v=1714720562","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/916bda8c8c31a51d9028b18b86d4eba7e0dd87da_231f53d6-16e9-4fc0-888d-baeb33bf1b53.webp?v=1714720564","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4b3245ba7d9543c14908052b245a00c229b163f_ab13b7c2-96b6-4eb8-910c-21e56d413dd9.webp?v=1714720567","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f81ba905686c7be3ed5c1b1ce06059f754dad8d_95b1c577-a8f7-45b7-bbcc-bc2036a9c3fa.webp?v=1714720569","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f93899b403d7c20a812089fdc59bd3d917fe0851_f106f47a-9a4d-4ea9-ba58-5261ae87d115.webp?v=1714720571","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8bcedeba654dce6d4a8e016ac4e09ada16bdebf_26ca5bbe-8412-4cfd-a535-55aa5c43975a.webp?v=1714720574","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c5bae0aa2e283bf8767ea75d1871ba58bf1c285_df983058-6cd8-4b4b-96dc-6d017f858eb2.webp?v=1714720576","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7d4c0a1d21ec4354961a5cdc69585772f1bc2c9_835e8871-7352-4c8e-8f59-ec053839c78e.webp?v=1714720578"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07aa0aed8836e22b4f753dce04b419347ef2bad5_59e7a074-e8a4-46dd-9b59-7c026cbbd9af.webp?v=1714720558","options":["color"],"media":[{"alt":null,"id":23877036474467,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07aa0aed8836e22b4f753dce04b419347ef2bad5_59e7a074-e8a4-46dd-9b59-7c026cbbd9af.webp?v=1714720558"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07aa0aed8836e22b4f753dce04b419347ef2bad5_59e7a074-e8a4-46dd-9b59-7c026cbbd9af.webp?v=1714720558","width":2000},{"alt":null,"id":23877037162595,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02e8684d9867c0b868bf18dbf994fd150ac5d7c3_1b62c8c6-89ce-4992-898d-2f5f557ca433.webp?v=1714720560"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02e8684d9867c0b868bf18dbf994fd150ac5d7c3_1b62c8c6-89ce-4992-898d-2f5f557ca433.webp?v=1714720560","width":2000},{"alt":null,"id":23877037686883,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5b946475d3e0be9b5ecfedf9ba41da688cbce6c_00b59a24-ac5a-4ed0-9af5-5d78b8df288f.webp?v=1714720562"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5b946475d3e0be9b5ecfedf9ba41da688cbce6c_00b59a24-ac5a-4ed0-9af5-5d78b8df288f.webp?v=1714720562","width":2000},{"alt":null,"id":23877038178403,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/916bda8c8c31a51d9028b18b86d4eba7e0dd87da_231f53d6-16e9-4fc0-888d-baeb33bf1b53.webp?v=1714720564"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/916bda8c8c31a51d9028b18b86d4eba7e0dd87da_231f53d6-16e9-4fc0-888d-baeb33bf1b53.webp?v=1714720564","width":2000},{"alt":null,"id":23877038866531,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4b3245ba7d9543c14908052b245a00c229b163f_ab13b7c2-96b6-4eb8-910c-21e56d413dd9.webp?v=1714720567"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4b3245ba7d9543c14908052b245a00c229b163f_ab13b7c2-96b6-4eb8-910c-21e56d413dd9.webp?v=1714720567","width":2000},{"alt":null,"id":23877039423587,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f81ba905686c7be3ed5c1b1ce06059f754dad8d_95b1c577-a8f7-45b7-bbcc-bc2036a9c3fa.webp?v=1714720569"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f81ba905686c7be3ed5c1b1ce06059f754dad8d_95b1c577-a8f7-45b7-bbcc-bc2036a9c3fa.webp?v=1714720569","width":2000},{"alt":null,"id":23877039718499,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f93899b403d7c20a812089fdc59bd3d917fe0851_f106f47a-9a4d-4ea9-ba58-5261ae87d115.webp?v=1714720571"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f93899b403d7c20a812089fdc59bd3d917fe0851_f106f47a-9a4d-4ea9-ba58-5261ae87d115.webp?v=1714720571","width":2000},{"alt":null,"id":23877040242787,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8bcedeba654dce6d4a8e016ac4e09ada16bdebf_26ca5bbe-8412-4cfd-a535-55aa5c43975a.webp?v=1714720574"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8bcedeba654dce6d4a8e016ac4e09ada16bdebf_26ca5bbe-8412-4cfd-a535-55aa5c43975a.webp?v=1714720574","width":2000},{"alt":null,"id":23877040668771,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c5bae0aa2e283bf8767ea75d1871ba58bf1c285_df983058-6cd8-4b4b-96dc-6d017f858eb2.webp?v=1714720576"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c5bae0aa2e283bf8767ea75d1871ba58bf1c285_df983058-6cd8-4b4b-96dc-6d017f858eb2.webp?v=1714720576","width":2000},{"alt":null,"id":23877041193059,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7d4c0a1d21ec4354961a5cdc69585772f1bc2c9_835e8871-7352-4c8e-8f59-ec053839c78e.webp?v=1714720578"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7d4c0a1d21ec4354961a5cdc69585772f1bc2c9_835e8871-7352-4c8e-8f59-ec053839c78e.webp?v=1714720578","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41884883452003,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB38","requires_shipping":true,"taxable":true,"featured_image":{"id":31472124690531,"product_id":7408384606307,"position":8,"created_at":"2024-05-03T15:16:14+08:00","updated_at":"2024-05-03T15:16:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8bcedeba654dce6d4a8e016ac4e09ada16bdebf_26ca5bbe-8412-4cfd-a535-55aa5c43975a.webp?v=1714720574","variant_ids":[41884883452003]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-塗鴉藝術 - 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-PB38","featured_media":{"alt":null,"id":23877040242787,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8bcedeba654dce6d4a8e016ac4e09ada16bdebf_26ca5bbe-8412-4cfd-a535-55aa5c43975a.webp?v=1714720574"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41884883452003,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB38","requires_shipping":true,"taxable":true,"featured_image":{"id":31472124690531,"product_id":7408384606307,"position":8,"created_at":"2024-05-03T15:16:14+08:00","updated_at":"2024-05-03T15:16:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8bcedeba654dce6d4a8e016ac4e09ada16bdebf_26ca5bbe-8412-4cfd-a535-55aa5c43975a.webp?v=1714720574","variant_ids":[41884883452003]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-塗鴉藝術 - 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-PB38","featured_media":{"alt":null,"id":23877040242787,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8bcedeba654dce6d4a8e016ac4e09ada16bdebf_26ca5bbe-8412-4cfd-a535-55aa5c43975a.webp?v=1714720574"}},"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: "停產" }