$product = {"id":7415087890531,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - 星球大戰-貼紙系列","handle":"iphone-12-mini-mod-nx-magsafe-printable-pb98","description":null,"published_at":"2024-06-11T17:57:38+08:00","created_at":"2024-05-05T20:20:28+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 12 mini","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":41911742103651,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB98","requires_shipping":true,"taxable":true,"featured_image":{"id":31488129499235,"product_id":7415087890531,"position":8,"created_at":"2024-05-05T20:20:49+08:00","updated_at":"2024-05-05T20:20:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/286ef0e230a073176f970a3b03192eefd7e6eb2c_ba68b9e1-4919-489f-8c2e-1db53ef8f86c.webp?v=1714911649","variant_ids":[41911742103651]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 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":"MPB0118424-PB98","featured_media":{"alt":null,"id":23893474345059,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/286ef0e230a073176f970a3b03192eefd7e6eb2c_ba68b9e1-4919-489f-8c2e-1db53ef8f86c.webp?v=1714911649"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5084ce6c62ae79dcfa0ef68c05fe084af97e810c_701337dd-b96e-4a8e-ac40-e5a9ed175848.webp?v=1714911631","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6eb5c90fe2b8cc3a4dc1689020d23e56f740b3e9_e1c9ec1e-6aab-4f4f-ada6-5650a408ac27.webp?v=1714911634","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11e678d02dd2bcc0fd0daacd87d68ef70d7d51ef_b43d6471-14c0-4b62-a9aa-88a1d8f86b78.webp?v=1714911636","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd9052b152a4e546c829b4d7a9124a47e7a9a095_28cb8dba-8516-4316-800f-e80700440668.webp?v=1714911638","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd08894e057f7a7c6ea98d71ca7220b01d28040d_8ce99094-c438-43ca-8d35-88774d2ca7f1.webp?v=1714911641","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea89277cb267ca044daa7aa2fb41810d4a05a6b4_c0425302-0004-48f4-a519-5c5aeb2dcf76.webp?v=1714911643","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2d2396545cd82723c335ab8fd70d4a6b8e8f42f_68cfc0f7-1625-4ea3-8ed9-9bd198802a2b.webp?v=1714911646","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/286ef0e230a073176f970a3b03192eefd7e6eb2c_ba68b9e1-4919-489f-8c2e-1db53ef8f86c.webp?v=1714911649","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67f749fed5d82457c524930d39f61e66a77a346d_60915ab1-27a6-4b09-97d1-4dafc69ddd83.webp?v=1714911651","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55d31d07480d3c321c7445b474eb084fdfac9bb7_bd248aa7-6d3e-400c-90e2-82028ef81812.webp?v=1714911654","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c21bd54267940ed5156596455383f88ff14f2f8_8d69e751-644d-4e18-9d25-3e979510568a.webp?v=1714911656"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5084ce6c62ae79dcfa0ef68c05fe084af97e810c_701337dd-b96e-4a8e-ac40-e5a9ed175848.webp?v=1714911631","options":["color"],"media":[{"alt":null,"id":23893469528163,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5084ce6c62ae79dcfa0ef68c05fe084af97e810c_701337dd-b96e-4a8e-ac40-e5a9ed175848.webp?v=1714911631"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5084ce6c62ae79dcfa0ef68c05fe084af97e810c_701337dd-b96e-4a8e-ac40-e5a9ed175848.webp?v=1714911631","width":2000},{"alt":null,"id":23893470478435,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6eb5c90fe2b8cc3a4dc1689020d23e56f740b3e9_e1c9ec1e-6aab-4f4f-ada6-5650a408ac27.webp?v=1714911634"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6eb5c90fe2b8cc3a4dc1689020d23e56f740b3e9_e1c9ec1e-6aab-4f4f-ada6-5650a408ac27.webp?v=1714911634","width":2000},{"alt":null,"id":23893471199331,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11e678d02dd2bcc0fd0daacd87d68ef70d7d51ef_b43d6471-14c0-4b62-a9aa-88a1d8f86b78.webp?v=1714911636"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11e678d02dd2bcc0fd0daacd87d68ef70d7d51ef_b43d6471-14c0-4b62-a9aa-88a1d8f86b78.webp?v=1714911636","width":2000},{"alt":null,"id":23893471690851,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd9052b152a4e546c829b4d7a9124a47e7a9a095_28cb8dba-8516-4316-800f-e80700440668.webp?v=1714911638"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd9052b152a4e546c829b4d7a9124a47e7a9a095_28cb8dba-8516-4316-800f-e80700440668.webp?v=1714911638","width":2000},{"alt":null,"id":23893472182371,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd08894e057f7a7c6ea98d71ca7220b01d28040d_8ce99094-c438-43ca-8d35-88774d2ca7f1.webp?v=1714911641"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd08894e057f7a7c6ea98d71ca7220b01d28040d_8ce99094-c438-43ca-8d35-88774d2ca7f1.webp?v=1714911641","width":2000},{"alt":null,"id":23893472641123,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea89277cb267ca044daa7aa2fb41810d4a05a6b4_c0425302-0004-48f4-a519-5c5aeb2dcf76.webp?v=1714911643"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea89277cb267ca044daa7aa2fb41810d4a05a6b4_c0425302-0004-48f4-a519-5c5aeb2dcf76.webp?v=1714911643","width":2000},{"alt":null,"id":23893473525859,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2d2396545cd82723c335ab8fd70d4a6b8e8f42f_68cfc0f7-1625-4ea3-8ed9-9bd198802a2b.webp?v=1714911646"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2d2396545cd82723c335ab8fd70d4a6b8e8f42f_68cfc0f7-1625-4ea3-8ed9-9bd198802a2b.webp?v=1714911646","width":2000},{"alt":null,"id":23893474345059,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/286ef0e230a073176f970a3b03192eefd7e6eb2c_ba68b9e1-4919-489f-8c2e-1db53ef8f86c.webp?v=1714911649"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/286ef0e230a073176f970a3b03192eefd7e6eb2c_ba68b9e1-4919-489f-8c2e-1db53ef8f86c.webp?v=1714911649","width":2000},{"alt":null,"id":23893475131491,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67f749fed5d82457c524930d39f61e66a77a346d_60915ab1-27a6-4b09-97d1-4dafc69ddd83.webp?v=1714911651"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67f749fed5d82457c524930d39f61e66a77a346d_60915ab1-27a6-4b09-97d1-4dafc69ddd83.webp?v=1714911651","width":2000},{"alt":null,"id":23893475819619,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55d31d07480d3c321c7445b474eb084fdfac9bb7_bd248aa7-6d3e-400c-90e2-82028ef81812.webp?v=1714911654"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55d31d07480d3c321c7445b474eb084fdfac9bb7_bd248aa7-6d3e-400c-90e2-82028ef81812.webp?v=1714911654","width":2000},{"alt":null,"id":23893476311139,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c21bd54267940ed5156596455383f88ff14f2f8_8d69e751-644d-4e18-9d25-3e979510568a.webp?v=1714911656"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c21bd54267940ed5156596455383f88ff14f2f8_8d69e751-644d-4e18-9d25-3e979510568a.webp?v=1714911656","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41911742103651,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB98","requires_shipping":true,"taxable":true,"featured_image":{"id":31488129499235,"product_id":7415087890531,"position":8,"created_at":"2024-05-05T20:20:49+08:00","updated_at":"2024-05-05T20:20:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/286ef0e230a073176f970a3b03192eefd7e6eb2c_ba68b9e1-4919-489f-8c2e-1db53ef8f86c.webp?v=1714911649","variant_ids":[41911742103651]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 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":"MPB0118424-PB98","featured_media":{"alt":null,"id":23893474345059,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/286ef0e230a073176f970a3b03192eefd7e6eb2c_ba68b9e1-4919-489f-8c2e-1db53ef8f86c.webp?v=1714911649"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41911742103651,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB98","requires_shipping":true,"taxable":true,"featured_image":{"id":31488129499235,"product_id":7415087890531,"position":8,"created_at":"2024-05-05T20:20:49+08:00","updated_at":"2024-05-05T20:20:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/286ef0e230a073176f970a3b03192eefd7e6eb2c_ba68b9e1-4919-489f-8c2e-1db53ef8f86c.webp?v=1714911649","variant_ids":[41911742103651]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 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":"MPB0118424-PB98","featured_media":{"alt":null,"id":23893474345059,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/286ef0e230a073176f970a3b03192eefd7e6eb2c_ba68b9e1-4919-489f-8c2e-1db53ef8f86c.webp?v=1714911649"}},"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: "停產" }