$product = {"id":7410953977955,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 【獨家設計款】 - 窯花","handle":"iphone-15-plus-mod-nx-magsafe-printable-gd14","description":null,"published_at":"2024-06-11T17:32:26+08:00","created_at":"2024-05-04T22:15:51+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"MOD NX MagSafe 客製化","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","device-iPhone 15 Plus","discountable-item","member","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller","reseller-modnx-magsafe-chi-po-lin-series","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":41893525061731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-GD14","requires_shipping":true,"taxable":true,"featured_image":{"id":31479137402979,"product_id":7410953977955,"position":3,"created_at":"2024-05-04T22:15:57+08:00","updated_at":"2024-05-04T22:15:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/373936a25ca66935544360b08877cac04230232d_c8b14bac-f140-454e-9f6a-523ff1a111ee.webp?v=1714832157","variant_ids":[41893525061731]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 【獨家設計款】 - 窯花 - 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":"MPB0129624-GD14","featured_media":{"alt":null,"id":23884384436323,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/373936a25ca66935544360b08877cac04230232d_c8b14bac-f140-454e-9f6a-523ff1a111ee.webp?v=1714832157"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41893525225571,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-GD14","requires_shipping":true,"taxable":true,"featured_image":{"id":31479141105763,"product_id":7410953977955,"position":10,"created_at":"2024-05-04T22:16:13+08:00","updated_at":"2024-05-04T22:16:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2465e8e4adbf6b048b2cb577b920b140e7d9b7c7_4a9cb255-8a87-473c-8458-60a11bed7058.webp?v=1714832173","variant_ids":[41893525225571]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 【獨家設計款】 - 窯花 - 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":"MPB0129657-GD14","featured_media":{"alt":null,"id":23884388139107,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2465e8e4adbf6b048b2cb577b920b140e7d9b7c7_4a9cb255-8a87-473c-8458-60a11bed7058.webp?v=1714832173"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51f9f0846b7ae98190126009aa7fb5310e39d5cc_af007e32-c2e1-4220-927c-dea4cfe447b8.webp?v=1714832153","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2463980438dfd71506d5d53471a66ab692126bdf_3a13d3b0-d00e-4b4c-9753-ce1ad5cb7c91.webp?v=1714832155","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/373936a25ca66935544360b08877cac04230232d_c8b14bac-f140-454e-9f6a-523ff1a111ee.webp?v=1714832157","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e3dd35904e76b0328a813dfbc3649af13e3bfe0_e04cbb2e-6405-48d7-a5ba-7927087a5785.webp?v=1714832160","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4588a1552e7c540e5674f7a4ae4cbb539b2c3f2b_23f9b6f8-2af4-4797-b379-c5191baaf1ac.webp?v=1714832162","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3009a9ea4af4cb85c163a8ef031e0c15f807885c_de68cd63-8f01-4f86-ad00-afce0172e6a0.webp?v=1714832164","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/736be05bbf272bc4e2e1ea33fb9d5ee96cf31a5f_1be34c7a-7fc9-40ce-a6b9-02e61c92b43f.webp?v=1714832167","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e59cb066fda2698015e1cc27be72c73538a90969_e5416106-98b5-4ca4-a621-041ee02026a6.webp?v=1714832169","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93602f45bf2359620dd4b1f0bb4f065ef6d605b5_a236cbd6-7614-4bd7-a5a6-5426053e144d.webp?v=1714832171","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2465e8e4adbf6b048b2cb577b920b140e7d9b7c7_4a9cb255-8a87-473c-8458-60a11bed7058.webp?v=1714832173"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51f9f0846b7ae98190126009aa7fb5310e39d5cc_af007e32-c2e1-4220-927c-dea4cfe447b8.webp?v=1714832153","options":["color"],"media":[{"alt":null,"id":23884383584355,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51f9f0846b7ae98190126009aa7fb5310e39d5cc_af007e32-c2e1-4220-927c-dea4cfe447b8.webp?v=1714832153"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51f9f0846b7ae98190126009aa7fb5310e39d5cc_af007e32-c2e1-4220-927c-dea4cfe447b8.webp?v=1714832153","width":2000},{"alt":null,"id":23884384010339,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2463980438dfd71506d5d53471a66ab692126bdf_3a13d3b0-d00e-4b4c-9753-ce1ad5cb7c91.webp?v=1714832155"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2463980438dfd71506d5d53471a66ab692126bdf_3a13d3b0-d00e-4b4c-9753-ce1ad5cb7c91.webp?v=1714832155","width":2000},{"alt":null,"id":23884384436323,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/373936a25ca66935544360b08877cac04230232d_c8b14bac-f140-454e-9f6a-523ff1a111ee.webp?v=1714832157"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/373936a25ca66935544360b08877cac04230232d_c8b14bac-f140-454e-9f6a-523ff1a111ee.webp?v=1714832157","width":2000},{"alt":null,"id":23884384960611,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e3dd35904e76b0328a813dfbc3649af13e3bfe0_e04cbb2e-6405-48d7-a5ba-7927087a5785.webp?v=1714832160"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e3dd35904e76b0328a813dfbc3649af13e3bfe0_e04cbb2e-6405-48d7-a5ba-7927087a5785.webp?v=1714832160","width":2000},{"alt":null,"id":23884385484899,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4588a1552e7c540e5674f7a4ae4cbb539b2c3f2b_23f9b6f8-2af4-4797-b379-c5191baaf1ac.webp?v=1714832162"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4588a1552e7c540e5674f7a4ae4cbb539b2c3f2b_23f9b6f8-2af4-4797-b379-c5191baaf1ac.webp?v=1714832162","width":2000},{"alt":null,"id":23884385943651,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3009a9ea4af4cb85c163a8ef031e0c15f807885c_de68cd63-8f01-4f86-ad00-afce0172e6a0.webp?v=1714832164"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3009a9ea4af4cb85c163a8ef031e0c15f807885c_de68cd63-8f01-4f86-ad00-afce0172e6a0.webp?v=1714832164","width":2000},{"alt":null,"id":23884386369635,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/736be05bbf272bc4e2e1ea33fb9d5ee96cf31a5f_1be34c7a-7fc9-40ce-a6b9-02e61c92b43f.webp?v=1714832167"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/736be05bbf272bc4e2e1ea33fb9d5ee96cf31a5f_1be34c7a-7fc9-40ce-a6b9-02e61c92b43f.webp?v=1714832167","width":2000},{"alt":null,"id":23884386893923,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e59cb066fda2698015e1cc27be72c73538a90969_e5416106-98b5-4ca4-a621-041ee02026a6.webp?v=1714832169"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e59cb066fda2698015e1cc27be72c73538a90969_e5416106-98b5-4ca4-a621-041ee02026a6.webp?v=1714832169","width":2000},{"alt":null,"id":23884387614819,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93602f45bf2359620dd4b1f0bb4f065ef6d605b5_a236cbd6-7614-4bd7-a5a6-5426053e144d.webp?v=1714832171"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93602f45bf2359620dd4b1f0bb4f065ef6d605b5_a236cbd6-7614-4bd7-a5a6-5426053e144d.webp?v=1714832171","width":2000},{"alt":null,"id":23884388139107,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2465e8e4adbf6b048b2cb577b920b140e7d9b7c7_4a9cb255-8a87-473c-8458-60a11bed7058.webp?v=1714832173"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2465e8e4adbf6b048b2cb577b920b140e7d9b7c7_4a9cb255-8a87-473c-8458-60a11bed7058.webp?v=1714832173","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41893525061731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-GD14","requires_shipping":true,"taxable":true,"featured_image":{"id":31479137402979,"product_id":7410953977955,"position":3,"created_at":"2024-05-04T22:15:57+08:00","updated_at":"2024-05-04T22:15:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/373936a25ca66935544360b08877cac04230232d_c8b14bac-f140-454e-9f6a-523ff1a111ee.webp?v=1714832157","variant_ids":[41893525061731]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 【獨家設計款】 - 窯花 - 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":"MPB0129624-GD14","featured_media":{"alt":null,"id":23884384436323,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/373936a25ca66935544360b08877cac04230232d_c8b14bac-f140-454e-9f6a-523ff1a111ee.webp?v=1714832157"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41893525225571,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-GD14","requires_shipping":true,"taxable":true,"featured_image":{"id":31479141105763,"product_id":7410953977955,"position":10,"created_at":"2024-05-04T22:16:13+08:00","updated_at":"2024-05-04T22:16:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2465e8e4adbf6b048b2cb577b920b140e7d9b7c7_4a9cb255-8a87-473c-8458-60a11bed7058.webp?v=1714832173","variant_ids":[41893525225571]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 【獨家設計款】 - 窯花 - 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":"MPB0129657-GD14","featured_media":{"alt":null,"id":23884388139107,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2465e8e4adbf6b048b2cb577b920b140e7d9b7c7_4a9cb255-8a87-473c-8458-60a11bed7058.webp?v=1714832173"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41893525061731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-GD14","requires_shipping":true,"taxable":true,"featured_image":{"id":31479137402979,"product_id":7410953977955,"position":3,"created_at":"2024-05-04T22:15:57+08:00","updated_at":"2024-05-04T22:15:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/373936a25ca66935544360b08877cac04230232d_c8b14bac-f140-454e-9f6a-523ff1a111ee.webp?v=1714832157","variant_ids":[41893525061731]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 【獨家設計款】 - 窯花 - 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":"MPB0129624-GD14","featured_media":{"alt":null,"id":23884384436323,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/373936a25ca66935544360b08877cac04230232d_c8b14bac-f140-454e-9f6a-523ff1a111ee.webp?v=1714832157"}},"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: "停產" }