$product = {"id":7411279855715,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Look - 人在做 加納利群島在看","handle":"iphone-14-plus-mod-nx-magsafe-printable-af08","description":null,"published_at":"2024-06-11T17:40:41+08:00","created_at":"2024-05-04T23:59:09+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Look","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 14 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-look","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":41896890171491,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-AF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31480035901539,"product_id":7411279855715,"position":8,"created_at":"2024-05-04T23:59:29+08:00","updated_at":"2024-05-04T23:59:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a35494dbaec70ce9521638e9742f20f5f11d9bb1_d1e14041-ac65-43d1-ab50-5b462691db41.webp?v=1714838369","variant_ids":[41896890171491]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Look - 人在做 加納利群島在看 - 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-AF08","featured_media":{"alt":null,"id":23885286539363,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a35494dbaec70ce9521638e9742f20f5f11d9bb1_d1e14041-ac65-43d1-ab50-5b462691db41.webp?v=1714838369"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cb06951b95092d18ccd3353684646dbe280f4de_7aa495dc-efbb-4592-86a4-ada99328b21c.webp?v=1714838352","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d66aab23843b5dcf214425b264d8af988476019d_dbc7dc48-ee64-41bd-a08a-2e5c2667f21c.webp?v=1714838355","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fa7e039fa67491c43bc7208389d14394f7ec259_1dc949d2-c652-4d81-8156-72d652503c30.webp?v=1714838357","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3364afb3647c56d7913ddffac5dc78bb9e718a4_a3035a8f-698c-48d7-9d20-19e32ad9ba20.webp?v=1714838359","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/840b50920361356f17958ff8a00e63656d76a934_2a7fdced-4a32-4abc-8b90-a905be287e8e.webp?v=1714838362","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8eb10365ff40f7b4405435aa84cca7126e029142_f60a233c-3cb9-49bd-8d81-2eb286c71ea9.webp?v=1714838364","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e3a7a64de3900356e5c1fbbaac7b58752ff3d03_4e7f7693-819c-4d7a-8876-11f2c78c2ed5.webp?v=1714838367","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a35494dbaec70ce9521638e9742f20f5f11d9bb1_d1e14041-ac65-43d1-ab50-5b462691db41.webp?v=1714838369","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19de4ba0e73619b2fdda0b94e368bfcd7f311e6f_99663e26-49d6-4d42-8669-8fa993c80505.webp?v=1714838372","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07f555540c2f1d26d75ede0968c35d6c528f7092_c7813218-210b-4766-bf2b-5dd56f11f263.webp?v=1714838374"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cb06951b95092d18ccd3353684646dbe280f4de_7aa495dc-efbb-4592-86a4-ada99328b21c.webp?v=1714838352","options":["color"],"media":[{"alt":null,"id":23885282574435,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cb06951b95092d18ccd3353684646dbe280f4de_7aa495dc-efbb-4592-86a4-ada99328b21c.webp?v=1714838352"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5cb06951b95092d18ccd3353684646dbe280f4de_7aa495dc-efbb-4592-86a4-ada99328b21c.webp?v=1714838352","width":2000},{"alt":null,"id":23885283229795,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d66aab23843b5dcf214425b264d8af988476019d_dbc7dc48-ee64-41bd-a08a-2e5c2667f21c.webp?v=1714838355"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d66aab23843b5dcf214425b264d8af988476019d_dbc7dc48-ee64-41bd-a08a-2e5c2667f21c.webp?v=1714838355","width":2000},{"alt":null,"id":23885283721315,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fa7e039fa67491c43bc7208389d14394f7ec259_1dc949d2-c652-4d81-8156-72d652503c30.webp?v=1714838357"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fa7e039fa67491c43bc7208389d14394f7ec259_1dc949d2-c652-4d81-8156-72d652503c30.webp?v=1714838357","width":2000},{"alt":null,"id":23885284278371,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3364afb3647c56d7913ddffac5dc78bb9e718a4_a3035a8f-698c-48d7-9d20-19e32ad9ba20.webp?v=1714838359"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3364afb3647c56d7913ddffac5dc78bb9e718a4_a3035a8f-698c-48d7-9d20-19e32ad9ba20.webp?v=1714838359","width":2000},{"alt":null,"id":23885284769891,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/840b50920361356f17958ff8a00e63656d76a934_2a7fdced-4a32-4abc-8b90-a905be287e8e.webp?v=1714838362"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/840b50920361356f17958ff8a00e63656d76a934_2a7fdced-4a32-4abc-8b90-a905be287e8e.webp?v=1714838362","width":2000},{"alt":null,"id":23885285425251,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8eb10365ff40f7b4405435aa84cca7126e029142_f60a233c-3cb9-49bd-8d81-2eb286c71ea9.webp?v=1714838364"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8eb10365ff40f7b4405435aa84cca7126e029142_f60a233c-3cb9-49bd-8d81-2eb286c71ea9.webp?v=1714838364","width":2000},{"alt":null,"id":23885286015075,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e3a7a64de3900356e5c1fbbaac7b58752ff3d03_4e7f7693-819c-4d7a-8876-11f2c78c2ed5.webp?v=1714838367"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e3a7a64de3900356e5c1fbbaac7b58752ff3d03_4e7f7693-819c-4d7a-8876-11f2c78c2ed5.webp?v=1714838367","width":2000},{"alt":null,"id":23885286539363,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a35494dbaec70ce9521638e9742f20f5f11d9bb1_d1e14041-ac65-43d1-ab50-5b462691db41.webp?v=1714838369"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a35494dbaec70ce9521638e9742f20f5f11d9bb1_d1e14041-ac65-43d1-ab50-5b462691db41.webp?v=1714838369","width":2000},{"alt":null,"id":23885287063651,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19de4ba0e73619b2fdda0b94e368bfcd7f311e6f_99663e26-49d6-4d42-8669-8fa993c80505.webp?v=1714838372"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19de4ba0e73619b2fdda0b94e368bfcd7f311e6f_99663e26-49d6-4d42-8669-8fa993c80505.webp?v=1714838372","width":2000},{"alt":null,"id":23885287719011,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07f555540c2f1d26d75ede0968c35d6c528f7092_c7813218-210b-4766-bf2b-5dd56f11f263.webp?v=1714838374"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07f555540c2f1d26d75ede0968c35d6c528f7092_c7813218-210b-4766-bf2b-5dd56f11f263.webp?v=1714838374","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41896890171491,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-AF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31480035901539,"product_id":7411279855715,"position":8,"created_at":"2024-05-04T23:59:29+08:00","updated_at":"2024-05-04T23:59:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a35494dbaec70ce9521638e9742f20f5f11d9bb1_d1e14041-ac65-43d1-ab50-5b462691db41.webp?v=1714838369","variant_ids":[41896890171491]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Look - 人在做 加納利群島在看 - 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-AF08","featured_media":{"alt":null,"id":23885286539363,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a35494dbaec70ce9521638e9742f20f5f11d9bb1_d1e14041-ac65-43d1-ab50-5b462691db41.webp?v=1714838369"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41896890171491,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-AF08","requires_shipping":true,"taxable":true,"featured_image":{"id":31480035901539,"product_id":7411279855715,"position":8,"created_at":"2024-05-04T23:59:29+08:00","updated_at":"2024-05-04T23:59:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a35494dbaec70ce9521638e9742f20f5f11d9bb1_d1e14041-ac65-43d1-ab50-5b462691db41.webp?v=1714838369","variant_ids":[41896890171491]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Look - 人在做 加納利群島在看 - 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-AF08","featured_media":{"alt":null,"id":23885286539363,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a35494dbaec70ce9521638e9742f20f5f11d9bb1_d1e14041-ac65-43d1-ab50-5b462691db41.webp?v=1714838369"}},"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: "停產" }