$product = {"id":7829067726947,"title":"iPhone 15 Plus SolidX 老高與小茉 抬頭星人系列-劍齒虎","handle":"iphone-15-plus-solidx-bumper-back-crossover-design-gao03","description":null,"published_at":"2025-07-31T09:51:20+08:00","created_at":"2025-06-30T16:00:57+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-mrandmrsgao","device-iPhone 15 Plus","merge","reseller-mrandmrsgao"],"price":125000,"price_min":125000,"price_max":125000,"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":43502811152483,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-GAO03","requires_shipping":true,"taxable":true,"featured_image":{"id":34099649183843,"product_id":7829067726947,"position":6,"created_at":"2025-06-30T16:01:04+08:00","updated_at":"2025-06-30T16:01:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74eb41b63a5e2b5bbc86d7810602ff7e888b28fd.webp?v=1751270466","variant_ids":[43502811152483]},"available":true,"name":"iPhone 15 Plus SolidX 老高與小茉 抬頭星人系列-劍齒虎 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012960B-GAO03","featured_media":{"alt":null,"id":25756231991395,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74eb41b63a5e2b5bbc86d7810602ff7e888b28fd.webp?v=1751270466"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43502816493667,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-GAO03","requires_shipping":true,"taxable":true,"featured_image":{"id":34099647152227,"product_id":7829067726947,"position":2,"created_at":"2025-06-30T16:01:02+08:00","updated_at":"2025-06-30T16:01:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40cdc15133c1acd9cfe88d84ac30b8612aaee16b.webp?v=1751270463","variant_ids":[43502816493667]},"available":true,"name":"iPhone 15 Plus SolidX 老高與小茉 抬頭星人系列-劍齒虎 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129652-GAO03","featured_media":{"alt":null,"id":25756230975587,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40cdc15133c1acd9cfe88d84ac30b8612aaee16b.webp?v=1751270463"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad5d6972d9cbfcd24b10869b624bc74f9a0695d5.webp?v=1751270463","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40cdc15133c1acd9cfe88d84ac30b8612aaee16b.webp?v=1751270463","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c2e3c09e84f5473170309404377858521093286.webp?v=1751270464","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac74041a452fb3fb7f92ab2978afc045fb993970.webp?v=1751270465","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c44a915f81753df826d75e6a9cbe6d3be897fd84.webp?v=1751270465","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74eb41b63a5e2b5bbc86d7810602ff7e888b28fd.webp?v=1751270466","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdacd84811b59a58ed7acb38e54ed1c9b836da9a.webp?v=1751270467","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1e34a5175f494b17effa59df69fb30291669708.webp?v=1751270467","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73adb1f27db6701ac56bd3e8a3e88f0597db60ff.webp?v=1751270468","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e3fa08c0d7c8057e9dc96f18fd1eb401e55ee6f.webp?v=1751270468"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad5d6972d9cbfcd24b10869b624bc74f9a0695d5.webp?v=1751270463","options":["color"],"media":[{"alt":null,"id":25756230615139,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad5d6972d9cbfcd24b10869b624bc74f9a0695d5.webp?v=1751270463"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad5d6972d9cbfcd24b10869b624bc74f9a0695d5.webp?v=1751270463","width":2000},{"alt":null,"id":25756230975587,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40cdc15133c1acd9cfe88d84ac30b8612aaee16b.webp?v=1751270463"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40cdc15133c1acd9cfe88d84ac30b8612aaee16b.webp?v=1751270463","width":2000},{"alt":null,"id":25756231270499,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c2e3c09e84f5473170309404377858521093286.webp?v=1751270464"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c2e3c09e84f5473170309404377858521093286.webp?v=1751270464","width":2000},{"alt":null,"id":25756231532643,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac74041a452fb3fb7f92ab2978afc045fb993970.webp?v=1751270465"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac74041a452fb3fb7f92ab2978afc045fb993970.webp?v=1751270465","width":2000},{"alt":null,"id":25756231794787,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c44a915f81753df826d75e6a9cbe6d3be897fd84.webp?v=1751270465"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c44a915f81753df826d75e6a9cbe6d3be897fd84.webp?v=1751270465","width":2000},{"alt":null,"id":25756231991395,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74eb41b63a5e2b5bbc86d7810602ff7e888b28fd.webp?v=1751270466"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74eb41b63a5e2b5bbc86d7810602ff7e888b28fd.webp?v=1751270466","width":2000},{"alt":null,"id":25756232188003,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdacd84811b59a58ed7acb38e54ed1c9b836da9a.webp?v=1751270467"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdacd84811b59a58ed7acb38e54ed1c9b836da9a.webp?v=1751270467","width":2000},{"alt":null,"id":25756232450147,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1e34a5175f494b17effa59df69fb30291669708.webp?v=1751270467"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1e34a5175f494b17effa59df69fb30291669708.webp?v=1751270467","width":2000},{"alt":null,"id":25756232613987,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73adb1f27db6701ac56bd3e8a3e88f0597db60ff.webp?v=1751270468"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73adb1f27db6701ac56bd3e8a3e88f0597db60ff.webp?v=1751270468","width":2000},{"alt":null,"id":25756232810595,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e3fa08c0d7c8057e9dc96f18fd1eb401e55ee6f.webp?v=1751270468"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e3fa08c0d7c8057e9dc96f18fd1eb401e55ee6f.webp?v=1751270468","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43502811152483,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-GAO03","requires_shipping":true,"taxable":true,"featured_image":{"id":34099649183843,"product_id":7829067726947,"position":6,"created_at":"2025-06-30T16:01:04+08:00","updated_at":"2025-06-30T16:01:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74eb41b63a5e2b5bbc86d7810602ff7e888b28fd.webp?v=1751270466","variant_ids":[43502811152483]},"available":true,"name":"iPhone 15 Plus SolidX 老高與小茉 抬頭星人系列-劍齒虎 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012960B-GAO03","featured_media":{"alt":null,"id":25756231991395,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74eb41b63a5e2b5bbc86d7810602ff7e888b28fd.webp?v=1751270466"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43502816493667,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-GAO03","requires_shipping":true,"taxable":true,"featured_image":{"id":34099647152227,"product_id":7829067726947,"position":2,"created_at":"2025-06-30T16:01:02+08:00","updated_at":"2025-06-30T16:01:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40cdc15133c1acd9cfe88d84ac30b8612aaee16b.webp?v=1751270463","variant_ids":[43502816493667]},"available":true,"name":"iPhone 15 Plus SolidX 老高與小茉 抬頭星人系列-劍齒虎 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129652-GAO03","featured_media":{"alt":null,"id":25756230975587,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40cdc15133c1acd9cfe88d84ac30b8612aaee16b.webp?v=1751270463"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43502811152483,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-GAO03","requires_shipping":true,"taxable":true,"featured_image":{"id":34099649183843,"product_id":7829067726947,"position":6,"created_at":"2025-06-30T16:01:04+08:00","updated_at":"2025-06-30T16:01:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74eb41b63a5e2b5bbc86d7810602ff7e888b28fd.webp?v=1751270466","variant_ids":[43502811152483]},"available":true,"name":"iPhone 15 Plus SolidX 老高與小茉 抬頭星人系列-劍齒虎 - Shell Beige","public_title":"Shell Beige","options":["Shell Beige"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012960B-GAO03","featured_media":{"alt":null,"id":25756231991395,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74eb41b63a5e2b5bbc86d7810602ff7e888b28fd.webp?v=1751270466"}},"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: "停產" }