$product = {"id":7411293421667,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - ATAT-日文字系列","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb66","description":null,"published_at":"2024-06-11T17:41:02+08:00","created_at":"2024-05-05T00:01:37+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 14 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"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":41897061875811,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB66","requires_shipping":true,"taxable":true,"featured_image":{"id":31480064311395,"product_id":7411293421667,"position":3,"created_at":"2024-05-05T00:01:43+08:00","updated_at":"2024-05-05T00:01:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f15590cf95120ab52a24d4e11f5ba60ef0a0e49_310a1596-6f9a-4cc8-8736-241008c1a54f.webp?v=1714838503","variant_ids":[41897061875811]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - ATAT-日文字系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-PB66","featured_media":{"alt":null,"id":23885314981987,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f15590cf95120ab52a24d4e11f5ba60ef0a0e49_310a1596-6f9a-4cc8-8736-241008c1a54f.webp?v=1714838503"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27e9f8d43eaecb48d7ac703200060044e16a02ad_37cd6d6e-f3f3-4b1b-8e85-9b73a9a7d91c.webp?v=1714838499","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0c4671176e9fc2bbec87dd9186866222cdbba57_63637380-1839-474f-a11d-087ecc67c4b5.webp?v=1714838501","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f15590cf95120ab52a24d4e11f5ba60ef0a0e49_310a1596-6f9a-4cc8-8736-241008c1a54f.webp?v=1714838503","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0795bb0ae0ef29859acd8777783159accd8c14cb_9bdfd958-485b-4f83-99c4-dc0c1f6b3a55.webp?v=1714838506","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfcc14e7d1236e92199b2ca5f37e269202063b2c_e409c013-d1a6-4dc8-8edd-8d109b427d1d.webp?v=1714838508","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/772cb060dfbffc421afa471d683a1b51fbb06280_d59c5170-8b54-4444-b46c-810f8e3eec6c.webp?v=1714838511","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/935fe340c38b5c178b1d31f565d9b6de93f50c48_d009ca12-b7db-4c58-9ac7-47aa42ccb75b.webp?v=1714838513","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71c702fc8b9cc51ed22287015964449cdc4d462d_9e2b8940-0cf2-47f6-9a28-d917cb1f5eb4.webp?v=1714838515","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07f982d432007e16cd33d2dd13cfec1203923187_23616830-ed2f-485d-8dde-0001ab91daee.webp?v=1714838518","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04005709bd1f70178331455db32fbe5741c1ee0d_5cde3723-6d06-4219-8320-af532a012334.webp?v=1714838520"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27e9f8d43eaecb48d7ac703200060044e16a02ad_37cd6d6e-f3f3-4b1b-8e85-9b73a9a7d91c.webp?v=1714838499","options":["color"],"media":[{"alt":null,"id":23885313933411,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27e9f8d43eaecb48d7ac703200060044e16a02ad_37cd6d6e-f3f3-4b1b-8e85-9b73a9a7d91c.webp?v=1714838499"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27e9f8d43eaecb48d7ac703200060044e16a02ad_37cd6d6e-f3f3-4b1b-8e85-9b73a9a7d91c.webp?v=1714838499","width":2000},{"alt":null,"id":23885314621539,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0c4671176e9fc2bbec87dd9186866222cdbba57_63637380-1839-474f-a11d-087ecc67c4b5.webp?v=1714838501"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0c4671176e9fc2bbec87dd9186866222cdbba57_63637380-1839-474f-a11d-087ecc67c4b5.webp?v=1714838501","width":2000},{"alt":null,"id":23885314981987,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f15590cf95120ab52a24d4e11f5ba60ef0a0e49_310a1596-6f9a-4cc8-8736-241008c1a54f.webp?v=1714838503"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f15590cf95120ab52a24d4e11f5ba60ef0a0e49_310a1596-6f9a-4cc8-8736-241008c1a54f.webp?v=1714838503","width":2000},{"alt":null,"id":23885315539043,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0795bb0ae0ef29859acd8777783159accd8c14cb_9bdfd958-485b-4f83-99c4-dc0c1f6b3a55.webp?v=1714838506"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0795bb0ae0ef29859acd8777783159accd8c14cb_9bdfd958-485b-4f83-99c4-dc0c1f6b3a55.webp?v=1714838506","width":2000},{"alt":null,"id":23885316096099,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfcc14e7d1236e92199b2ca5f37e269202063b2c_e409c013-d1a6-4dc8-8edd-8d109b427d1d.webp?v=1714838508"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfcc14e7d1236e92199b2ca5f37e269202063b2c_e409c013-d1a6-4dc8-8edd-8d109b427d1d.webp?v=1714838508","width":2000},{"alt":null,"id":23885316554851,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/772cb060dfbffc421afa471d683a1b51fbb06280_d59c5170-8b54-4444-b46c-810f8e3eec6c.webp?v=1714838511"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/772cb060dfbffc421afa471d683a1b51fbb06280_d59c5170-8b54-4444-b46c-810f8e3eec6c.webp?v=1714838511","width":2000},{"alt":null,"id":23885317210211,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/935fe340c38b5c178b1d31f565d9b6de93f50c48_d009ca12-b7db-4c58-9ac7-47aa42ccb75b.webp?v=1714838513"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/935fe340c38b5c178b1d31f565d9b6de93f50c48_d009ca12-b7db-4c58-9ac7-47aa42ccb75b.webp?v=1714838513","width":2000},{"alt":null,"id":23885317603427,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71c702fc8b9cc51ed22287015964449cdc4d462d_9e2b8940-0cf2-47f6-9a28-d917cb1f5eb4.webp?v=1714838515"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71c702fc8b9cc51ed22287015964449cdc4d462d_9e2b8940-0cf2-47f6-9a28-d917cb1f5eb4.webp?v=1714838515","width":2000},{"alt":null,"id":23885318127715,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07f982d432007e16cd33d2dd13cfec1203923187_23616830-ed2f-485d-8dde-0001ab91daee.webp?v=1714838518"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07f982d432007e16cd33d2dd13cfec1203923187_23616830-ed2f-485d-8dde-0001ab91daee.webp?v=1714838518","width":2000},{"alt":null,"id":23885318717539,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04005709bd1f70178331455db32fbe5741c1ee0d_5cde3723-6d06-4219-8320-af532a012334.webp?v=1714838520"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04005709bd1f70178331455db32fbe5741c1ee0d_5cde3723-6d06-4219-8320-af532a012334.webp?v=1714838520","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41897061875811,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB66","requires_shipping":true,"taxable":true,"featured_image":{"id":31480064311395,"product_id":7411293421667,"position":3,"created_at":"2024-05-05T00:01:43+08:00","updated_at":"2024-05-05T00:01:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f15590cf95120ab52a24d4e11f5ba60ef0a0e49_310a1596-6f9a-4cc8-8736-241008c1a54f.webp?v=1714838503","variant_ids":[41897061875811]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - ATAT-日文字系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-PB66","featured_media":{"alt":null,"id":23885314981987,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f15590cf95120ab52a24d4e11f5ba60ef0a0e49_310a1596-6f9a-4cc8-8736-241008c1a54f.webp?v=1714838503"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897061875811,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB66","requires_shipping":true,"taxable":true,"featured_image":{"id":31480064311395,"product_id":7411293421667,"position":3,"created_at":"2024-05-05T00:01:43+08:00","updated_at":"2024-05-05T00:01:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f15590cf95120ab52a24d4e11f5ba60ef0a0e49_310a1596-6f9a-4cc8-8736-241008c1a54f.webp?v=1714838503","variant_ids":[41897061875811]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - ATAT-日文字系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-PB66","featured_media":{"alt":null,"id":23885314981987,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f15590cf95120ab52a24d4e11f5ba60ef0a0e49_310a1596-6f9a-4cc8-8736-241008c1a54f.webp?v=1714838503"}},"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: "停產" }