$product = {"id":7366368690275,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 華納兄弟百年慶典 Warner Bros 100th Anniversary - Mashup系列 - 湯姆貓與傑利鼠大冒險","handle":"iphone-xs-max-mod-nx-printable-sz05","description":null,"published_at":"2024-06-11T16:12:43+08:00","created_at":"2024-04-23T10:46:28+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-華納兄弟百年慶典 Warner Bros 100th Anniversary","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-warnerbros100","device-iPhone XS Max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-warnerbros100","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41788985573475,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-SZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31383042293859,"product_id":7366368690275,"position":5,"created_at":"2024-04-23T10:46:43+08:00","updated_at":"2024-04-23T10:46:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a113135e4162e54e0e26da35487ce07abe16001_bece1f8c-89d6-49f8-91de-b8b17025deaf.webp?v=1713840403","variant_ids":[41788985573475]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 華納兄弟百年慶典 Warner Bros 100th Anniversary - Mashup系列 - 湯姆貓與傑利鼠大冒險 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-SZ05","featured_media":{"alt":null,"id":23785255600227,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a113135e4162e54e0e26da35487ce07abe16001_bece1f8c-89d6-49f8-91de-b8b17025deaf.webp?v=1713840403"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf8e948c2aa50ae61731c6c1b863f5b76a259496_ef7f1c82-c37a-4d7d-a757-bc64ef8fecfe.webp?v=1713840390","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7ffb8803ed93e9f18a9f3c9d8bbf7fe81408607_55458313-fade-4d4f-b68d-98781f7ef856.webp?v=1713840393","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9617807c20c4d84c6f0db00ff830c5501cd1fb80_c353efb3-1ecf-42a5-b3a7-77abb87626e8.webp?v=1713840398","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28f7e69067fd380305b8fbbf8b3703cf706ab3cb_0a8004d2-a493-44fd-95fc-8e59cf65898f.webp?v=1713840400","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a113135e4162e54e0e26da35487ce07abe16001_bece1f8c-89d6-49f8-91de-b8b17025deaf.webp?v=1713840403","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/510484e65f95b4046bb48fa95f7153b26ff1238c_79e22c6f-dac5-4ce7-88fd-e179136389f3.webp?v=1713840405","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d80c40f92c3765bca02d3ac370c4353ad18b9698_9245c317-686e-4b64-82f1-dd01b2d03bb7.webp?v=1713840408","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/888e828d3fe2d60cbe5c2733effe93d1042ed8e7_dff69ad3-ab3a-4458-8de4-5f7a6f8372e8.webp?v=1713840410","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2f48f8cc9622937f0d0f0ca8b8cfd8c71fb6f1e_3c12982f-6977-482c-8f9a-3103d3c7f48f.webp?v=1713840413"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf8e948c2aa50ae61731c6c1b863f5b76a259496_ef7f1c82-c37a-4d7d-a757-bc64ef8fecfe.webp?v=1713840390","options":["color"],"media":[{"alt":null,"id":23785252257891,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf8e948c2aa50ae61731c6c1b863f5b76a259496_ef7f1c82-c37a-4d7d-a757-bc64ef8fecfe.webp?v=1713840390"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf8e948c2aa50ae61731c6c1b863f5b76a259496_ef7f1c82-c37a-4d7d-a757-bc64ef8fecfe.webp?v=1713840390","width":2000},{"alt":null,"id":23785252946019,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7ffb8803ed93e9f18a9f3c9d8bbf7fe81408607_55458313-fade-4d4f-b68d-98781f7ef856.webp?v=1713840393"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7ffb8803ed93e9f18a9f3c9d8bbf7fe81408607_55458313-fade-4d4f-b68d-98781f7ef856.webp?v=1713840393","width":2000},{"alt":null,"id":23785254223971,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9617807c20c4d84c6f0db00ff830c5501cd1fb80_c353efb3-1ecf-42a5-b3a7-77abb87626e8.webp?v=1713840398"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9617807c20c4d84c6f0db00ff830c5501cd1fb80_c353efb3-1ecf-42a5-b3a7-77abb87626e8.webp?v=1713840398","width":2000},{"alt":null,"id":23785255043171,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28f7e69067fd380305b8fbbf8b3703cf706ab3cb_0a8004d2-a493-44fd-95fc-8e59cf65898f.webp?v=1713840400"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28f7e69067fd380305b8fbbf8b3703cf706ab3cb_0a8004d2-a493-44fd-95fc-8e59cf65898f.webp?v=1713840400","width":2000},{"alt":null,"id":23785255600227,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a113135e4162e54e0e26da35487ce07abe16001_bece1f8c-89d6-49f8-91de-b8b17025deaf.webp?v=1713840403"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a113135e4162e54e0e26da35487ce07abe16001_bece1f8c-89d6-49f8-91de-b8b17025deaf.webp?v=1713840403","width":2000},{"alt":null,"id":23785256583267,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/510484e65f95b4046bb48fa95f7153b26ff1238c_79e22c6f-dac5-4ce7-88fd-e179136389f3.webp?v=1713840405"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/510484e65f95b4046bb48fa95f7153b26ff1238c_79e22c6f-dac5-4ce7-88fd-e179136389f3.webp?v=1713840405","width":2000},{"alt":null,"id":23785257173091,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d80c40f92c3765bca02d3ac370c4353ad18b9698_9245c317-686e-4b64-82f1-dd01b2d03bb7.webp?v=1713840408"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d80c40f92c3765bca02d3ac370c4353ad18b9698_9245c317-686e-4b64-82f1-dd01b2d03bb7.webp?v=1713840408","width":2000},{"alt":null,"id":23785257730147,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/888e828d3fe2d60cbe5c2733effe93d1042ed8e7_dff69ad3-ab3a-4458-8de4-5f7a6f8372e8.webp?v=1713840410"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/888e828d3fe2d60cbe5c2733effe93d1042ed8e7_dff69ad3-ab3a-4458-8de4-5f7a6f8372e8.webp?v=1713840410","width":2000},{"alt":null,"id":23785259401315,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2f48f8cc9622937f0d0f0ca8b8cfd8c71fb6f1e_3c12982f-6977-482c-8f9a-3103d3c7f48f.webp?v=1713840413"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2f48f8cc9622937f0d0f0ca8b8cfd8c71fb6f1e_3c12982f-6977-482c-8f9a-3103d3c7f48f.webp?v=1713840413","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41788985573475,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-SZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31383042293859,"product_id":7366368690275,"position":5,"created_at":"2024-04-23T10:46:43+08:00","updated_at":"2024-04-23T10:46:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a113135e4162e54e0e26da35487ce07abe16001_bece1f8c-89d6-49f8-91de-b8b17025deaf.webp?v=1713840403","variant_ids":[41788985573475]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 華納兄弟百年慶典 Warner Bros 100th Anniversary - Mashup系列 - 湯姆貓與傑利鼠大冒險 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-SZ05","featured_media":{"alt":null,"id":23785255600227,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a113135e4162e54e0e26da35487ce07abe16001_bece1f8c-89d6-49f8-91de-b8b17025deaf.webp?v=1713840403"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41788985573475,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-SZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31383042293859,"product_id":7366368690275,"position":5,"created_at":"2024-04-23T10:46:43+08:00","updated_at":"2024-04-23T10:46:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a113135e4162e54e0e26da35487ce07abe16001_bece1f8c-89d6-49f8-91de-b8b17025deaf.webp?v=1713840403","variant_ids":[41788985573475]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 華納兄弟百年慶典 Warner Bros 100th Anniversary - Mashup系列 - 湯姆貓與傑利鼠大冒險 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-SZ05","featured_media":{"alt":null,"id":23785255600227,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a113135e4162e54e0e26da35487ce07abe16001_bece1f8c-89d6-49f8-91de-b8b17025deaf.webp?v=1713840403"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }