$product = {"id":7414022144099,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 史迪奇 - 經典系列-Aloha!","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-yf08","description":null,"published_at":"2024-06-11T17:47:58+08:00","created_at":"2024-05-05T14:02:49+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區史迪奇","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-stitch","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-stitch","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":41903430598755,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31484483928163,"product_id":7414022144099,"position":8,"created_at":"2024-05-05T14:03:08+08:00","updated_at":"2024-05-05T14:03:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3fe91305896159da1069b1f82321eb20b93a057_7a7c9e20-6c98-46c6-98a6-a0cf83051aae.webp?v=1714888988","variant_ids":[41903430598755]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 史迪奇 - 經典系列-Aloha! - 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":"MPB0123224-YF08","featured_media":{"alt":null,"id":23889778049123,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3fe91305896159da1069b1f82321eb20b93a057_7a7c9e20-6c98-46c6-98a6-a0cf83051aae.webp?v=1714888988"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903430893667,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31484483403875,"product_id":7414022144099,"position":7,"created_at":"2024-05-05T14:03:05+08:00","updated_at":"2024-05-05T14:03:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42294a0f5f672ee5484fcd28d7bd2f95d09db727_6b2a70d9-42d1-4298-b25b-7e3c75432314.webp?v=1714888985","variant_ids":[41903430893667]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 史迪奇 - 經典系列-Aloha! - 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":"MPB01232J5-YF08","featured_media":{"alt":null,"id":23889777524835,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42294a0f5f672ee5484fcd28d7bd2f95d09db727_6b2a70d9-42d1-4298-b25b-7e3c75432314.webp?v=1714888985"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03b093d68874016733569dedcdaeef476537ecf2_807beb8f-6b83-4a8a-9352-54ae1936be63.webp?v=1714888971","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddea6d20c4eab9b7da4f8b63ef3c9ca030b19501_34eabdad-a535-4335-89ae-1974a358c64b.webp?v=1714888973","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47e169bd18b1480bd9931dcf2d444f1ff9560251_8950bcff-7fbd-41df-ae64-008a08cec711.webp?v=1714888976","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77be64eec907ebb6ddd5d690262b5672192ed683_9b84eb7e-837d-4069-836f-1b3a3295bcf6.webp?v=1714888978","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e14ea43742c3675ce391e8b42b9d803373e3bb0_4fba3c80-2d11-471d-b6f5-1217a85388ca.webp?v=1714888980","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d970b2000f3bf90fba4a0663ce1bcac09a6a751e_57b38273-7337-4231-aa1e-ca692d74e6a7.webp?v=1714888983","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42294a0f5f672ee5484fcd28d7bd2f95d09db727_6b2a70d9-42d1-4298-b25b-7e3c75432314.webp?v=1714888985","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3fe91305896159da1069b1f82321eb20b93a057_7a7c9e20-6c98-46c6-98a6-a0cf83051aae.webp?v=1714888988","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29e4c4f90eed4b4a291d8a7865f64e9146b93c87_4eac549e-1d38-4b4e-a4ed-6c34040160d8.webp?v=1714888990","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc314ee90c21633ba0819ef7d2e1a9d99045f091_9e848a44-6fbe-4aff-b427-02cfa6974241.webp?v=1714888992","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/579075c92a5587dd6e213124cd830edfd64e631f_ef8a0fc8-c6da-4a3a-ade8-6c0726ce594a.webp?v=1714888995"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03b093d68874016733569dedcdaeef476537ecf2_807beb8f-6b83-4a8a-9352-54ae1936be63.webp?v=1714888971","options":["color"],"media":[{"alt":null,"id":23889774248035,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03b093d68874016733569dedcdaeef476537ecf2_807beb8f-6b83-4a8a-9352-54ae1936be63.webp?v=1714888971"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03b093d68874016733569dedcdaeef476537ecf2_807beb8f-6b83-4a8a-9352-54ae1936be63.webp?v=1714888971","width":2000},{"alt":null,"id":23889774641251,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddea6d20c4eab9b7da4f8b63ef3c9ca030b19501_34eabdad-a535-4335-89ae-1974a358c64b.webp?v=1714888973"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddea6d20c4eab9b7da4f8b63ef3c9ca030b19501_34eabdad-a535-4335-89ae-1974a358c64b.webp?v=1714888973","width":2000},{"alt":null,"id":23889775100003,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47e169bd18b1480bd9931dcf2d444f1ff9560251_8950bcff-7fbd-41df-ae64-008a08cec711.webp?v=1714888976"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47e169bd18b1480bd9931dcf2d444f1ff9560251_8950bcff-7fbd-41df-ae64-008a08cec711.webp?v=1714888976","width":2000},{"alt":null,"id":23889775886435,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77be64eec907ebb6ddd5d690262b5672192ed683_9b84eb7e-837d-4069-836f-1b3a3295bcf6.webp?v=1714888978"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77be64eec907ebb6ddd5d690262b5672192ed683_9b84eb7e-837d-4069-836f-1b3a3295bcf6.webp?v=1714888978","width":2000},{"alt":null,"id":23889776312419,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e14ea43742c3675ce391e8b42b9d803373e3bb0_4fba3c80-2d11-471d-b6f5-1217a85388ca.webp?v=1714888980"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e14ea43742c3675ce391e8b42b9d803373e3bb0_4fba3c80-2d11-471d-b6f5-1217a85388ca.webp?v=1714888980","width":2000},{"alt":null,"id":23889776902243,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d970b2000f3bf90fba4a0663ce1bcac09a6a751e_57b38273-7337-4231-aa1e-ca692d74e6a7.webp?v=1714888983"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d970b2000f3bf90fba4a0663ce1bcac09a6a751e_57b38273-7337-4231-aa1e-ca692d74e6a7.webp?v=1714888983","width":2000},{"alt":null,"id":23889777524835,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42294a0f5f672ee5484fcd28d7bd2f95d09db727_6b2a70d9-42d1-4298-b25b-7e3c75432314.webp?v=1714888985"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42294a0f5f672ee5484fcd28d7bd2f95d09db727_6b2a70d9-42d1-4298-b25b-7e3c75432314.webp?v=1714888985","width":2000},{"alt":null,"id":23889778049123,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3fe91305896159da1069b1f82321eb20b93a057_7a7c9e20-6c98-46c6-98a6-a0cf83051aae.webp?v=1714888988"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3fe91305896159da1069b1f82321eb20b93a057_7a7c9e20-6c98-46c6-98a6-a0cf83051aae.webp?v=1714888988","width":2000},{"alt":null,"id":23889778573411,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29e4c4f90eed4b4a291d8a7865f64e9146b93c87_4eac549e-1d38-4b4e-a4ed-6c34040160d8.webp?v=1714888990"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29e4c4f90eed4b4a291d8a7865f64e9146b93c87_4eac549e-1d38-4b4e-a4ed-6c34040160d8.webp?v=1714888990","width":2000},{"alt":null,"id":23889779064931,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc314ee90c21633ba0819ef7d2e1a9d99045f091_9e848a44-6fbe-4aff-b427-02cfa6974241.webp?v=1714888992"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc314ee90c21633ba0819ef7d2e1a9d99045f091_9e848a44-6fbe-4aff-b427-02cfa6974241.webp?v=1714888992","width":2000},{"alt":null,"id":23889779654755,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/579075c92a5587dd6e213124cd830edfd64e631f_ef8a0fc8-c6da-4a3a-ade8-6c0726ce594a.webp?v=1714888995"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/579075c92a5587dd6e213124cd830edfd64e631f_ef8a0fc8-c6da-4a3a-ade8-6c0726ce594a.webp?v=1714888995","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41903430598755,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31484483928163,"product_id":7414022144099,"position":8,"created_at":"2024-05-05T14:03:08+08:00","updated_at":"2024-05-05T14:03:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3fe91305896159da1069b1f82321eb20b93a057_7a7c9e20-6c98-46c6-98a6-a0cf83051aae.webp?v=1714888988","variant_ids":[41903430598755]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 史迪奇 - 經典系列-Aloha! - 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":"MPB0123224-YF08","featured_media":{"alt":null,"id":23889778049123,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3fe91305896159da1069b1f82321eb20b93a057_7a7c9e20-6c98-46c6-98a6-a0cf83051aae.webp?v=1714888988"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903430893667,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31484483403875,"product_id":7414022144099,"position":7,"created_at":"2024-05-05T14:03:05+08:00","updated_at":"2024-05-05T14:03:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42294a0f5f672ee5484fcd28d7bd2f95d09db727_6b2a70d9-42d1-4298-b25b-7e3c75432314.webp?v=1714888985","variant_ids":[41903430893667]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 史迪奇 - 經典系列-Aloha! - 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":"MPB01232J5-YF08","featured_media":{"alt":null,"id":23889777524835,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42294a0f5f672ee5484fcd28d7bd2f95d09db727_6b2a70d9-42d1-4298-b25b-7e3c75432314.webp?v=1714888985"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41903430598755,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31484483928163,"product_id":7414022144099,"position":8,"created_at":"2024-05-05T14:03:08+08:00","updated_at":"2024-05-05T14:03:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3fe91305896159da1069b1f82321eb20b93a057_7a7c9e20-6c98-46c6-98a6-a0cf83051aae.webp?v=1714888988","variant_ids":[41903430598755]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 史迪奇 - 經典系列-Aloha! - 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":"MPB0123224-YF08","featured_media":{"alt":null,"id":23889778049123,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3fe91305896159da1069b1f82321eb20b93a057_7a7c9e20-6c98-46c6-98a6-a0cf83051aae.webp?v=1714888988"}},"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: "停產" }