$product = {"id":7408494346339,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星球大戰-貼紙系列","handle":"iphone-12-pro-max-mod-nx-printable-pb98","description":null,"published_at":"2024-06-11T16:38:49+08:00","created_at":"2024-05-03T15:37:40+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 12 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":41886118084707,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB98","requires_shipping":true,"taxable":true,"featured_image":{"id":31472423829603,"product_id":7408494346339,"position":8,"created_at":"2024-05-03T15:38:00+08:00","updated_at":"2024-05-03T15:38:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8f3e075684ed48104e7546ca420bd123b2e9d4a_7293db44-8920-4ca3-aa35-b29d99818437.webp?v=1714721880","variant_ids":[41886118084707]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 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":"NPB0118724-PB98","featured_media":{"alt":null,"id":23877340758115,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8f3e075684ed48104e7546ca420bd123b2e9d4a_7293db44-8920-4ca3-aa35-b29d99818437.webp?v=1714721880"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84e964eb44ed172487e93ef02ff2d96ea7799a3b_3ff2ddc2-be81-4fe5-a0f9-681fd6541c70.webp?v=1714721862","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e951f59b1a518467a48a3fead6e0a3f15ab88c65_621207d6-d412-4c34-9b40-2107933be244.webp?v=1714721865","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cea69ca66ee7d31cdec928750c2dbbb40d37f72e_51d207ad-07b5-4606-b150-d5b5f859a53a.webp?v=1714721868","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6106a50a7e75ed790540bb31afad10f3e49a881_95752a29-6fdb-4a1b-b266-8b57aea9ae2a.webp?v=1714721870","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4439563a9e978f4c9fa836500f5e4e2925abf75_11f666aa-647e-4be0-b219-5e167fcced2d.webp?v=1714721872","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6e67d0050351d5c7ece612e5c25d26c6c3b924e_b469b245-b2bc-40cd-b3a6-2f4e5c3b65fb.webp?v=1714721875","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5963e119eb897d2b7aae5b2e5e311fe32191adff_4e8ea1ab-ac43-4beb-abfb-38d8716a6e3b.webp?v=1714721878","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8f3e075684ed48104e7546ca420bd123b2e9d4a_7293db44-8920-4ca3-aa35-b29d99818437.webp?v=1714721880","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dbc51cc70f11019744c5650077e33e1c1403a75_3e0fbd03-1951-4819-9ac9-54cc720a31a4.webp?v=1714721883","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8434f974b5a395fc00fb7194a86cec38c55ca85_e58f92a6-da2c-4f51-9bb1-332933fe14f9.webp?v=1714721886"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84e964eb44ed172487e93ef02ff2d96ea7799a3b_3ff2ddc2-be81-4fe5-a0f9-681fd6541c70.webp?v=1714721862","options":["color"],"media":[{"alt":null,"id":23877336531043,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84e964eb44ed172487e93ef02ff2d96ea7799a3b_3ff2ddc2-be81-4fe5-a0f9-681fd6541c70.webp?v=1714721862"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84e964eb44ed172487e93ef02ff2d96ea7799a3b_3ff2ddc2-be81-4fe5-a0f9-681fd6541c70.webp?v=1714721862","width":2000},{"alt":null,"id":23877337186403,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e951f59b1a518467a48a3fead6e0a3f15ab88c65_621207d6-d412-4c34-9b40-2107933be244.webp?v=1714721865"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e951f59b1a518467a48a3fead6e0a3f15ab88c65_621207d6-d412-4c34-9b40-2107933be244.webp?v=1714721865","width":2000},{"alt":null,"id":23877337743459,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cea69ca66ee7d31cdec928750c2dbbb40d37f72e_51d207ad-07b5-4606-b150-d5b5f859a53a.webp?v=1714721868"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cea69ca66ee7d31cdec928750c2dbbb40d37f72e_51d207ad-07b5-4606-b150-d5b5f859a53a.webp?v=1714721868","width":2000},{"alt":null,"id":23877338398819,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6106a50a7e75ed790540bb31afad10f3e49a881_95752a29-6fdb-4a1b-b266-8b57aea9ae2a.webp?v=1714721870"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6106a50a7e75ed790540bb31afad10f3e49a881_95752a29-6fdb-4a1b-b266-8b57aea9ae2a.webp?v=1714721870","width":2000},{"alt":null,"id":23877339021411,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4439563a9e978f4c9fa836500f5e4e2925abf75_11f666aa-647e-4be0-b219-5e167fcced2d.webp?v=1714721872"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4439563a9e978f4c9fa836500f5e4e2925abf75_11f666aa-647e-4be0-b219-5e167fcced2d.webp?v=1714721872","width":2000},{"alt":null,"id":23877339611235,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6e67d0050351d5c7ece612e5c25d26c6c3b924e_b469b245-b2bc-40cd-b3a6-2f4e5c3b65fb.webp?v=1714721875"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6e67d0050351d5c7ece612e5c25d26c6c3b924e_b469b245-b2bc-40cd-b3a6-2f4e5c3b65fb.webp?v=1714721875","width":2000},{"alt":null,"id":23877340168291,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5963e119eb897d2b7aae5b2e5e311fe32191adff_4e8ea1ab-ac43-4beb-abfb-38d8716a6e3b.webp?v=1714721878"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5963e119eb897d2b7aae5b2e5e311fe32191adff_4e8ea1ab-ac43-4beb-abfb-38d8716a6e3b.webp?v=1714721878","width":2000},{"alt":null,"id":23877340758115,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8f3e075684ed48104e7546ca420bd123b2e9d4a_7293db44-8920-4ca3-aa35-b29d99818437.webp?v=1714721880"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8f3e075684ed48104e7546ca420bd123b2e9d4a_7293db44-8920-4ca3-aa35-b29d99818437.webp?v=1714721880","width":2000},{"alt":null,"id":23877341380707,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dbc51cc70f11019744c5650077e33e1c1403a75_3e0fbd03-1951-4819-9ac9-54cc720a31a4.webp?v=1714721883"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0dbc51cc70f11019744c5650077e33e1c1403a75_3e0fbd03-1951-4819-9ac9-54cc720a31a4.webp?v=1714721883","width":2000},{"alt":null,"id":23877341937763,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8434f974b5a395fc00fb7194a86cec38c55ca85_e58f92a6-da2c-4f51-9bb1-332933fe14f9.webp?v=1714721886"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8434f974b5a395fc00fb7194a86cec38c55ca85_e58f92a6-da2c-4f51-9bb1-332933fe14f9.webp?v=1714721886","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886118084707,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB98","requires_shipping":true,"taxable":true,"featured_image":{"id":31472423829603,"product_id":7408494346339,"position":8,"created_at":"2024-05-03T15:38:00+08:00","updated_at":"2024-05-03T15:38:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8f3e075684ed48104e7546ca420bd123b2e9d4a_7293db44-8920-4ca3-aa35-b29d99818437.webp?v=1714721880","variant_ids":[41886118084707]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 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":"NPB0118724-PB98","featured_media":{"alt":null,"id":23877340758115,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8f3e075684ed48104e7546ca420bd123b2e9d4a_7293db44-8920-4ca3-aa35-b29d99818437.webp?v=1714721880"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886118084707,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB98","requires_shipping":true,"taxable":true,"featured_image":{"id":31472423829603,"product_id":7408494346339,"position":8,"created_at":"2024-05-03T15:38:00+08:00","updated_at":"2024-05-03T15:38:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8f3e075684ed48104e7546ca420bd123b2e9d4a_7293db44-8920-4ca3-aa35-b29d99818437.webp?v=1714721880","variant_ids":[41886118084707]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 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":"NPB0118724-PB98","featured_media":{"alt":null,"id":23877340758115,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8f3e075684ed48104e7546ca420bd123b2e9d4a_7293db44-8920-4ca3-aa35-b29d99818437.webp?v=1714721880"}},"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: "停產" }