$product = {"id":7408105422947,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-全白設計","handle":"iphone-13-pro-max-mod-nx-printable-pb103","description":null,"published_at":"2024-06-11T16:31:31+08:00","created_at":"2024-05-03T12:01:02+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 13 Pro Max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","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":41882733019235,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB103","requires_shipping":true,"taxable":true,"featured_image":{"id":31471207579747,"product_id":7408105422947,"position":8,"created_at":"2024-05-03T12:01:20+08:00","updated_at":"2024-05-03T12:01:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25779bea1eb3dc1cb303f56758a8574835bedb26_1707dc58-f34d-49b5-88ac-95752203a241.webp?v=1714708880","variant_ids":[41882733019235]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-全白設計 - 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":"NPB0123224-PB103","featured_media":{"alt":null,"id":23876112810083,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25779bea1eb3dc1cb303f56758a8574835bedb26_1707dc58-f34d-49b5-88ac-95752203a241.webp?v=1714708880"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882733314147,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB103","requires_shipping":true,"taxable":true,"featured_image":{"id":31471206695011,"product_id":7408105422947,"position":6,"created_at":"2024-05-03T12:01:15+08:00","updated_at":"2024-05-03T12:01:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccd20f5d1986c01bff65069c810c4e2aa648c799_17f98317-7e2d-4080-81ae-689691706582.webp?v=1714708876","variant_ids":[41882733314147]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-全白設計 - 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":"NPB01232J5-PB103","featured_media":{"alt":null,"id":23876111925347,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccd20f5d1986c01bff65069c810c4e2aa648c799_17f98317-7e2d-4080-81ae-689691706582.webp?v=1714708876"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be195fd73468e5359187678c7c2b71291d499ef1_3ef99e60-e615-40b5-95b0-7de4a11f707d.webp?v=1714708864","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21f2ddc331bb40ed8db35d9e55141d9125025e75_6cfd318d-af49-4460-a772-53c2d76cbb5d.webp?v=1714708866","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c52446489a9479476152455b4a8bb4c31df1265_b0992710-cf26-4833-9893-292f5473c492.webp?v=1714708869","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79c767811b9009509a7e0dd8c3c5158787261662_b79510df-0488-419b-b4d2-f4cdb7c4ee27.webp?v=1714708871","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44fe0f7c44be9cf35eef54fa8c978a21b88f4723_da7cf608-9938-4962-8df4-b65bc98d4a31.webp?v=1714708873","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccd20f5d1986c01bff65069c810c4e2aa648c799_17f98317-7e2d-4080-81ae-689691706582.webp?v=1714708876","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2017ec8301f1b8b991ebd06bd1b4a5cb174b0ae2_f46485b5-7b7c-44f4-9e00-fa6ddaae9654.webp?v=1714708878","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25779bea1eb3dc1cb303f56758a8574835bedb26_1707dc58-f34d-49b5-88ac-95752203a241.webp?v=1714708880","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e628dd56c63b660ea902b66ab9889e2440c8168e_7da6fb03-5844-4dbc-a8fe-b172c76a0c46.webp?v=1714708882","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccfd0f9f19509f73d4cca16d63fb06e1f63e2082_dcf16d2f-3afb-47b5-85f2-ce1d77992c17.webp?v=1714708885"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be195fd73468e5359187678c7c2b71291d499ef1_3ef99e60-e615-40b5-95b0-7de4a11f707d.webp?v=1714708864","options":["color"],"media":[{"alt":null,"id":23876109729891,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be195fd73468e5359187678c7c2b71291d499ef1_3ef99e60-e615-40b5-95b0-7de4a11f707d.webp?v=1714708864"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be195fd73468e5359187678c7c2b71291d499ef1_3ef99e60-e615-40b5-95b0-7de4a11f707d.webp?v=1714708864","width":2000},{"alt":null,"id":23876110188643,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21f2ddc331bb40ed8db35d9e55141d9125025e75_6cfd318d-af49-4460-a772-53c2d76cbb5d.webp?v=1714708866"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21f2ddc331bb40ed8db35d9e55141d9125025e75_6cfd318d-af49-4460-a772-53c2d76cbb5d.webp?v=1714708866","width":2000},{"alt":null,"id":23876110581859,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c52446489a9479476152455b4a8bb4c31df1265_b0992710-cf26-4833-9893-292f5473c492.webp?v=1714708869"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c52446489a9479476152455b4a8bb4c31df1265_b0992710-cf26-4833-9893-292f5473c492.webp?v=1714708869","width":2000},{"alt":null,"id":23876111106147,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79c767811b9009509a7e0dd8c3c5158787261662_b79510df-0488-419b-b4d2-f4cdb7c4ee27.webp?v=1714708871"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79c767811b9009509a7e0dd8c3c5158787261662_b79510df-0488-419b-b4d2-f4cdb7c4ee27.webp?v=1714708871","width":2000},{"alt":null,"id":23876111466595,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44fe0f7c44be9cf35eef54fa8c978a21b88f4723_da7cf608-9938-4962-8df4-b65bc98d4a31.webp?v=1714708873"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44fe0f7c44be9cf35eef54fa8c978a21b88f4723_da7cf608-9938-4962-8df4-b65bc98d4a31.webp?v=1714708873","width":2000},{"alt":null,"id":23876111925347,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccd20f5d1986c01bff65069c810c4e2aa648c799_17f98317-7e2d-4080-81ae-689691706582.webp?v=1714708876"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccd20f5d1986c01bff65069c810c4e2aa648c799_17f98317-7e2d-4080-81ae-689691706582.webp?v=1714708876","width":2000},{"alt":null,"id":23876112449635,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2017ec8301f1b8b991ebd06bd1b4a5cb174b0ae2_f46485b5-7b7c-44f4-9e00-fa6ddaae9654.webp?v=1714708878"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2017ec8301f1b8b991ebd06bd1b4a5cb174b0ae2_f46485b5-7b7c-44f4-9e00-fa6ddaae9654.webp?v=1714708878","width":2000},{"alt":null,"id":23876112810083,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25779bea1eb3dc1cb303f56758a8574835bedb26_1707dc58-f34d-49b5-88ac-95752203a241.webp?v=1714708880"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25779bea1eb3dc1cb303f56758a8574835bedb26_1707dc58-f34d-49b5-88ac-95752203a241.webp?v=1714708880","width":2000},{"alt":null,"id":23876113334371,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e628dd56c63b660ea902b66ab9889e2440c8168e_7da6fb03-5844-4dbc-a8fe-b172c76a0c46.webp?v=1714708882"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e628dd56c63b660ea902b66ab9889e2440c8168e_7da6fb03-5844-4dbc-a8fe-b172c76a0c46.webp?v=1714708882","width":2000},{"alt":null,"id":23876113563747,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccfd0f9f19509f73d4cca16d63fb06e1f63e2082_dcf16d2f-3afb-47b5-85f2-ce1d77992c17.webp?v=1714708885"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccfd0f9f19509f73d4cca16d63fb06e1f63e2082_dcf16d2f-3afb-47b5-85f2-ce1d77992c17.webp?v=1714708885","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41882733019235,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB103","requires_shipping":true,"taxable":true,"featured_image":{"id":31471207579747,"product_id":7408105422947,"position":8,"created_at":"2024-05-03T12:01:20+08:00","updated_at":"2024-05-03T12:01:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25779bea1eb3dc1cb303f56758a8574835bedb26_1707dc58-f34d-49b5-88ac-95752203a241.webp?v=1714708880","variant_ids":[41882733019235]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-全白設計 - 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":"NPB0123224-PB103","featured_media":{"alt":null,"id":23876112810083,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25779bea1eb3dc1cb303f56758a8574835bedb26_1707dc58-f34d-49b5-88ac-95752203a241.webp?v=1714708880"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882733314147,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB103","requires_shipping":true,"taxable":true,"featured_image":{"id":31471206695011,"product_id":7408105422947,"position":6,"created_at":"2024-05-03T12:01:15+08:00","updated_at":"2024-05-03T12:01:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccd20f5d1986c01bff65069c810c4e2aa648c799_17f98317-7e2d-4080-81ae-689691706582.webp?v=1714708876","variant_ids":[41882733314147]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-全白設計 - 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":"NPB01232J5-PB103","featured_media":{"alt":null,"id":23876111925347,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccd20f5d1986c01bff65069c810c4e2aa648c799_17f98317-7e2d-4080-81ae-689691706582.webp?v=1714708876"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41882733019235,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB103","requires_shipping":true,"taxable":true,"featured_image":{"id":31471207579747,"product_id":7408105422947,"position":8,"created_at":"2024-05-03T12:01:20+08:00","updated_at":"2024-05-03T12:01:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25779bea1eb3dc1cb303f56758a8574835bedb26_1707dc58-f34d-49b5-88ac-95752203a241.webp?v=1714708880","variant_ids":[41882733019235]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-全白設計 - 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":"NPB0123224-PB103","featured_media":{"alt":null,"id":23876112810083,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25779bea1eb3dc1cb303f56758a8574835bedb26_1707dc58-f34d-49b5-88ac-95752203a241.webp?v=1714708880"}},"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: "停產" }