$product = {"id":7414577070179,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 願傷疤 有天開出花(澳洲叢林大火)","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-af02","description":null,"published_at":"2024-06-11T17:52:13+08:00","created_at":"2024-05-05T14:31:39+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 13 Pro Max","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":41907486359651,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF02","requires_shipping":true,"taxable":true,"featured_image":{"id":31485797466211,"product_id":7414577070179,"position":1,"created_at":"2024-05-05T14:31:41+08:00","updated_at":"2024-05-05T14:31:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a48c70e72132c6a775996fe5fe39173d76aa70f_499bc7fe-44be-4731-b401-31938b419790.webp?v=1714890701","variant_ids":[41907486359651]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 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":"MPB0123224-AF02","featured_media":{"alt":null,"id":23891129729123,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a48c70e72132c6a775996fe5fe39173d76aa70f_499bc7fe-44be-4731-b401-31938b419790.webp?v=1714890701"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907486687331,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-AF02","requires_shipping":true,"taxable":true,"featured_image":{"id":31485803987043,"product_id":7414577070179,"position":9,"created_at":"2024-05-05T14:32:00+08:00","updated_at":"2024-05-05T14:32:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6b5ade4ab3f2f121ca987e7675ef5e708f9d3b6_70dfaa7d-6760-4335-962f-e29d2ee4fb7e.webp?v=1714890720","variant_ids":[41907486687331]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 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":"MPB01232J5-AF02","featured_media":{"alt":null,"id":23891136413795,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6b5ade4ab3f2f121ca987e7675ef5e708f9d3b6_70dfaa7d-6760-4335-962f-e29d2ee4fb7e.webp?v=1714890720"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a48c70e72132c6a775996fe5fe39173d76aa70f_499bc7fe-44be-4731-b401-31938b419790.webp?v=1714890701","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e40582460642da7c872a31bd7ff9b793c96fff76_6f4f2249-9c91-4430-ab18-72802c7ed96c.webp?v=1714890704","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31ec23a5bd5978946492b24812049a46b6968947_713c6492-20a6-46cb-9b85-549a932d7586.webp?v=1714890706","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e66f1af9616da3087e9d593066118e9c830fc4cd_ae889fb7-fc86-4a27-92c9-17d42b6873ee.webp?v=1714890708","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c54490a8b4f99c14600ed6720f882d08c6b709f8_f60cf372-e584-4fae-8519-70c2541d1594.webp?v=1714890711","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1adf00e83079ba0e2a433530ac02ead1d2c81184_39bddac4-aff1-4108-8792-728baf1a7f09.webp?v=1714890713","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38424b99af1cdcd0950ce03cc945945fb4107cfb_f3a08595-3e1f-4d30-8f77-49eb2d5abc1a.webp?v=1714890715","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c530b4b50d23e1f467cc654d53222b007c3fb67_7afb665e-6103-4eca-b138-545d08d71c6d.webp?v=1714890718","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6b5ade4ab3f2f121ca987e7675ef5e708f9d3b6_70dfaa7d-6760-4335-962f-e29d2ee4fb7e.webp?v=1714890720","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e19d4fc7c665272ef42faeba62f062121b6c4b1f_f327acf0-9628-4969-bd7d-54f91eae774a.webp?v=1714890723","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e02ea8b4f7fcfca48056f3dd3c1fb8cfa047dae2_c48c3df4-a4b4-448b-a366-f370d884bc72.webp?v=1714890726"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a48c70e72132c6a775996fe5fe39173d76aa70f_499bc7fe-44be-4731-b401-31938b419790.webp?v=1714890701","options":["color"],"media":[{"alt":null,"id":23891129729123,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a48c70e72132c6a775996fe5fe39173d76aa70f_499bc7fe-44be-4731-b401-31938b419790.webp?v=1714890701"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a48c70e72132c6a775996fe5fe39173d76aa70f_499bc7fe-44be-4731-b401-31938b419790.webp?v=1714890701","width":2000},{"alt":null,"id":23891130777699,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e40582460642da7c872a31bd7ff9b793c96fff76_6f4f2249-9c91-4430-ab18-72802c7ed96c.webp?v=1714890704"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e40582460642da7c872a31bd7ff9b793c96fff76_6f4f2249-9c91-4430-ab18-72802c7ed96c.webp?v=1714890704","width":2000},{"alt":null,"id":23891131990115,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31ec23a5bd5978946492b24812049a46b6968947_713c6492-20a6-46cb-9b85-549a932d7586.webp?v=1714890706"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31ec23a5bd5978946492b24812049a46b6968947_713c6492-20a6-46cb-9b85-549a932d7586.webp?v=1714890706","width":2000},{"alt":null,"id":23891132907619,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e66f1af9616da3087e9d593066118e9c830fc4cd_ae889fb7-fc86-4a27-92c9-17d42b6873ee.webp?v=1714890708"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e66f1af9616da3087e9d593066118e9c830fc4cd_ae889fb7-fc86-4a27-92c9-17d42b6873ee.webp?v=1714890708","width":2000},{"alt":null,"id":23891133988963,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c54490a8b4f99c14600ed6720f882d08c6b709f8_f60cf372-e584-4fae-8519-70c2541d1594.webp?v=1714890711"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c54490a8b4f99c14600ed6720f882d08c6b709f8_f60cf372-e584-4fae-8519-70c2541d1594.webp?v=1714890711","width":2000},{"alt":null,"id":23891134709859,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1adf00e83079ba0e2a433530ac02ead1d2c81184_39bddac4-aff1-4108-8792-728baf1a7f09.webp?v=1714890713"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1adf00e83079ba0e2a433530ac02ead1d2c81184_39bddac4-aff1-4108-8792-728baf1a7f09.webp?v=1714890713","width":2000},{"alt":null,"id":23891135135843,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38424b99af1cdcd0950ce03cc945945fb4107cfb_f3a08595-3e1f-4d30-8f77-49eb2d5abc1a.webp?v=1714890715"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/38424b99af1cdcd0950ce03cc945945fb4107cfb_f3a08595-3e1f-4d30-8f77-49eb2d5abc1a.webp?v=1714890715","width":2000},{"alt":null,"id":23891135627363,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c530b4b50d23e1f467cc654d53222b007c3fb67_7afb665e-6103-4eca-b138-545d08d71c6d.webp?v=1714890718"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c530b4b50d23e1f467cc654d53222b007c3fb67_7afb665e-6103-4eca-b138-545d08d71c6d.webp?v=1714890718","width":2000},{"alt":null,"id":23891136413795,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6b5ade4ab3f2f121ca987e7675ef5e708f9d3b6_70dfaa7d-6760-4335-962f-e29d2ee4fb7e.webp?v=1714890720"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6b5ade4ab3f2f121ca987e7675ef5e708f9d3b6_70dfaa7d-6760-4335-962f-e29d2ee4fb7e.webp?v=1714890720","width":2000},{"alt":null,"id":23891137658979,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e19d4fc7c665272ef42faeba62f062121b6c4b1f_f327acf0-9628-4969-bd7d-54f91eae774a.webp?v=1714890723"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e19d4fc7c665272ef42faeba62f062121b6c4b1f_f327acf0-9628-4969-bd7d-54f91eae774a.webp?v=1714890723","width":2000},{"alt":null,"id":23891138379875,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e02ea8b4f7fcfca48056f3dd3c1fb8cfa047dae2_c48c3df4-a4b4-448b-a366-f370d884bc72.webp?v=1714890726"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e02ea8b4f7fcfca48056f3dd3c1fb8cfa047dae2_c48c3df4-a4b4-448b-a366-f370d884bc72.webp?v=1714890726","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41907486359651,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF02","requires_shipping":true,"taxable":true,"featured_image":{"id":31485797466211,"product_id":7414577070179,"position":1,"created_at":"2024-05-05T14:31:41+08:00","updated_at":"2024-05-05T14:31:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a48c70e72132c6a775996fe5fe39173d76aa70f_499bc7fe-44be-4731-b401-31938b419790.webp?v=1714890701","variant_ids":[41907486359651]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 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":"MPB0123224-AF02","featured_media":{"alt":null,"id":23891129729123,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a48c70e72132c6a775996fe5fe39173d76aa70f_499bc7fe-44be-4731-b401-31938b419790.webp?v=1714890701"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907486687331,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-AF02","requires_shipping":true,"taxable":true,"featured_image":{"id":31485803987043,"product_id":7414577070179,"position":9,"created_at":"2024-05-05T14:32:00+08:00","updated_at":"2024-05-05T14:32:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6b5ade4ab3f2f121ca987e7675ef5e708f9d3b6_70dfaa7d-6760-4335-962f-e29d2ee4fb7e.webp?v=1714890720","variant_ids":[41907486687331]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 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":"MPB01232J5-AF02","featured_media":{"alt":null,"id":23891136413795,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6b5ade4ab3f2f121ca987e7675ef5e708f9d3b6_70dfaa7d-6760-4335-962f-e29d2ee4fb7e.webp?v=1714890720"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41907486359651,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF02","requires_shipping":true,"taxable":true,"featured_image":{"id":31485797466211,"product_id":7414577070179,"position":1,"created_at":"2024-05-05T14:31:41+08:00","updated_at":"2024-05-05T14:31:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a48c70e72132c6a775996fe5fe39173d76aa70f_499bc7fe-44be-4731-b401-31938b419790.webp?v=1714890701","variant_ids":[41907486359651]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 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":"MPB0123224-AF02","featured_media":{"alt":null,"id":23891129729123,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a48c70e72132c6a775996fe5fe39173d76aa70f_499bc7fe-44be-4731-b401-31938b419790.webp?v=1714890701"}},"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: "停產" }