$product = {"id":7411418562659,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 鈦戰機","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb73","description":null,"published_at":"2024-06-11T17:44:27+08:00","created_at":"2024-05-05T00:26:04+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 14 Plus","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":41898642538595,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB73","requires_shipping":true,"taxable":true,"featured_image":{"id":31480378556515,"product_id":7411418562659,"position":4,"created_at":"2024-05-05T00:26:14+08:00","updated_at":"2024-05-05T00:26:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/282d5eb20a98da89f3992ffabfb2afe4247474b3_320548fc-cc5d-452b-838c-cbb86a148fbc.webp?v=1714839974","variant_ids":[41898642538595]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 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":"MPB0126124-PB73","featured_media":{"alt":null,"id":23885630275683,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/282d5eb20a98da89f3992ffabfb2afe4247474b3_320548fc-cc5d-452b-838c-cbb86a148fbc.webp?v=1714839974"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/882063c652b26770cca9d612e6a788fcff284c9e_9839981d-6028-4424-9785-abff302895e1.webp?v=1714839966","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03fb5374bcc2764f23ef95d7dff8840e1a4cc8f0_7062a83e-7bb1-42bd-aa49-474a0f8839ce.webp?v=1714839969","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/851552e93b5940db175b087d53fe75fe888e512a_98ee5faa-2d3f-4be1-92f2-8a716cae0925.webp?v=1714839971","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/282d5eb20a98da89f3992ffabfb2afe4247474b3_320548fc-cc5d-452b-838c-cbb86a148fbc.webp?v=1714839974","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d1053092238f1e457b2886485c9faf2ef3fdc31_f5e034c7-073d-4309-a846-45cc3dfe5ea4.webp?v=1714839976","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed6088ed4346746a083eccab578d273cedad1389_71696efa-45a5-44f6-a957-ba15a0bec340.webp?v=1714839979","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9ac127e53ecc47c2a269282ecb71e9cbeae92c6_d88b5ee0-6723-45f5-b4ed-581f111a7820.webp?v=1714839981","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6531c3d5fcc3e3396f5f9229888031d4e67cfc6f_c529d8b2-801d-48c6-8d82-916a1512c3bf.webp?v=1714839983","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d33b8ac8cd526134d5fd88b8df5ce782a8eaf0b_98cd03fa-c765-4f01-9d00-095a24c3c375.webp?v=1714839986","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42d57342b95332ae5101fe907007fc29f6db68fc_738c2f93-da96-47d7-a504-864a3e28d978.webp?v=1714839988"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/882063c652b26770cca9d612e6a788fcff284c9e_9839981d-6028-4424-9785-abff302895e1.webp?v=1714839966","options":["color"],"media":[{"alt":null,"id":23885628702819,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/882063c652b26770cca9d612e6a788fcff284c9e_9839981d-6028-4424-9785-abff302895e1.webp?v=1714839966"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/882063c652b26770cca9d612e6a788fcff284c9e_9839981d-6028-4424-9785-abff302895e1.webp?v=1714839966","width":2000},{"alt":null,"id":23885629194339,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03fb5374bcc2764f23ef95d7dff8840e1a4cc8f0_7062a83e-7bb1-42bd-aa49-474a0f8839ce.webp?v=1714839969"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03fb5374bcc2764f23ef95d7dff8840e1a4cc8f0_7062a83e-7bb1-42bd-aa49-474a0f8839ce.webp?v=1714839969","width":2000},{"alt":null,"id":23885629816931,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/851552e93b5940db175b087d53fe75fe888e512a_98ee5faa-2d3f-4be1-92f2-8a716cae0925.webp?v=1714839971"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/851552e93b5940db175b087d53fe75fe888e512a_98ee5faa-2d3f-4be1-92f2-8a716cae0925.webp?v=1714839971","width":2000},{"alt":null,"id":23885630275683,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/282d5eb20a98da89f3992ffabfb2afe4247474b3_320548fc-cc5d-452b-838c-cbb86a148fbc.webp?v=1714839974"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/282d5eb20a98da89f3992ffabfb2afe4247474b3_320548fc-cc5d-452b-838c-cbb86a148fbc.webp?v=1714839974","width":2000},{"alt":null,"id":23885630701667,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d1053092238f1e457b2886485c9faf2ef3fdc31_f5e034c7-073d-4309-a846-45cc3dfe5ea4.webp?v=1714839976"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d1053092238f1e457b2886485c9faf2ef3fdc31_f5e034c7-073d-4309-a846-45cc3dfe5ea4.webp?v=1714839976","width":2000},{"alt":null,"id":23885631225955,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed6088ed4346746a083eccab578d273cedad1389_71696efa-45a5-44f6-a957-ba15a0bec340.webp?v=1714839979"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed6088ed4346746a083eccab578d273cedad1389_71696efa-45a5-44f6-a957-ba15a0bec340.webp?v=1714839979","width":2000},{"alt":null,"id":23885631750243,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9ac127e53ecc47c2a269282ecb71e9cbeae92c6_d88b5ee0-6723-45f5-b4ed-581f111a7820.webp?v=1714839981"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9ac127e53ecc47c2a269282ecb71e9cbeae92c6_d88b5ee0-6723-45f5-b4ed-581f111a7820.webp?v=1714839981","width":2000},{"alt":null,"id":23885632372835,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6531c3d5fcc3e3396f5f9229888031d4e67cfc6f_c529d8b2-801d-48c6-8d82-916a1512c3bf.webp?v=1714839983"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6531c3d5fcc3e3396f5f9229888031d4e67cfc6f_c529d8b2-801d-48c6-8d82-916a1512c3bf.webp?v=1714839983","width":2000},{"alt":null,"id":23885632831587,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d33b8ac8cd526134d5fd88b8df5ce782a8eaf0b_98cd03fa-c765-4f01-9d00-095a24c3c375.webp?v=1714839986"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d33b8ac8cd526134d5fd88b8df5ce782a8eaf0b_98cd03fa-c765-4f01-9d00-095a24c3c375.webp?v=1714839986","width":2000},{"alt":null,"id":23885633323107,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42d57342b95332ae5101fe907007fc29f6db68fc_738c2f93-da96-47d7-a504-864a3e28d978.webp?v=1714839988"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42d57342b95332ae5101fe907007fc29f6db68fc_738c2f93-da96-47d7-a504-864a3e28d978.webp?v=1714839988","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41898642538595,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB73","requires_shipping":true,"taxable":true,"featured_image":{"id":31480378556515,"product_id":7411418562659,"position":4,"created_at":"2024-05-05T00:26:14+08:00","updated_at":"2024-05-05T00:26:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/282d5eb20a98da89f3992ffabfb2afe4247474b3_320548fc-cc5d-452b-838c-cbb86a148fbc.webp?v=1714839974","variant_ids":[41898642538595]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 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":"MPB0126124-PB73","featured_media":{"alt":null,"id":23885630275683,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/282d5eb20a98da89f3992ffabfb2afe4247474b3_320548fc-cc5d-452b-838c-cbb86a148fbc.webp?v=1714839974"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41898642538595,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB73","requires_shipping":true,"taxable":true,"featured_image":{"id":31480378556515,"product_id":7411418562659,"position":4,"created_at":"2024-05-05T00:26:14+08:00","updated_at":"2024-05-05T00:26:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/282d5eb20a98da89f3992ffabfb2afe4247474b3_320548fc-cc5d-452b-838c-cbb86a148fbc.webp?v=1714839974","variant_ids":[41898642538595]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 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":"MPB0126124-PB73","featured_media":{"alt":null,"id":23885630275683,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/282d5eb20a98da89f3992ffabfb2afe4247474b3_320548fc-cc5d-452b-838c-cbb86a148fbc.webp?v=1714839974"}},"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: "停產" }