$product = {"id":7411211173987,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - C3PO-經典","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb24","description":null,"published_at":"2024-06-11T17:38:53+08:00","created_at":"2024-05-04T23:46:13+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 14 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"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":41896041087075,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB24","requires_shipping":true,"taxable":true,"featured_image":{"id":31479861248099,"product_id":7411211173987,"position":9,"created_at":"2024-05-04T23:46:35+08:00","updated_at":"2024-05-04T23:46:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cb40bbb900b2b89727ee6689bd2f3669883ba01_2f1a7b78-8106-4c42-b3c8-a43737cb7486.webp?v=1714837595","variant_ids":[41896041087075]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - C3PO-經典 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-PB24","featured_media":{"alt":null,"id":23885111689315,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cb40bbb900b2b89727ee6689bd2f3669883ba01_2f1a7b78-8106-4c42-b3c8-a43737cb7486.webp?v=1714837595"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/855b1993d81fe6f4bb8dad4fc091653c87939fff_02889bef-0dfa-48cb-9a6f-07ef0fef9aa0.webp?v=1714837576","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53326e189756ee0fee95dad95696e0ec23c6d29e_4f08c3a0-ad4a-418f-95a9-c8fe9b4dd3db.webp?v=1714837578","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/529e2ba5e465e9853fa9652ea6c44a11f524a5bf_4eba7ef7-6963-4f98-abb2-667cfdfb309a.webp?v=1714837580","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ce5cf8c19ea17996c3d5c7f2187e84f4f7b69f3_d80b20a1-a9e0-4681-ab50-f76b1fa53799.webp?v=1714837583","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe3890880fc5b6ccca5f9d6c2f60c674ddc5325d_bab1ec66-aca6-4a6b-84ba-4a258056e298.webp?v=1714837585","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43f9b158f277ebe936620a650089c46b6faffdb6_9f6cb15f-09d0-448e-a594-bd7d61b033b4.webp?v=1714837588","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34e970d17e558174fd9bb4d155e28b266f09c928_4d377f8a-c32d-4810-8921-1865a6064f61.webp?v=1714837590","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12793d945e352194bc246d14584633fb9d896a4b_f71d4bc4-100b-43cb-be36-54a6a8ba6b3d.webp?v=1714837592","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cb40bbb900b2b89727ee6689bd2f3669883ba01_2f1a7b78-8106-4c42-b3c8-a43737cb7486.webp?v=1714837595","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b16e0279dd41469f703e8dc9c5f3eee1e758773_3daec66b-d178-4882-a2f5-4bca5c02e532.webp?v=1714837597"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/855b1993d81fe6f4bb8dad4fc091653c87939fff_02889bef-0dfa-48cb-9a6f-07ef0fef9aa0.webp?v=1714837576","options":["color"],"media":[{"alt":null,"id":23885107363939,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/855b1993d81fe6f4bb8dad4fc091653c87939fff_02889bef-0dfa-48cb-9a6f-07ef0fef9aa0.webp?v=1714837576"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/855b1993d81fe6f4bb8dad4fc091653c87939fff_02889bef-0dfa-48cb-9a6f-07ef0fef9aa0.webp?v=1714837576","width":2000},{"alt":null,"id":23885107822691,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53326e189756ee0fee95dad95696e0ec23c6d29e_4f08c3a0-ad4a-418f-95a9-c8fe9b4dd3db.webp?v=1714837578"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53326e189756ee0fee95dad95696e0ec23c6d29e_4f08c3a0-ad4a-418f-95a9-c8fe9b4dd3db.webp?v=1714837578","width":2000},{"alt":null,"id":23885108215907,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/529e2ba5e465e9853fa9652ea6c44a11f524a5bf_4eba7ef7-6963-4f98-abb2-667cfdfb309a.webp?v=1714837580"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/529e2ba5e465e9853fa9652ea6c44a11f524a5bf_4eba7ef7-6963-4f98-abb2-667cfdfb309a.webp?v=1714837580","width":2000},{"alt":null,"id":23885108707427,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ce5cf8c19ea17996c3d5c7f2187e84f4f7b69f3_d80b20a1-a9e0-4681-ab50-f76b1fa53799.webp?v=1714837583"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ce5cf8c19ea17996c3d5c7f2187e84f4f7b69f3_d80b20a1-a9e0-4681-ab50-f76b1fa53799.webp?v=1714837583","width":2000},{"alt":null,"id":23885109395555,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe3890880fc5b6ccca5f9d6c2f60c674ddc5325d_bab1ec66-aca6-4a6b-84ba-4a258056e298.webp?v=1714837585"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe3890880fc5b6ccca5f9d6c2f60c674ddc5325d_bab1ec66-aca6-4a6b-84ba-4a258056e298.webp?v=1714837585","width":2000},{"alt":null,"id":23885109952611,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43f9b158f277ebe936620a650089c46b6faffdb6_9f6cb15f-09d0-448e-a594-bd7d61b033b4.webp?v=1714837588"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43f9b158f277ebe936620a650089c46b6faffdb6_9f6cb15f-09d0-448e-a594-bd7d61b033b4.webp?v=1714837588","width":2000},{"alt":null,"id":23885110476899,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34e970d17e558174fd9bb4d155e28b266f09c928_4d377f8a-c32d-4810-8921-1865a6064f61.webp?v=1714837590"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34e970d17e558174fd9bb4d155e28b266f09c928_4d377f8a-c32d-4810-8921-1865a6064f61.webp?v=1714837590","width":2000},{"alt":null,"id":23885111001187,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12793d945e352194bc246d14584633fb9d896a4b_f71d4bc4-100b-43cb-be36-54a6a8ba6b3d.webp?v=1714837592"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12793d945e352194bc246d14584633fb9d896a4b_f71d4bc4-100b-43cb-be36-54a6a8ba6b3d.webp?v=1714837592","width":2000},{"alt":null,"id":23885111689315,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cb40bbb900b2b89727ee6689bd2f3669883ba01_2f1a7b78-8106-4c42-b3c8-a43737cb7486.webp?v=1714837595"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cb40bbb900b2b89727ee6689bd2f3669883ba01_2f1a7b78-8106-4c42-b3c8-a43737cb7486.webp?v=1714837595","width":2000},{"alt":null,"id":23885112180835,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b16e0279dd41469f703e8dc9c5f3eee1e758773_3daec66b-d178-4882-a2f5-4bca5c02e532.webp?v=1714837597"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b16e0279dd41469f703e8dc9c5f3eee1e758773_3daec66b-d178-4882-a2f5-4bca5c02e532.webp?v=1714837597","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41896041087075,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB24","requires_shipping":true,"taxable":true,"featured_image":{"id":31479861248099,"product_id":7411211173987,"position":9,"created_at":"2024-05-04T23:46:35+08:00","updated_at":"2024-05-04T23:46:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cb40bbb900b2b89727ee6689bd2f3669883ba01_2f1a7b78-8106-4c42-b3c8-a43737cb7486.webp?v=1714837595","variant_ids":[41896041087075]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - C3PO-經典 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-PB24","featured_media":{"alt":null,"id":23885111689315,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cb40bbb900b2b89727ee6689bd2f3669883ba01_2f1a7b78-8106-4c42-b3c8-a43737cb7486.webp?v=1714837595"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41896041087075,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB24","requires_shipping":true,"taxable":true,"featured_image":{"id":31479861248099,"product_id":7411211173987,"position":9,"created_at":"2024-05-04T23:46:35+08:00","updated_at":"2024-05-04T23:46:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cb40bbb900b2b89727ee6689bd2f3669883ba01_2f1a7b78-8106-4c42-b3c8-a43737cb7486.webp?v=1714837595","variant_ids":[41896041087075]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - C3PO-經典 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-PB24","featured_media":{"alt":null,"id":23885111689315,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cb40bbb900b2b89727ee6689bd2f3669883ba01_2f1a7b78-8106-4c42-b3c8-a43737cb7486.webp?v=1714837595"}},"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: "停產" }