$product = {"id":7414367289443,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 鈦戰機-線條白","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb18","description":null,"published_at":"2024-06-11T17:50:57+08:00","created_at":"2024-05-05T14:23:17+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","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":41905991352419,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31485272260707,"product_id":7414367289443,"position":3,"created_at":"2024-05-05T14:23:24+08:00","updated_at":"2024-05-05T14:23:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5409753ef59f437f78e2d0ba05d5f1ebeb78fed_e1d6541c-2f73-49ba-8db3-bdb1b7cb660f.webp?v=1714890204","variant_ids":[41905991352419]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 鈦戰機-線條白 - 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-PB18","featured_media":{"alt":null,"id":23890588237923,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5409753ef59f437f78e2d0ba05d5f1ebeb78fed_e1d6541c-2f73-49ba-8db3-bdb1b7cb660f.webp?v=1714890204"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905992007779,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31485275045987,"product_id":7414367289443,"position":4,"created_at":"2024-05-05T14:23:26+08:00","updated_at":"2024-05-05T14:23:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5ffdfab27ec8842a09e3898d72b7e39f8d617d8_62338160-6a53-43ab-b10f-08e784517b34.webp?v=1714890207","variant_ids":[41905992007779]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 鈦戰機-線條白 - 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-PB18","featured_media":{"alt":null,"id":23890591088739,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5ffdfab27ec8842a09e3898d72b7e39f8d617d8_62338160-6a53-43ab-b10f-08e784517b34.webp?v=1714890207"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6be42a365f821456c5ee97630a7941d16361e975_4d380215-9e87-4fed-9e93-62f594042d61.webp?v=1714890200","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf569b7a5e9dd9d9246686650cf926d2dae8acf0_73141db1-b1d9-4617-9815-14975ff2754c.webp?v=1714890202","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5409753ef59f437f78e2d0ba05d5f1ebeb78fed_e1d6541c-2f73-49ba-8db3-bdb1b7cb660f.webp?v=1714890204","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5ffdfab27ec8842a09e3898d72b7e39f8d617d8_62338160-6a53-43ab-b10f-08e784517b34.webp?v=1714890207","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daf01d767bffa290f4f483d0c1dc168be06c613b_7063d045-c2a6-49f6-badb-ef5e31d46ed5.webp?v=1714890209","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ca42d490d9730a3368103cb722542a7797a6b7a_77d5e28e-bac7-4d0b-8799-b26fa48da7b2.webp?v=1714890211","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dd52547c18c55d88cf893cb5a1f2278b66cbf4f_c238db80-a816-49c7-84ed-e135385c6d24.webp?v=1714890213","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5169e53792dd87059f51294fc158d19b8a9796f_36ae47bf-7a12-4182-8ca1-149e6fae362e.webp?v=1714890216","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce5882e1e927c7df5a8ada601b75ed4ed014d42d_c07658af-63bd-495a-9b0f-a9024c91325a.webp?v=1714890218","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67b0c820b2b482f9365cd25969f531d1eb4e587f_98b0f351-c84b-49bd-95db-5f13dad4472e.webp?v=1714890220","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3524adf894b992efa14a85210cd49c15baadb46b_52e26f92-cbba-4b79-b5d0-8d4af978d6a8.webp?v=1714890222"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6be42a365f821456c5ee97630a7941d16361e975_4d380215-9e87-4fed-9e93-62f594042d61.webp?v=1714890200","options":["color"],"media":[{"alt":null,"id":23890582863971,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6be42a365f821456c5ee97630a7941d16361e975_4d380215-9e87-4fed-9e93-62f594042d61.webp?v=1714890200"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6be42a365f821456c5ee97630a7941d16361e975_4d380215-9e87-4fed-9e93-62f594042d61.webp?v=1714890200","width":2000},{"alt":null,"id":23890585583715,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf569b7a5e9dd9d9246686650cf926d2dae8acf0_73141db1-b1d9-4617-9815-14975ff2754c.webp?v=1714890202"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf569b7a5e9dd9d9246686650cf926d2dae8acf0_73141db1-b1d9-4617-9815-14975ff2754c.webp?v=1714890202","width":2000},{"alt":null,"id":23890588237923,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5409753ef59f437f78e2d0ba05d5f1ebeb78fed_e1d6541c-2f73-49ba-8db3-bdb1b7cb660f.webp?v=1714890204"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5409753ef59f437f78e2d0ba05d5f1ebeb78fed_e1d6541c-2f73-49ba-8db3-bdb1b7cb660f.webp?v=1714890204","width":2000},{"alt":null,"id":23890591088739,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5ffdfab27ec8842a09e3898d72b7e39f8d617d8_62338160-6a53-43ab-b10f-08e784517b34.webp?v=1714890207"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5ffdfab27ec8842a09e3898d72b7e39f8d617d8_62338160-6a53-43ab-b10f-08e784517b34.webp?v=1714890207","width":2000},{"alt":null,"id":23890593808483,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daf01d767bffa290f4f483d0c1dc168be06c613b_7063d045-c2a6-49f6-badb-ef5e31d46ed5.webp?v=1714890209"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daf01d767bffa290f4f483d0c1dc168be06c613b_7063d045-c2a6-49f6-badb-ef5e31d46ed5.webp?v=1714890209","width":2000},{"alt":null,"id":23890596528227,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ca42d490d9730a3368103cb722542a7797a6b7a_77d5e28e-bac7-4d0b-8799-b26fa48da7b2.webp?v=1714890211"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ca42d490d9730a3368103cb722542a7797a6b7a_77d5e28e-bac7-4d0b-8799-b26fa48da7b2.webp?v=1714890211","width":2000},{"alt":null,"id":23890599444579,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dd52547c18c55d88cf893cb5a1f2278b66cbf4f_c238db80-a816-49c7-84ed-e135385c6d24.webp?v=1714890213"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dd52547c18c55d88cf893cb5a1f2278b66cbf4f_c238db80-a816-49c7-84ed-e135385c6d24.webp?v=1714890213","width":2000},{"alt":null,"id":23890602229859,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5169e53792dd87059f51294fc158d19b8a9796f_36ae47bf-7a12-4182-8ca1-149e6fae362e.webp?v=1714890216"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5169e53792dd87059f51294fc158d19b8a9796f_36ae47bf-7a12-4182-8ca1-149e6fae362e.webp?v=1714890216","width":2000},{"alt":null,"id":23890604687459,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce5882e1e927c7df5a8ada601b75ed4ed014d42d_c07658af-63bd-495a-9b0f-a9024c91325a.webp?v=1714890218"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce5882e1e927c7df5a8ada601b75ed4ed014d42d_c07658af-63bd-495a-9b0f-a9024c91325a.webp?v=1714890218","width":2000},{"alt":null,"id":23890607505507,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67b0c820b2b482f9365cd25969f531d1eb4e587f_98b0f351-c84b-49bd-95db-5f13dad4472e.webp?v=1714890220"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67b0c820b2b482f9365cd25969f531d1eb4e587f_98b0f351-c84b-49bd-95db-5f13dad4472e.webp?v=1714890220","width":2000},{"alt":null,"id":23890610585699,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3524adf894b992efa14a85210cd49c15baadb46b_52e26f92-cbba-4b79-b5d0-8d4af978d6a8.webp?v=1714890222"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3524adf894b992efa14a85210cd49c15baadb46b_52e26f92-cbba-4b79-b5d0-8d4af978d6a8.webp?v=1714890222","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41905991352419,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31485272260707,"product_id":7414367289443,"position":3,"created_at":"2024-05-05T14:23:24+08:00","updated_at":"2024-05-05T14:23:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5409753ef59f437f78e2d0ba05d5f1ebeb78fed_e1d6541c-2f73-49ba-8db3-bdb1b7cb660f.webp?v=1714890204","variant_ids":[41905991352419]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 鈦戰機-線條白 - 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-PB18","featured_media":{"alt":null,"id":23890588237923,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5409753ef59f437f78e2d0ba05d5f1ebeb78fed_e1d6541c-2f73-49ba-8db3-bdb1b7cb660f.webp?v=1714890204"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905992007779,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31485275045987,"product_id":7414367289443,"position":4,"created_at":"2024-05-05T14:23:26+08:00","updated_at":"2024-05-05T14:23:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5ffdfab27ec8842a09e3898d72b7e39f8d617d8_62338160-6a53-43ab-b10f-08e784517b34.webp?v=1714890207","variant_ids":[41905992007779]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 鈦戰機-線條白 - 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-PB18","featured_media":{"alt":null,"id":23890591088739,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5ffdfab27ec8842a09e3898d72b7e39f8d617d8_62338160-6a53-43ab-b10f-08e784517b34.webp?v=1714890207"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41905991352419,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31485272260707,"product_id":7414367289443,"position":3,"created_at":"2024-05-05T14:23:24+08:00","updated_at":"2024-05-05T14:23:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5409753ef59f437f78e2d0ba05d5f1ebeb78fed_e1d6541c-2f73-49ba-8db3-bdb1b7cb660f.webp?v=1714890204","variant_ids":[41905991352419]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 鈦戰機-線條白 - 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-PB18","featured_media":{"alt":null,"id":23890588237923,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5409753ef59f437f78e2d0ba05d5f1ebeb78fed_e1d6541c-2f73-49ba-8db3-bdb1b7cb660f.webp?v=1714890204"}},"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: "停產" }