$product = {"id":7411432685667,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Pixel Jeff 皮傑 - 街頭貓貓","handle":"iphone-14-plus-mod-nx-magsafe-printable-hq01","description":null,"published_at":"2024-06-11T17:44:52+08:00","created_at":"2024-05-05T00:28:50+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Pixel Jeff 皮傑","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-pixeljeff","device-iPhone 14 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-pixeljeff","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":41898825285731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-HQ01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480413716579,"product_id":7411432685667,"position":7,"created_at":"2024-05-05T00:29:06+08:00","updated_at":"2024-05-05T00:29:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/662ba0c47112fc1435eb76d6ac24c28aa12cda1f_5f71da77-7666-4bab-848f-bf6de0ecc3e1.webp?v=1714840146","variant_ids":[41898825285731]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Pixel Jeff 皮傑 - 街頭貓貓 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-HQ01","featured_media":{"alt":null,"id":23885665665123,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/662ba0c47112fc1435eb76d6ac24c28aa12cda1f_5f71da77-7666-4bab-848f-bf6de0ecc3e1.webp?v=1714840146"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd5c23f53775311d735f24a4ce844d0c566d724d_1f9a9e14-a215-4d07-b2c0-5c305c72767d.webp?v=1714840133","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5cb83d310d6226d1d1da1b1b24b8c394d0b0e94_c23f934a-34b3-44e6-881e-20303871a05f.webp?v=1714840135","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea6ed3154719a29dc83987642678eec3fe9a93b7_e0480cce-d4e0-4126-8c36-fb469ac9cfe6.webp?v=1714840137","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49a4a2cc69faa92266ff9edec95275a241a282f5_ee9e62c5-0125-4150-bf63-678148e091e4.webp?v=1714840139","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36cadf365d3d5c30d1bfba3c1f940c2ec450dc19_75d58a7b-f800-4e13-88f6-daf527dfe31d.webp?v=1714840142","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d42b7fcb5881e2ce3b8c7f39548b067dae0850c_6fad77e1-ddfe-40cb-b306-dbcc2001a6e0.webp?v=1714840144","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/662ba0c47112fc1435eb76d6ac24c28aa12cda1f_5f71da77-7666-4bab-848f-bf6de0ecc3e1.webp?v=1714840146","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed5e32e7ab06f423d604df304b619bb9503ddf8_a30c7cb3-8c7a-4176-9397-b1870d707419.webp?v=1714840149","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5971d3544c81ea6a4768d3623e431a7ca54ec6ce_86562feb-9137-476f-83f3-2ba92f45910f.webp?v=1714840151","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80c52d968eac1fe6d7394c62946e75d728edc3f5_5770286b-11c5-4072-9e1f-1fa67bf9a297.webp?v=1714840153"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd5c23f53775311d735f24a4ce844d0c566d724d_1f9a9e14-a215-4d07-b2c0-5c305c72767d.webp?v=1714840133","options":["color"],"media":[{"alt":null,"id":23885662584931,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd5c23f53775311d735f24a4ce844d0c566d724d_1f9a9e14-a215-4d07-b2c0-5c305c72767d.webp?v=1714840133"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd5c23f53775311d735f24a4ce844d0c566d724d_1f9a9e14-a215-4d07-b2c0-5c305c72767d.webp?v=1714840133","width":2000},{"alt":null,"id":23885663141987,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5cb83d310d6226d1d1da1b1b24b8c394d0b0e94_c23f934a-34b3-44e6-881e-20303871a05f.webp?v=1714840135"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5cb83d310d6226d1d1da1b1b24b8c394d0b0e94_c23f934a-34b3-44e6-881e-20303871a05f.webp?v=1714840135","width":2000},{"alt":null,"id":23885663535203,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea6ed3154719a29dc83987642678eec3fe9a93b7_e0480cce-d4e0-4126-8c36-fb469ac9cfe6.webp?v=1714840137"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea6ed3154719a29dc83987642678eec3fe9a93b7_e0480cce-d4e0-4126-8c36-fb469ac9cfe6.webp?v=1714840137","width":2000},{"alt":null,"id":23885664125027,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49a4a2cc69faa92266ff9edec95275a241a282f5_ee9e62c5-0125-4150-bf63-678148e091e4.webp?v=1714840139"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49a4a2cc69faa92266ff9edec95275a241a282f5_ee9e62c5-0125-4150-bf63-678148e091e4.webp?v=1714840139","width":2000},{"alt":null,"id":23885664616547,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36cadf365d3d5c30d1bfba3c1f940c2ec450dc19_75d58a7b-f800-4e13-88f6-daf527dfe31d.webp?v=1714840142"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36cadf365d3d5c30d1bfba3c1f940c2ec450dc19_75d58a7b-f800-4e13-88f6-daf527dfe31d.webp?v=1714840142","width":2000},{"alt":null,"id":23885665075299,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d42b7fcb5881e2ce3b8c7f39548b067dae0850c_6fad77e1-ddfe-40cb-b306-dbcc2001a6e0.webp?v=1714840144"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d42b7fcb5881e2ce3b8c7f39548b067dae0850c_6fad77e1-ddfe-40cb-b306-dbcc2001a6e0.webp?v=1714840144","width":2000},{"alt":null,"id":23885665665123,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/662ba0c47112fc1435eb76d6ac24c28aa12cda1f_5f71da77-7666-4bab-848f-bf6de0ecc3e1.webp?v=1714840146"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/662ba0c47112fc1435eb76d6ac24c28aa12cda1f_5f71da77-7666-4bab-848f-bf6de0ecc3e1.webp?v=1714840146","width":2000},{"alt":null,"id":23885666287715,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed5e32e7ab06f423d604df304b619bb9503ddf8_a30c7cb3-8c7a-4176-9397-b1870d707419.webp?v=1714840149"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed5e32e7ab06f423d604df304b619bb9503ddf8_a30c7cb3-8c7a-4176-9397-b1870d707419.webp?v=1714840149","width":2000},{"alt":null,"id":23885666779235,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5971d3544c81ea6a4768d3623e431a7ca54ec6ce_86562feb-9137-476f-83f3-2ba92f45910f.webp?v=1714840151"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5971d3544c81ea6a4768d3623e431a7ca54ec6ce_86562feb-9137-476f-83f3-2ba92f45910f.webp?v=1714840151","width":2000},{"alt":null,"id":23885667237987,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80c52d968eac1fe6d7394c62946e75d728edc3f5_5770286b-11c5-4072-9e1f-1fa67bf9a297.webp?v=1714840153"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80c52d968eac1fe6d7394c62946e75d728edc3f5_5770286b-11c5-4072-9e1f-1fa67bf9a297.webp?v=1714840153","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41898825285731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-HQ01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480413716579,"product_id":7411432685667,"position":7,"created_at":"2024-05-05T00:29:06+08:00","updated_at":"2024-05-05T00:29:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/662ba0c47112fc1435eb76d6ac24c28aa12cda1f_5f71da77-7666-4bab-848f-bf6de0ecc3e1.webp?v=1714840146","variant_ids":[41898825285731]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Pixel Jeff 皮傑 - 街頭貓貓 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-HQ01","featured_media":{"alt":null,"id":23885665665123,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/662ba0c47112fc1435eb76d6ac24c28aa12cda1f_5f71da77-7666-4bab-848f-bf6de0ecc3e1.webp?v=1714840146"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41898825285731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-HQ01","requires_shipping":true,"taxable":true,"featured_image":{"id":31480413716579,"product_id":7411432685667,"position":7,"created_at":"2024-05-05T00:29:06+08:00","updated_at":"2024-05-05T00:29:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/662ba0c47112fc1435eb76d6ac24c28aa12cda1f_5f71da77-7666-4bab-848f-bf6de0ecc3e1.webp?v=1714840146","variant_ids":[41898825285731]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Pixel Jeff 皮傑 - 街頭貓貓 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-HQ01","featured_media":{"alt":null,"id":23885665665123,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/662ba0c47112fc1435eb76d6ac24c28aa12cda1f_5f71da77-7666-4bab-848f-bf6de0ecc3e1.webp?v=1714840146"}},"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: "停產" }