$product = {"id":7407922675811,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 死星-線稿風格","handle":"iphone-14-plus-mod-nx-printable-pb75","description":null,"published_at":"2024-06-11T16:26:38+08:00","created_at":"2024-05-03T11:16:30+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 14 Plus","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":41880567775331,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB75","requires_shipping":true,"taxable":true,"featured_image":{"id":31470709637219,"product_id":7407922675811,"position":5,"created_at":"2024-05-03T11:16:43+08:00","updated_at":"2024-05-03T11:16:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b075644e65a2d2a7ac96b2fd9d3e84523ade2674_0c3eb1f8-1c27-451e-902c-c2540a5d41bc.webp?v=1714706203","variant_ids":[41880567775331]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126124-PB75","featured_media":{"alt":null,"id":23875613753443,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b075644e65a2d2a7ac96b2fd9d3e84523ade2674_0c3eb1f8-1c27-451e-902c-c2540a5d41bc.webp?v=1714706203"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd5d04ef8b292fd6c3103f35f1bd609625b9487a_36ee7989-bdf7-46e8-9a9a-dd754f0d56f6.webp?v=1714706193","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa54c815ada7852bee104cd421f15862e5164d1d_592436b6-ba95-4122-bb4e-0a6a215184e1.webp?v=1714706195","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15b65c771ddf9fe2cc187f87721f0a83637c8565_45801295-8447-4b25-9e6d-3cb91465827d.webp?v=1714706198","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb2de4e5e093ca03b34200a08cd343b9e3db297f_605b3dea-5c0d-4dfd-ac9f-42886e0b775c.webp?v=1714706200","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b075644e65a2d2a7ac96b2fd9d3e84523ade2674_0c3eb1f8-1c27-451e-902c-c2540a5d41bc.webp?v=1714706203","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abf6972afd16b7bf6d661f5646088ec0d34b33e3_4093363b-7959-45fb-bfcf-186df2abb0ef.webp?v=1714706205","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ee3bb4fc357ff4d251ecff729e5c2e4d1d2d2b9_83e2d0dc-bbad-4650-ac36-5ce309d605f8.webp?v=1714706207","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ea5e780c8a4b581fc8b03c4c2ce5d5bee7a2bd0_90982e4a-6731-46f7-933c-29d516d7d94b.webp?v=1714706210","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b53a0a23dddd5cd75bb50452ae6ca940f469183a_3b6cdad4-eabc-4753-90ac-13bc61053ce3.webp?v=1714706212","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba9a41eba1fa00e3df742863e9c593b46992c9e8_02af3d17-ff73-4bd4-9337-5a308fddfe1c.webp?v=1714706215"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd5d04ef8b292fd6c3103f35f1bd609625b9487a_36ee7989-bdf7-46e8-9a9a-dd754f0d56f6.webp?v=1714706193","options":["color"],"media":[{"alt":null,"id":23875609952355,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd5d04ef8b292fd6c3103f35f1bd609625b9487a_36ee7989-bdf7-46e8-9a9a-dd754f0d56f6.webp?v=1714706193"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd5d04ef8b292fd6c3103f35f1bd609625b9487a_36ee7989-bdf7-46e8-9a9a-dd754f0d56f6.webp?v=1714706193","width":2000},{"alt":null,"id":23875610411107,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa54c815ada7852bee104cd421f15862e5164d1d_592436b6-ba95-4122-bb4e-0a6a215184e1.webp?v=1714706195"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa54c815ada7852bee104cd421f15862e5164d1d_592436b6-ba95-4122-bb4e-0a6a215184e1.webp?v=1714706195","width":2000},{"alt":null,"id":23875610902627,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15b65c771ddf9fe2cc187f87721f0a83637c8565_45801295-8447-4b25-9e6d-3cb91465827d.webp?v=1714706198"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15b65c771ddf9fe2cc187f87721f0a83637c8565_45801295-8447-4b25-9e6d-3cb91465827d.webp?v=1714706198","width":2000},{"alt":null,"id":23875613098083,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb2de4e5e093ca03b34200a08cd343b9e3db297f_605b3dea-5c0d-4dfd-ac9f-42886e0b775c.webp?v=1714706200"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb2de4e5e093ca03b34200a08cd343b9e3db297f_605b3dea-5c0d-4dfd-ac9f-42886e0b775c.webp?v=1714706200","width":2000},{"alt":null,"id":23875613753443,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b075644e65a2d2a7ac96b2fd9d3e84523ade2674_0c3eb1f8-1c27-451e-902c-c2540a5d41bc.webp?v=1714706203"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b075644e65a2d2a7ac96b2fd9d3e84523ade2674_0c3eb1f8-1c27-451e-902c-c2540a5d41bc.webp?v=1714706203","width":2000},{"alt":null,"id":23875614179427,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abf6972afd16b7bf6d661f5646088ec0d34b33e3_4093363b-7959-45fb-bfcf-186df2abb0ef.webp?v=1714706205"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abf6972afd16b7bf6d661f5646088ec0d34b33e3_4093363b-7959-45fb-bfcf-186df2abb0ef.webp?v=1714706205","width":2000},{"alt":null,"id":23875614670947,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ee3bb4fc357ff4d251ecff729e5c2e4d1d2d2b9_83e2d0dc-bbad-4650-ac36-5ce309d605f8.webp?v=1714706207"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ee3bb4fc357ff4d251ecff729e5c2e4d1d2d2b9_83e2d0dc-bbad-4650-ac36-5ce309d605f8.webp?v=1714706207","width":2000},{"alt":null,"id":23875615129699,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ea5e780c8a4b581fc8b03c4c2ce5d5bee7a2bd0_90982e4a-6731-46f7-933c-29d516d7d94b.webp?v=1714706210"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ea5e780c8a4b581fc8b03c4c2ce5d5bee7a2bd0_90982e4a-6731-46f7-933c-29d516d7d94b.webp?v=1714706210","width":2000},{"alt":null,"id":23875615752291,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b53a0a23dddd5cd75bb50452ae6ca940f469183a_3b6cdad4-eabc-4753-90ac-13bc61053ce3.webp?v=1714706212"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b53a0a23dddd5cd75bb50452ae6ca940f469183a_3b6cdad4-eabc-4753-90ac-13bc61053ce3.webp?v=1714706212","width":2000},{"alt":null,"id":23875616178275,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba9a41eba1fa00e3df742863e9c593b46992c9e8_02af3d17-ff73-4bd4-9337-5a308fddfe1c.webp?v=1714706215"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba9a41eba1fa00e3df742863e9c593b46992c9e8_02af3d17-ff73-4bd4-9337-5a308fddfe1c.webp?v=1714706215","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41880567775331,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB75","requires_shipping":true,"taxable":true,"featured_image":{"id":31470709637219,"product_id":7407922675811,"position":5,"created_at":"2024-05-03T11:16:43+08:00","updated_at":"2024-05-03T11:16:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b075644e65a2d2a7ac96b2fd9d3e84523ade2674_0c3eb1f8-1c27-451e-902c-c2540a5d41bc.webp?v=1714706203","variant_ids":[41880567775331]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126124-PB75","featured_media":{"alt":null,"id":23875613753443,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b075644e65a2d2a7ac96b2fd9d3e84523ade2674_0c3eb1f8-1c27-451e-902c-c2540a5d41bc.webp?v=1714706203"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41880567775331,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB75","requires_shipping":true,"taxable":true,"featured_image":{"id":31470709637219,"product_id":7407922675811,"position":5,"created_at":"2024-05-03T11:16:43+08:00","updated_at":"2024-05-03T11:16:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b075644e65a2d2a7ac96b2fd9d3e84523ade2674_0c3eb1f8-1c27-451e-902c-c2540a5d41bc.webp?v=1714706203","variant_ids":[41880567775331]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126124-PB75","featured_media":{"alt":null,"id":23875613753443,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b075644e65a2d2a7ac96b2fd9d3e84523ade2674_0c3eb1f8-1c27-451e-902c-c2540a5d41bc.webp?v=1714706203"}},"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: "停產" }