$product = {"id":7408107782243,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 波巴費特-推推-幽默系列","handle":"iphone-13-pro-max-mod-nx-printable-pc08","description":null,"published_at":"2024-06-11T16:31:35+08:00","created_at":"2024-05-03T12:01:33+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":41882761166947,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31471211249763,"product_id":7408107782243,"position":1,"created_at":"2024-05-03T12:01:36+08:00","updated_at":"2024-05-03T12:01:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f5950df72c7b290f6d8a955b0727f7cd31217eb_7e86ffd4-3eeb-4a2c-9025-077b3d576834.webp?v=1714708896","variant_ids":[41882761166947]},"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-PC08","featured_media":{"alt":null,"id":23876116480099,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f5950df72c7b290f6d8a955b0727f7cd31217eb_7e86ffd4-3eeb-4a2c-9025-077b3d576834.webp?v=1714708896"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882761461859,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31471214493795,"product_id":7408107782243,"position":8,"created_at":"2024-05-03T12:01:51+08:00","updated_at":"2024-05-03T12:01:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6aa96156adf5d5a41dd2bd5041ab93ccdb65ed14_c4438228-5efb-4f4e-89a3-6dff55dd791f.webp?v=1714708911","variant_ids":[41882761461859]},"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-PC08","featured_media":{"alt":null,"id":23876119756899,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6aa96156adf5d5a41dd2bd5041ab93ccdb65ed14_c4438228-5efb-4f4e-89a3-6dff55dd791f.webp?v=1714708911"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f5950df72c7b290f6d8a955b0727f7cd31217eb_7e86ffd4-3eeb-4a2c-9025-077b3d576834.webp?v=1714708896","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d0f6328d3032c7af609e602a836e2f40daefcee_9576851e-0869-4bb8-bdf6-523d6f3ac701.webp?v=1714708898","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffbb21428c7c82944e976f753f59f9410d26fe41_2311373f-a334-468e-86b6-6876fd3c8b99.webp?v=1714708900","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/014353fbfdf7f0f39de76489f136222530fd8526_aca33abb-c88c-4fc0-82de-4940c67fe6c2.webp?v=1714708902","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc66c9ee32c9016262f31fc7f799e76ff4e9159c_c48526b6-06a6-43db-90c8-76febd8ad4f1.webp?v=1714708904","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a54af580242e5aa22ec32293bd047d9590f5813_62ee0109-2ebd-4c0d-9c1f-8b9a40b49a7d.webp?v=1714708907","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd60670ef6f3994ef5ff07c2575397e247359902_7f18454c-160f-4325-8465-12ea56fcf16d.webp?v=1714708909","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6aa96156adf5d5a41dd2bd5041ab93ccdb65ed14_c4438228-5efb-4f4e-89a3-6dff55dd791f.webp?v=1714708911","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24533d00be0a47f35d341fe38ebe28bc1c4df879_f3759562-021b-4bf0-a892-dbb92faa94df.webp?v=1714708914","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51babe965ab1ce4239a999f05165686e1d686cd1_d53d76ef-4f7c-45b3-bdc6-af375c30b027.webp?v=1714708916"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f5950df72c7b290f6d8a955b0727f7cd31217eb_7e86ffd4-3eeb-4a2c-9025-077b3d576834.webp?v=1714708896","options":["color"],"media":[{"alt":null,"id":23876116480099,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f5950df72c7b290f6d8a955b0727f7cd31217eb_7e86ffd4-3eeb-4a2c-9025-077b3d576834.webp?v=1714708896"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f5950df72c7b290f6d8a955b0727f7cd31217eb_7e86ffd4-3eeb-4a2c-9025-077b3d576834.webp?v=1714708896","width":2000},{"alt":null,"id":23876116938851,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d0f6328d3032c7af609e602a836e2f40daefcee_9576851e-0869-4bb8-bdf6-523d6f3ac701.webp?v=1714708898"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d0f6328d3032c7af609e602a836e2f40daefcee_9576851e-0869-4bb8-bdf6-523d6f3ac701.webp?v=1714708898","width":2000},{"alt":null,"id":23876117430371,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffbb21428c7c82944e976f753f59f9410d26fe41_2311373f-a334-468e-86b6-6876fd3c8b99.webp?v=1714708900"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffbb21428c7c82944e976f753f59f9410d26fe41_2311373f-a334-468e-86b6-6876fd3c8b99.webp?v=1714708900","width":2000},{"alt":null,"id":23876117856355,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/014353fbfdf7f0f39de76489f136222530fd8526_aca33abb-c88c-4fc0-82de-4940c67fe6c2.webp?v=1714708902"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/014353fbfdf7f0f39de76489f136222530fd8526_aca33abb-c88c-4fc0-82de-4940c67fe6c2.webp?v=1714708902","width":2000},{"alt":null,"id":23876118216803,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc66c9ee32c9016262f31fc7f799e76ff4e9159c_c48526b6-06a6-43db-90c8-76febd8ad4f1.webp?v=1714708904"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc66c9ee32c9016262f31fc7f799e76ff4e9159c_c48526b6-06a6-43db-90c8-76febd8ad4f1.webp?v=1714708904","width":2000},{"alt":null,"id":23876118708323,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a54af580242e5aa22ec32293bd047d9590f5813_62ee0109-2ebd-4c0d-9c1f-8b9a40b49a7d.webp?v=1714708907"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a54af580242e5aa22ec32293bd047d9590f5813_62ee0109-2ebd-4c0d-9c1f-8b9a40b49a7d.webp?v=1714708907","width":2000},{"alt":null,"id":23876119298147,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd60670ef6f3994ef5ff07c2575397e247359902_7f18454c-160f-4325-8465-12ea56fcf16d.webp?v=1714708909"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd60670ef6f3994ef5ff07c2575397e247359902_7f18454c-160f-4325-8465-12ea56fcf16d.webp?v=1714708909","width":2000},{"alt":null,"id":23876119756899,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6aa96156adf5d5a41dd2bd5041ab93ccdb65ed14_c4438228-5efb-4f4e-89a3-6dff55dd791f.webp?v=1714708911"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6aa96156adf5d5a41dd2bd5041ab93ccdb65ed14_c4438228-5efb-4f4e-89a3-6dff55dd791f.webp?v=1714708911","width":2000},{"alt":null,"id":23876120150115,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24533d00be0a47f35d341fe38ebe28bc1c4df879_f3759562-021b-4bf0-a892-dbb92faa94df.webp?v=1714708914"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24533d00be0a47f35d341fe38ebe28bc1c4df879_f3759562-021b-4bf0-a892-dbb92faa94df.webp?v=1714708914","width":2000},{"alt":null,"id":23876120641635,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51babe965ab1ce4239a999f05165686e1d686cd1_d53d76ef-4f7c-45b3-bdc6-af375c30b027.webp?v=1714708916"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51babe965ab1ce4239a999f05165686e1d686cd1_d53d76ef-4f7c-45b3-bdc6-af375c30b027.webp?v=1714708916","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41882761166947,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31471211249763,"product_id":7408107782243,"position":1,"created_at":"2024-05-03T12:01:36+08:00","updated_at":"2024-05-03T12:01:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f5950df72c7b290f6d8a955b0727f7cd31217eb_7e86ffd4-3eeb-4a2c-9025-077b3d576834.webp?v=1714708896","variant_ids":[41882761166947]},"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-PC08","featured_media":{"alt":null,"id":23876116480099,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f5950df72c7b290f6d8a955b0727f7cd31217eb_7e86ffd4-3eeb-4a2c-9025-077b3d576834.webp?v=1714708896"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882761461859,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31471214493795,"product_id":7408107782243,"position":8,"created_at":"2024-05-03T12:01:51+08:00","updated_at":"2024-05-03T12:01:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6aa96156adf5d5a41dd2bd5041ab93ccdb65ed14_c4438228-5efb-4f4e-89a3-6dff55dd791f.webp?v=1714708911","variant_ids":[41882761461859]},"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-PC08","featured_media":{"alt":null,"id":23876119756899,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6aa96156adf5d5a41dd2bd5041ab93ccdb65ed14_c4438228-5efb-4f4e-89a3-6dff55dd791f.webp?v=1714708911"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41882761166947,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31471211249763,"product_id":7408107782243,"position":1,"created_at":"2024-05-03T12:01:36+08:00","updated_at":"2024-05-03T12:01:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f5950df72c7b290f6d8a955b0727f7cd31217eb_7e86ffd4-3eeb-4a2c-9025-077b3d576834.webp?v=1714708896","variant_ids":[41882761166947]},"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-PC08","featured_media":{"alt":null,"id":23876116480099,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f5950df72c7b290f6d8a955b0727f7cd31217eb_7e86ffd4-3eeb-4a2c-9025-077b3d576834.webp?v=1714708896"}},"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: "停產" }