$product = {"id":7413961719907,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 史迪奇 - 經典系列-Ohana是家人","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-yf10","description":null,"published_at":"2024-06-11T17:46:14+08:00","created_at":"2024-05-05T13:50:57+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":41902730379363,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31484334440547,"product_id":7413961719907,"position":10,"created_at":"2024-05-05T13:51:20+08:00","updated_at":"2024-05-05T13:51:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/784eb475b56db7dd04eb1c117ad4a47dc329a005_3c9409eb-6d5e-4cef-a0c5-4294852f04c1.webp?v=1714888280","variant_ids":[41902730379363]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 史迪奇 - 經典系列-Ohana是家人 - 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-YF10","featured_media":{"alt":null,"id":23889628135523,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/784eb475b56db7dd04eb1c117ad4a47dc329a005_3c9409eb-6d5e-4cef-a0c5-4294852f04c1.webp?v=1714888280"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902730674275,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31484331819107,"product_id":7413961719907,"position":4,"created_at":"2024-05-05T13:51:06+08:00","updated_at":"2024-05-05T13:51:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba91a471c14599c175738b12b2ab48894833f947_5ce8ee6a-df2c-4409-a57d-f5bf77a87d00.webp?v=1714888266","variant_ids":[41902730674275]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 史迪奇 - 經典系列-Ohana是家人 - 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-YF10","featured_media":{"alt":null,"id":23889625514083,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba91a471c14599c175738b12b2ab48894833f947_5ce8ee6a-df2c-4409-a57d-f5bf77a87d00.webp?v=1714888266"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1aa792aafa6efe08670ffbbcdf553e5dc19bc439_7a949284-b836-485a-9619-a65266e88733.webp?v=1714888259","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff0f0ba4fd8c948d50f892f2725792550e26e5dc_9d9f5512-11c7-404d-94ed-0cc8d470f710.webp?v=1714888262","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7b52b05a463ac5d618d0c65dd45941ef1a265b3_482ae237-dcbb-42c9-b71b-7431011d7389.webp?v=1714888264","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba91a471c14599c175738b12b2ab48894833f947_5ce8ee6a-df2c-4409-a57d-f5bf77a87d00.webp?v=1714888266","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dbe32d8ff2acd547c5e5fa4af557d84d77aa4f5_df101ede-bcf4-452d-b3d5-3ce544293ad0.webp?v=1714888268","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3ea1a1f1590ef921140e826b048928ec36d3919_fc7e6c0d-884e-4559-a382-48ab9c80b782.webp?v=1714888271","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4243929404e60ca1e07385aaa144cd5c94e42b1_16374162-4e44-4275-a898-73433ce82f1c.webp?v=1714888273","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/904e21e410c21edd0f0dd5a73d46dc82fbf08d31_d3b8dc5c-88d2-4832-b92b-f6f7da442ae1.webp?v=1714888275","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adf2242f1e26cbc94a509dad8ba7c6c4e3eacc48_ea17d085-7433-4bb1-8f3d-0b9cd3141cec.webp?v=1714888278","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/784eb475b56db7dd04eb1c117ad4a47dc329a005_3c9409eb-6d5e-4cef-a0c5-4294852f04c1.webp?v=1714888280","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7acdcd9ead14ee1705c76545b8f1e2217415459_dc104b52-d501-4298-87e3-225f2fdb6bdd.webp?v=1714888282"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1aa792aafa6efe08670ffbbcdf553e5dc19bc439_7a949284-b836-485a-9619-a65266e88733.webp?v=1714888259","options":["color"],"media":[{"alt":null,"id":23889624006755,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1aa792aafa6efe08670ffbbcdf553e5dc19bc439_7a949284-b836-485a-9619-a65266e88733.webp?v=1714888259"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1aa792aafa6efe08670ffbbcdf553e5dc19bc439_7a949284-b836-485a-9619-a65266e88733.webp?v=1714888259","width":2000},{"alt":null,"id":23889624531043,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff0f0ba4fd8c948d50f892f2725792550e26e5dc_9d9f5512-11c7-404d-94ed-0cc8d470f710.webp?v=1714888262"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff0f0ba4fd8c948d50f892f2725792550e26e5dc_9d9f5512-11c7-404d-94ed-0cc8d470f710.webp?v=1714888262","width":2000},{"alt":null,"id":23889625055331,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7b52b05a463ac5d618d0c65dd45941ef1a265b3_482ae237-dcbb-42c9-b71b-7431011d7389.webp?v=1714888264"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7b52b05a463ac5d618d0c65dd45941ef1a265b3_482ae237-dcbb-42c9-b71b-7431011d7389.webp?v=1714888264","width":2000},{"alt":null,"id":23889625514083,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba91a471c14599c175738b12b2ab48894833f947_5ce8ee6a-df2c-4409-a57d-f5bf77a87d00.webp?v=1714888266"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba91a471c14599c175738b12b2ab48894833f947_5ce8ee6a-df2c-4409-a57d-f5bf77a87d00.webp?v=1714888266","width":2000},{"alt":null,"id":23889625940067,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dbe32d8ff2acd547c5e5fa4af557d84d77aa4f5_df101ede-bcf4-452d-b3d5-3ce544293ad0.webp?v=1714888268"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dbe32d8ff2acd547c5e5fa4af557d84d77aa4f5_df101ede-bcf4-452d-b3d5-3ce544293ad0.webp?v=1714888268","width":2000},{"alt":null,"id":23889626333283,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3ea1a1f1590ef921140e826b048928ec36d3919_fc7e6c0d-884e-4559-a382-48ab9c80b782.webp?v=1714888271"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3ea1a1f1590ef921140e826b048928ec36d3919_fc7e6c0d-884e-4559-a382-48ab9c80b782.webp?v=1714888271","width":2000},{"alt":null,"id":23889626726499,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4243929404e60ca1e07385aaa144cd5c94e42b1_16374162-4e44-4275-a898-73433ce82f1c.webp?v=1714888273"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4243929404e60ca1e07385aaa144cd5c94e42b1_16374162-4e44-4275-a898-73433ce82f1c.webp?v=1714888273","width":2000},{"alt":null,"id":23889627218019,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/904e21e410c21edd0f0dd5a73d46dc82fbf08d31_d3b8dc5c-88d2-4832-b92b-f6f7da442ae1.webp?v=1714888275"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/904e21e410c21edd0f0dd5a73d46dc82fbf08d31_d3b8dc5c-88d2-4832-b92b-f6f7da442ae1.webp?v=1714888275","width":2000},{"alt":null,"id":23889627611235,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adf2242f1e26cbc94a509dad8ba7c6c4e3eacc48_ea17d085-7433-4bb1-8f3d-0b9cd3141cec.webp?v=1714888278"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/adf2242f1e26cbc94a509dad8ba7c6c4e3eacc48_ea17d085-7433-4bb1-8f3d-0b9cd3141cec.webp?v=1714888278","width":2000},{"alt":null,"id":23889628135523,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/784eb475b56db7dd04eb1c117ad4a47dc329a005_3c9409eb-6d5e-4cef-a0c5-4294852f04c1.webp?v=1714888280"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/784eb475b56db7dd04eb1c117ad4a47dc329a005_3c9409eb-6d5e-4cef-a0c5-4294852f04c1.webp?v=1714888280","width":2000},{"alt":null,"id":23889628528739,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7acdcd9ead14ee1705c76545b8f1e2217415459_dc104b52-d501-4298-87e3-225f2fdb6bdd.webp?v=1714888282"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7acdcd9ead14ee1705c76545b8f1e2217415459_dc104b52-d501-4298-87e3-225f2fdb6bdd.webp?v=1714888282","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41902730379363,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31484334440547,"product_id":7413961719907,"position":10,"created_at":"2024-05-05T13:51:20+08:00","updated_at":"2024-05-05T13:51:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/784eb475b56db7dd04eb1c117ad4a47dc329a005_3c9409eb-6d5e-4cef-a0c5-4294852f04c1.webp?v=1714888280","variant_ids":[41902730379363]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 史迪奇 - 經典系列-Ohana是家人 - 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-YF10","featured_media":{"alt":null,"id":23889628135523,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/784eb475b56db7dd04eb1c117ad4a47dc329a005_3c9409eb-6d5e-4cef-a0c5-4294852f04c1.webp?v=1714888280"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902730674275,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31484331819107,"product_id":7413961719907,"position":4,"created_at":"2024-05-05T13:51:06+08:00","updated_at":"2024-05-05T13:51:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba91a471c14599c175738b12b2ab48894833f947_5ce8ee6a-df2c-4409-a57d-f5bf77a87d00.webp?v=1714888266","variant_ids":[41902730674275]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 史迪奇 - 經典系列-Ohana是家人 - 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-YF10","featured_media":{"alt":null,"id":23889625514083,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba91a471c14599c175738b12b2ab48894833f947_5ce8ee6a-df2c-4409-a57d-f5bf77a87d00.webp?v=1714888266"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41902730379363,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YF10","requires_shipping":true,"taxable":true,"featured_image":{"id":31484334440547,"product_id":7413961719907,"position":10,"created_at":"2024-05-05T13:51:20+08:00","updated_at":"2024-05-05T13:51:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/784eb475b56db7dd04eb1c117ad4a47dc329a005_3c9409eb-6d5e-4cef-a0c5-4294852f04c1.webp?v=1714888280","variant_ids":[41902730379363]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 史迪奇 - 經典系列-Ohana是家人 - 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-YF10","featured_media":{"alt":null,"id":23889628135523,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/784eb475b56db7dd04eb1c117ad4a47dc329a005_3c9409eb-6d5e-4cef-a0c5-4294852f04c1.webp?v=1714888280"}},"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: "停產" }