$product = {"id":7407659974755,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具1-白","handle":"iphone-14-plus-mod-nx-printable-pb10","description":null,"published_at":"2024-06-11T16:21:39+08:00","created_at":"2024-05-03T10:38:34+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":41877315158115,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31470174011491,"product_id":7407659974755,"position":9,"created_at":"2024-05-03T10:38:59+08:00","updated_at":"2024-05-03T10:38:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c51fa8a6dc4389a030a81b2a7e667b60b345036_6335b107-f60b-4d1c-8da9-344d8886f6d2.webp?v=1714703939","variant_ids":[41877315158115]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具1-白 - 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-PB10","featured_media":{"alt":null,"id":23875076948067,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c51fa8a6dc4389a030a81b2a7e667b60b345036_6335b107-f60b-4d1c-8da9-344d8886f6d2.webp?v=1714703939"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f55cb6fc29c64e72376afc79414a22e3628f0806_6944d2ea-50c5-4936-bfed-2150239dc2c0.webp?v=1714703917","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a249ffc0d12230af750bf982d861bc62745df2ab_951d495f-34a1-43d5-9805-9bd9118e139b.webp?v=1714703920","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ecd85f2aa01aa65dd89b150d1d292e333745528_f4fd2aae-728c-473e-aea8-36e3257f5848.webp?v=1714703922","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/932dad1ab8deec2b98291338e0ac75eeef37cbf1_ccd2e942-c5db-415e-8816-aa8518e27a45.webp?v=1714703925","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1c6f737e362e2f6a7f374eb77efed0f40807c65_46b65ae4-201f-46a2-baa1-b756c27ac9c1.webp?v=1714703928","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7820b7d09aaa3f753348953ad32ebfdd9c706a5_adb04ccc-1762-4b1a-886d-38af6ed3c2b8.webp?v=1714703931","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b55d2859f5bd47874485d69d38ae25950e78beef_f06e1fd0-87df-43c1-ae4a-251d5803b856.webp?v=1714703934","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b9397072c29bcdd2fc367575212b4786b8d9aff_c4057277-48b0-473a-b127-e4573f330319.webp?v=1714703937","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c51fa8a6dc4389a030a81b2a7e667b60b345036_6335b107-f60b-4d1c-8da9-344d8886f6d2.webp?v=1714703939","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c453838e3d097d5fe4fd6e866926d95099d50532_c885ec8c-5dbb-4ff7-95a5-be944d59c141.webp?v=1714703942"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f55cb6fc29c64e72376afc79414a22e3628f0806_6944d2ea-50c5-4936-bfed-2150239dc2c0.webp?v=1714703917","options":["color"],"media":[{"alt":null,"id":23875071836259,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f55cb6fc29c64e72376afc79414a22e3628f0806_6944d2ea-50c5-4936-bfed-2150239dc2c0.webp?v=1714703917"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f55cb6fc29c64e72376afc79414a22e3628f0806_6944d2ea-50c5-4936-bfed-2150239dc2c0.webp?v=1714703917","width":2000},{"alt":null,"id":23875072524387,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a249ffc0d12230af750bf982d861bc62745df2ab_951d495f-34a1-43d5-9805-9bd9118e139b.webp?v=1714703920"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a249ffc0d12230af750bf982d861bc62745df2ab_951d495f-34a1-43d5-9805-9bd9118e139b.webp?v=1714703920","width":2000},{"alt":null,"id":23875073114211,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ecd85f2aa01aa65dd89b150d1d292e333745528_f4fd2aae-728c-473e-aea8-36e3257f5848.webp?v=1714703922"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ecd85f2aa01aa65dd89b150d1d292e333745528_f4fd2aae-728c-473e-aea8-36e3257f5848.webp?v=1714703922","width":2000},{"alt":null,"id":23875073802339,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/932dad1ab8deec2b98291338e0ac75eeef37cbf1_ccd2e942-c5db-415e-8816-aa8518e27a45.webp?v=1714703925"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/932dad1ab8deec2b98291338e0ac75eeef37cbf1_ccd2e942-c5db-415e-8816-aa8518e27a45.webp?v=1714703925","width":2000},{"alt":null,"id":23875074457699,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1c6f737e362e2f6a7f374eb77efed0f40807c65_46b65ae4-201f-46a2-baa1-b756c27ac9c1.webp?v=1714703928"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1c6f737e362e2f6a7f374eb77efed0f40807c65_46b65ae4-201f-46a2-baa1-b756c27ac9c1.webp?v=1714703928","width":2000},{"alt":null,"id":23875075244131,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7820b7d09aaa3f753348953ad32ebfdd9c706a5_adb04ccc-1762-4b1a-886d-38af6ed3c2b8.webp?v=1714703931"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7820b7d09aaa3f753348953ad32ebfdd9c706a5_adb04ccc-1762-4b1a-886d-38af6ed3c2b8.webp?v=1714703931","width":2000},{"alt":null,"id":23875075801187,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b55d2859f5bd47874485d69d38ae25950e78beef_f06e1fd0-87df-43c1-ae4a-251d5803b856.webp?v=1714703934"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b55d2859f5bd47874485d69d38ae25950e78beef_f06e1fd0-87df-43c1-ae4a-251d5803b856.webp?v=1714703934","width":2000},{"alt":null,"id":23875076489315,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b9397072c29bcdd2fc367575212b4786b8d9aff_c4057277-48b0-473a-b127-e4573f330319.webp?v=1714703937"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b9397072c29bcdd2fc367575212b4786b8d9aff_c4057277-48b0-473a-b127-e4573f330319.webp?v=1714703937","width":2000},{"alt":null,"id":23875076948067,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c51fa8a6dc4389a030a81b2a7e667b60b345036_6335b107-f60b-4d1c-8da9-344d8886f6d2.webp?v=1714703939"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c51fa8a6dc4389a030a81b2a7e667b60b345036_6335b107-f60b-4d1c-8da9-344d8886f6d2.webp?v=1714703939","width":2000},{"alt":null,"id":23875077374051,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c453838e3d097d5fe4fd6e866926d95099d50532_c885ec8c-5dbb-4ff7-95a5-be944d59c141.webp?v=1714703942"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c453838e3d097d5fe4fd6e866926d95099d50532_c885ec8c-5dbb-4ff7-95a5-be944d59c141.webp?v=1714703942","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41877315158115,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31470174011491,"product_id":7407659974755,"position":9,"created_at":"2024-05-03T10:38:59+08:00","updated_at":"2024-05-03T10:38:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c51fa8a6dc4389a030a81b2a7e667b60b345036_6335b107-f60b-4d1c-8da9-344d8886f6d2.webp?v=1714703939","variant_ids":[41877315158115]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具1-白 - 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-PB10","featured_media":{"alt":null,"id":23875076948067,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c51fa8a6dc4389a030a81b2a7e667b60b345036_6335b107-f60b-4d1c-8da9-344d8886f6d2.webp?v=1714703939"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41877315158115,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31470174011491,"product_id":7407659974755,"position":9,"created_at":"2024-05-03T10:38:59+08:00","updated_at":"2024-05-03T10:38:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c51fa8a6dc4389a030a81b2a7e667b60b345036_6335b107-f60b-4d1c-8da9-344d8886f6d2.webp?v=1714703939","variant_ids":[41877315158115]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具1-白 - 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-PB10","featured_media":{"alt":null,"id":23875076948067,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c51fa8a6dc4389a030a81b2a7e667b60b345036_6335b107-f60b-4d1c-8da9-344d8886f6d2.webp?v=1714703939"}},"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: "停產" }