$product = {"id":7411411124323,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 黑武士-氣球布置-幽默系列","handle":"iphone-14-plus-mod-nx-magsafe-printable-pc10","description":null,"published_at":"2024-06-11T17:44:15+08:00","created_at":"2024-05-05T00:24:33+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":41898546364515,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31480360271971,"product_id":7411411124323,"position":6,"created_at":"2024-05-05T00:24:47+08:00","updated_at":"2024-05-05T00:24:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab15678255bcba239cbca04b0f82ccfa0f242daa_55e7a023-a82f-48c7-a58e-2a394e6c2aa8.webp?v=1714839887","variant_ids":[41898546364515]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 黑武士-氣球布置-幽默系列 - 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-PC10","featured_media":{"alt":null,"id":23885611892835,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab15678255bcba239cbca04b0f82ccfa0f242daa_55e7a023-a82f-48c7-a58e-2a394e6c2aa8.webp?v=1714839887"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09654039396140c03891eab9cc1c9f7b956f998d_6d0a5caf-2300-4a40-8401-cfc6b1b775e2.webp?v=1714839876","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7062e37ab2d96ad2237fe60b79b3243305412354_b7ee991a-f62e-4fe4-9abf-9ad7da21ca8e.webp?v=1714839878","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc809090c7004b53a5378fb9365a4ad8f209a8e8_ada3da9a-d173-481e-8124-0cdbe9ee8f6a.webp?v=1714839880","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2013838bae4b1ef1e1b17b7bd306bbe308a5d512_7f1b7ec4-426e-4561-9ae7-67cc1b09765d.webp?v=1714839883","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5ce4ac40006a095609532cc150a29712103fe14_9974f9ae-95dc-419a-85c6-303448f86b8a.webp?v=1714839885","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab15678255bcba239cbca04b0f82ccfa0f242daa_55e7a023-a82f-48c7-a58e-2a394e6c2aa8.webp?v=1714839887","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39ad7d401ba8397f8e43fa40eae743eedf08ac00_2df9f2ed-6bf2-4b04-a6f6-13e5dc4d7021.webp?v=1714839889","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc447e382555abb6b568fbfbc71af72e80bfc953_016eaecc-2d09-406e-bdb1-e6db8a1538d7.webp?v=1714839892","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74b760d4a0240c8065a61634b99c94300bebee10_5659fd4d-05ee-40e1-ba57-ecf73986307c.webp?v=1714839894","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef7ce6c604b28fbbfca91ec945ac12d28e8f516b_5c000cda-c496-4c5e-a114-538e020d0465.webp?v=1714839896"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09654039396140c03891eab9cc1c9f7b956f998d_6d0a5caf-2300-4a40-8401-cfc6b1b775e2.webp?v=1714839876","options":["color"],"media":[{"alt":null,"id":23885609631843,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09654039396140c03891eab9cc1c9f7b956f998d_6d0a5caf-2300-4a40-8401-cfc6b1b775e2.webp?v=1714839876"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09654039396140c03891eab9cc1c9f7b956f998d_6d0a5caf-2300-4a40-8401-cfc6b1b775e2.webp?v=1714839876","width":2000},{"alt":null,"id":23885610090595,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7062e37ab2d96ad2237fe60b79b3243305412354_b7ee991a-f62e-4fe4-9abf-9ad7da21ca8e.webp?v=1714839878"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7062e37ab2d96ad2237fe60b79b3243305412354_b7ee991a-f62e-4fe4-9abf-9ad7da21ca8e.webp?v=1714839878","width":2000},{"alt":null,"id":23885610549347,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc809090c7004b53a5378fb9365a4ad8f209a8e8_ada3da9a-d173-481e-8124-0cdbe9ee8f6a.webp?v=1714839880"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc809090c7004b53a5378fb9365a4ad8f209a8e8_ada3da9a-d173-481e-8124-0cdbe9ee8f6a.webp?v=1714839880","width":2000},{"alt":null,"id":23885611008099,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2013838bae4b1ef1e1b17b7bd306bbe308a5d512_7f1b7ec4-426e-4561-9ae7-67cc1b09765d.webp?v=1714839883"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2013838bae4b1ef1e1b17b7bd306bbe308a5d512_7f1b7ec4-426e-4561-9ae7-67cc1b09765d.webp?v=1714839883","width":2000},{"alt":null,"id":23885611499619,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5ce4ac40006a095609532cc150a29712103fe14_9974f9ae-95dc-419a-85c6-303448f86b8a.webp?v=1714839885"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5ce4ac40006a095609532cc150a29712103fe14_9974f9ae-95dc-419a-85c6-303448f86b8a.webp?v=1714839885","width":2000},{"alt":null,"id":23885611892835,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab15678255bcba239cbca04b0f82ccfa0f242daa_55e7a023-a82f-48c7-a58e-2a394e6c2aa8.webp?v=1714839887"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab15678255bcba239cbca04b0f82ccfa0f242daa_55e7a023-a82f-48c7-a58e-2a394e6c2aa8.webp?v=1714839887","width":2000},{"alt":null,"id":23885612810339,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39ad7d401ba8397f8e43fa40eae743eedf08ac00_2df9f2ed-6bf2-4b04-a6f6-13e5dc4d7021.webp?v=1714839889"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39ad7d401ba8397f8e43fa40eae743eedf08ac00_2df9f2ed-6bf2-4b04-a6f6-13e5dc4d7021.webp?v=1714839889","width":2000},{"alt":null,"id":23885613203555,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc447e382555abb6b568fbfbc71af72e80bfc953_016eaecc-2d09-406e-bdb1-e6db8a1538d7.webp?v=1714839892"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc447e382555abb6b568fbfbc71af72e80bfc953_016eaecc-2d09-406e-bdb1-e6db8a1538d7.webp?v=1714839892","width":2000},{"alt":null,"id":23885613662307,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74b760d4a0240c8065a61634b99c94300bebee10_5659fd4d-05ee-40e1-ba57-ecf73986307c.webp?v=1714839894"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74b760d4a0240c8065a61634b99c94300bebee10_5659fd4d-05ee-40e1-ba57-ecf73986307c.webp?v=1714839894","width":2000},{"alt":null,"id":23885614121059,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef7ce6c604b28fbbfca91ec945ac12d28e8f516b_5c000cda-c496-4c5e-a114-538e020d0465.webp?v=1714839896"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef7ce6c604b28fbbfca91ec945ac12d28e8f516b_5c000cda-c496-4c5e-a114-538e020d0465.webp?v=1714839896","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41898546364515,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31480360271971,"product_id":7411411124323,"position":6,"created_at":"2024-05-05T00:24:47+08:00","updated_at":"2024-05-05T00:24:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab15678255bcba239cbca04b0f82ccfa0f242daa_55e7a023-a82f-48c7-a58e-2a394e6c2aa8.webp?v=1714839887","variant_ids":[41898546364515]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 黑武士-氣球布置-幽默系列 - 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-PC10","featured_media":{"alt":null,"id":23885611892835,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab15678255bcba239cbca04b0f82ccfa0f242daa_55e7a023-a82f-48c7-a58e-2a394e6c2aa8.webp?v=1714839887"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41898546364515,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31480360271971,"product_id":7411411124323,"position":6,"created_at":"2024-05-05T00:24:47+08:00","updated_at":"2024-05-05T00:24:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab15678255bcba239cbca04b0f82ccfa0f242daa_55e7a023-a82f-48c7-a58e-2a394e6c2aa8.webp?v=1714839887","variant_ids":[41898546364515]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 黑武士-氣球布置-幽默系列 - 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-PC10","featured_media":{"alt":null,"id":23885611892835,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ab15678255bcba239cbca04b0f82ccfa0f242daa_55e7a023-a82f-48c7-a58e-2a394e6c2aa8.webp?v=1714839887"}},"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: "停產" }