$product = {"id":7407929458787,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列","handle":"iphone-14-plus-mod-nx-printable-pb47","description":null,"published_at":"2024-06-11T16:26:49+08:00","created_at":"2024-05-03T11:17:58+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":41880667095139,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB47","requires_shipping":true,"taxable":true,"featured_image":{"id":31470726086755,"product_id":7407929458787,"position":1,"created_at":"2024-05-03T11:18:05+08:00","updated_at":"2024-05-03T11:18:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35960d75160f3addb372e8d67ab46b6fa2d6b82a_8df1e98f-d672-4819-8d97-387e81a2f0ca.webp?v=1714706285","variant_ids":[41880667095139]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列 - 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-PB47","featured_media":{"alt":null,"id":23875630202979,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35960d75160f3addb372e8d67ab46b6fa2d6b82a_8df1e98f-d672-4819-8d97-387e81a2f0ca.webp?v=1714706285"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35960d75160f3addb372e8d67ab46b6fa2d6b82a_8df1e98f-d672-4819-8d97-387e81a2f0ca.webp?v=1714706285","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8678bb47defade3db925b91b932ed704596dfc9_8ecb9621-ca64-4328-93db-b196ff258c8d.webp?v=1714706287","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57815117321ac0a6736d1d0aefb6a4621f655396_bb259ef9-9b99-4002-a6ce-f15cfbc015bf.webp?v=1714706290","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2013bcd784ece07f6a8d2aa88a6aafef042c345d_33c53160-5dd2-4844-a79a-7bcd068f661d.webp?v=1714706292","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d7e8e6912ff113570a4c751c2fccdcec795ea88_bda2a85d-4d41-4fe6-8c82-5e2b2cbbde26.webp?v=1714706294","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a56f27134d064d959a7a2e70d77a62780f420bc_a409bbdd-8935-45a7-873c-b6c3f5079289.webp?v=1714706296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed55d56dd52cff519c387bd480bbc1583059f3fa_cad563ea-f102-45bf-bc33-fdb976fe40ba.webp?v=1714706298","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbd14952e481b6c2adb4fc53f050ff17b9e9acc4_542a30cd-ee0a-4c8d-af03-6b8f29af7f86.webp?v=1714706301","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c718a038594a31423a72daadd9355cced893991_adf94147-2210-4c7d-9368-653ae7096c37.webp?v=1714706303","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0140e8225ff052b40d37ef341480127702219088_a744060f-36e9-468c-9e1e-ba1f231ec83b.webp?v=1714706305"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35960d75160f3addb372e8d67ab46b6fa2d6b82a_8df1e98f-d672-4819-8d97-387e81a2f0ca.webp?v=1714706285","options":["color"],"media":[{"alt":null,"id":23875630202979,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35960d75160f3addb372e8d67ab46b6fa2d6b82a_8df1e98f-d672-4819-8d97-387e81a2f0ca.webp?v=1714706285"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35960d75160f3addb372e8d67ab46b6fa2d6b82a_8df1e98f-d672-4819-8d97-387e81a2f0ca.webp?v=1714706285","width":2000},{"alt":null,"id":23875630596195,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8678bb47defade3db925b91b932ed704596dfc9_8ecb9621-ca64-4328-93db-b196ff258c8d.webp?v=1714706287"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8678bb47defade3db925b91b932ed704596dfc9_8ecb9621-ca64-4328-93db-b196ff258c8d.webp?v=1714706287","width":2000},{"alt":null,"id":23875631087715,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57815117321ac0a6736d1d0aefb6a4621f655396_bb259ef9-9b99-4002-a6ce-f15cfbc015bf.webp?v=1714706290"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57815117321ac0a6736d1d0aefb6a4621f655396_bb259ef9-9b99-4002-a6ce-f15cfbc015bf.webp?v=1714706290","width":2000},{"alt":null,"id":23875631579235,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2013bcd784ece07f6a8d2aa88a6aafef042c345d_33c53160-5dd2-4844-a79a-7bcd068f661d.webp?v=1714706292"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2013bcd784ece07f6a8d2aa88a6aafef042c345d_33c53160-5dd2-4844-a79a-7bcd068f661d.webp?v=1714706292","width":2000},{"alt":null,"id":23875632037987,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d7e8e6912ff113570a4c751c2fccdcec795ea88_bda2a85d-4d41-4fe6-8c82-5e2b2cbbde26.webp?v=1714706294"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d7e8e6912ff113570a4c751c2fccdcec795ea88_bda2a85d-4d41-4fe6-8c82-5e2b2cbbde26.webp?v=1714706294","width":2000},{"alt":null,"id":23875632562275,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a56f27134d064d959a7a2e70d77a62780f420bc_a409bbdd-8935-45a7-873c-b6c3f5079289.webp?v=1714706296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a56f27134d064d959a7a2e70d77a62780f420bc_a409bbdd-8935-45a7-873c-b6c3f5079289.webp?v=1714706296","width":2000},{"alt":null,"id":23875632889955,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed55d56dd52cff519c387bd480bbc1583059f3fa_cad563ea-f102-45bf-bc33-fdb976fe40ba.webp?v=1714706298"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed55d56dd52cff519c387bd480bbc1583059f3fa_cad563ea-f102-45bf-bc33-fdb976fe40ba.webp?v=1714706298","width":2000},{"alt":null,"id":23875633381475,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbd14952e481b6c2adb4fc53f050ff17b9e9acc4_542a30cd-ee0a-4c8d-af03-6b8f29af7f86.webp?v=1714706301"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbd14952e481b6c2adb4fc53f050ff17b9e9acc4_542a30cd-ee0a-4c8d-af03-6b8f29af7f86.webp?v=1714706301","width":2000},{"alt":null,"id":23875633872995,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c718a038594a31423a72daadd9355cced893991_adf94147-2210-4c7d-9368-653ae7096c37.webp?v=1714706303"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c718a038594a31423a72daadd9355cced893991_adf94147-2210-4c7d-9368-653ae7096c37.webp?v=1714706303","width":2000},{"alt":null,"id":23875634397283,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0140e8225ff052b40d37ef341480127702219088_a744060f-36e9-468c-9e1e-ba1f231ec83b.webp?v=1714706305"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0140e8225ff052b40d37ef341480127702219088_a744060f-36e9-468c-9e1e-ba1f231ec83b.webp?v=1714706305","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41880667095139,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB47","requires_shipping":true,"taxable":true,"featured_image":{"id":31470726086755,"product_id":7407929458787,"position":1,"created_at":"2024-05-03T11:18:05+08:00","updated_at":"2024-05-03T11:18:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35960d75160f3addb372e8d67ab46b6fa2d6b82a_8df1e98f-d672-4819-8d97-387e81a2f0ca.webp?v=1714706285","variant_ids":[41880667095139]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列 - 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-PB47","featured_media":{"alt":null,"id":23875630202979,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35960d75160f3addb372e8d67ab46b6fa2d6b82a_8df1e98f-d672-4819-8d97-387e81a2f0ca.webp?v=1714706285"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41880667095139,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB47","requires_shipping":true,"taxable":true,"featured_image":{"id":31470726086755,"product_id":7407929458787,"position":1,"created_at":"2024-05-03T11:18:05+08:00","updated_at":"2024-05-03T11:18:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35960d75160f3addb372e8d67ab46b6fa2d6b82a_8df1e98f-d672-4819-8d97-387e81a2f0ca.webp?v=1714706285","variant_ids":[41880667095139]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列 - 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-PB47","featured_media":{"alt":null,"id":23875630202979,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35960d75160f3addb372e8d67ab46b6fa2d6b82a_8df1e98f-d672-4819-8d97-387e81a2f0ca.webp?v=1714706285"}},"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: "停產" }