$product = {"id":7411339100259,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章1-潮流系列","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb46","description":null,"published_at":"2024-06-11T17:42:16+08:00","created_at":"2024-05-05T00:10:24+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":41897637642339,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB46","requires_shipping":true,"taxable":true,"featured_image":{"id":31480174575715,"product_id":7411339100259,"position":1,"created_at":"2024-05-05T00:10:26+08:00","updated_at":"2024-05-05T00:10:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84e82e12dd571a863be4691e27dc995fd9a34efe_2bf31667-cb86-47cb-8e1a-89077b34a2d0.webp?v=1714839027","variant_ids":[41897637642339]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章1-潮流系列 - 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-PB46","featured_media":{"alt":null,"id":23885425541219,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84e82e12dd571a863be4691e27dc995fd9a34efe_2bf31667-cb86-47cb-8e1a-89077b34a2d0.webp?v=1714839027"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84e82e12dd571a863be4691e27dc995fd9a34efe_2bf31667-cb86-47cb-8e1a-89077b34a2d0.webp?v=1714839027","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b173ce6b21c35496a05c849c2a599657ab8acf3_05d72baa-645d-4598-9a97-f0b51023ed85.webp?v=1714839029","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c58f1bc7bcdc7b31b1fd535bd99063ab3185122_5254c1f0-e28b-4131-bb2a-e3f35e7b795e.webp?v=1714839031","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51e1c2ca13fdac90c799960fa743f55dec11089f_5da559a8-527f-4698-a91e-a7c437afea71.webp?v=1714839034","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d2ff8d18db49f4ac697ec3081abb95cd35572ef_d05d6b4e-3bad-46b3-bcaa-edbdf57adf9b.webp?v=1714839036","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5746d869b91e7e83cf69e0a7b9a4db3218e52a5_e271e9f7-1270-42ea-9102-7feb4cf7195a.webp?v=1714839039","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccda4c81502d3b48fe150ff899977a584956e5e9_b84c1bc2-b247-4abe-bc2d-c5281425d155.webp?v=1714839041","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac7854201848149a448369fadb8344df5525fb3d_ca6bd61d-6cab-4778-a233-0a164ff7baa3.webp?v=1714839043","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/743b171b43dc0097121923cf8ec69885d81cfa2f_2532a55e-59f3-4514-b531-8e2b3c3cfd8d.webp?v=1714839046","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d1706dfb2c884dbfc3dcf1fa5160b5740a12658_158efd5a-8aee-4be4-8079-3def9f51ee04.webp?v=1714839048"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84e82e12dd571a863be4691e27dc995fd9a34efe_2bf31667-cb86-47cb-8e1a-89077b34a2d0.webp?v=1714839027","options":["color"],"media":[{"alt":null,"id":23885425541219,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84e82e12dd571a863be4691e27dc995fd9a34efe_2bf31667-cb86-47cb-8e1a-89077b34a2d0.webp?v=1714839027"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84e82e12dd571a863be4691e27dc995fd9a34efe_2bf31667-cb86-47cb-8e1a-89077b34a2d0.webp?v=1714839027","width":2000},{"alt":null,"id":23885426032739,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b173ce6b21c35496a05c849c2a599657ab8acf3_05d72baa-645d-4598-9a97-f0b51023ed85.webp?v=1714839029"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b173ce6b21c35496a05c849c2a599657ab8acf3_05d72baa-645d-4598-9a97-f0b51023ed85.webp?v=1714839029","width":2000},{"alt":null,"id":23885427048547,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c58f1bc7bcdc7b31b1fd535bd99063ab3185122_5254c1f0-e28b-4131-bb2a-e3f35e7b795e.webp?v=1714839031"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c58f1bc7bcdc7b31b1fd535bd99063ab3185122_5254c1f0-e28b-4131-bb2a-e3f35e7b795e.webp?v=1714839031","width":2000},{"alt":null,"id":23885427638371,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51e1c2ca13fdac90c799960fa743f55dec11089f_5da559a8-527f-4698-a91e-a7c437afea71.webp?v=1714839034"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51e1c2ca13fdac90c799960fa743f55dec11089f_5da559a8-527f-4698-a91e-a7c437afea71.webp?v=1714839034","width":2000},{"alt":null,"id":23885428097123,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d2ff8d18db49f4ac697ec3081abb95cd35572ef_d05d6b4e-3bad-46b3-bcaa-edbdf57adf9b.webp?v=1714839036"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d2ff8d18db49f4ac697ec3081abb95cd35572ef_d05d6b4e-3bad-46b3-bcaa-edbdf57adf9b.webp?v=1714839036","width":2000},{"alt":null,"id":23885428719715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5746d869b91e7e83cf69e0a7b9a4db3218e52a5_e271e9f7-1270-42ea-9102-7feb4cf7195a.webp?v=1714839039"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5746d869b91e7e83cf69e0a7b9a4db3218e52a5_e271e9f7-1270-42ea-9102-7feb4cf7195a.webp?v=1714839039","width":2000},{"alt":null,"id":23885429145699,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccda4c81502d3b48fe150ff899977a584956e5e9_b84c1bc2-b247-4abe-bc2d-c5281425d155.webp?v=1714839041"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccda4c81502d3b48fe150ff899977a584956e5e9_b84c1bc2-b247-4abe-bc2d-c5281425d155.webp?v=1714839041","width":2000},{"alt":null,"id":23885429702755,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac7854201848149a448369fadb8344df5525fb3d_ca6bd61d-6cab-4778-a233-0a164ff7baa3.webp?v=1714839043"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac7854201848149a448369fadb8344df5525fb3d_ca6bd61d-6cab-4778-a233-0a164ff7baa3.webp?v=1714839043","width":2000},{"alt":null,"id":23885430095971,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/743b171b43dc0097121923cf8ec69885d81cfa2f_2532a55e-59f3-4514-b531-8e2b3c3cfd8d.webp?v=1714839046"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/743b171b43dc0097121923cf8ec69885d81cfa2f_2532a55e-59f3-4514-b531-8e2b3c3cfd8d.webp?v=1714839046","width":2000},{"alt":null,"id":23885430587491,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d1706dfb2c884dbfc3dcf1fa5160b5740a12658_158efd5a-8aee-4be4-8079-3def9f51ee04.webp?v=1714839048"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d1706dfb2c884dbfc3dcf1fa5160b5740a12658_158efd5a-8aee-4be4-8079-3def9f51ee04.webp?v=1714839048","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41897637642339,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB46","requires_shipping":true,"taxable":true,"featured_image":{"id":31480174575715,"product_id":7411339100259,"position":1,"created_at":"2024-05-05T00:10:26+08:00","updated_at":"2024-05-05T00:10:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84e82e12dd571a863be4691e27dc995fd9a34efe_2bf31667-cb86-47cb-8e1a-89077b34a2d0.webp?v=1714839027","variant_ids":[41897637642339]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章1-潮流系列 - 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-PB46","featured_media":{"alt":null,"id":23885425541219,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84e82e12dd571a863be4691e27dc995fd9a34efe_2bf31667-cb86-47cb-8e1a-89077b34a2d0.webp?v=1714839027"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897637642339,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB46","requires_shipping":true,"taxable":true,"featured_image":{"id":31480174575715,"product_id":7411339100259,"position":1,"created_at":"2024-05-05T00:10:26+08:00","updated_at":"2024-05-05T00:10:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84e82e12dd571a863be4691e27dc995fd9a34efe_2bf31667-cb86-47cb-8e1a-89077b34a2d0.webp?v=1714839027","variant_ids":[41897637642339]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章1-潮流系列 - 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-PB46","featured_media":{"alt":null,"id":23885425541219,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84e82e12dd571a863be4691e27dc995fd9a34efe_2bf31667-cb86-47cb-8e1a-89077b34a2d0.webp?v=1714839027"}},"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: "停產" }