$product = {"id":7824138862691,"title":"iPhone 15 Pro SolidX 方坊 Square Studio 樂樂登場","handle":"iphone-15-pro-solidx-rk14","description":null,"published_at":"2025-07-01T18:32:28+08:00","created_at":"2025-06-20T17:10:10+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-squarestudio","device-iPhone 15 Pro","merge","reseller-squarestudio"],"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":43476255440995,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129752-RK14","requires_shipping":true,"taxable":true,"featured_image":{"id":34187355750499,"product_id":7824138862691,"position":4,"created_at":"2025-07-15T17:33:56+08:00","updated_at":"2025-07-15T17:33:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/651f28e735daf6eb5327ad4d942f3f4402bcdd39.webp?v=1752572038","variant_ids":[43476255440995]},"available":true,"name":"iPhone 15 Pro SolidX 方坊 Square Studio 樂樂登場 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129752-RK14","featured_media":{"alt":null,"id":25822728945763,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/651f28e735daf6eb5327ad4d942f3f4402bcdd39.webp?v=1752572038"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43476259209315,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"NST012970A-RK14","requires_shipping":true,"taxable":true,"featured_image":{"id":34187358896227,"product_id":7824138862691,"position":8,"created_at":"2025-07-15T17:33:58+08:00","updated_at":"2025-07-15T17:34:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31d2e34d676d1da18af78a1f5a0cb9b469c5edba.webp?v=1752572040","variant_ids":[43476259209315]},"available":true,"name":"iPhone 15 Pro SolidX 方坊 Square Studio 樂樂登場 - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012970A-RK14","featured_media":{"alt":null,"id":25822730289251,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31d2e34d676d1da18af78a1f5a0cb9b469c5edba.webp?v=1752572040"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43476259242083,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129753-RK14","requires_shipping":true,"taxable":true,"featured_image":{"id":34187361321059,"product_id":7824138862691,"position":12,"created_at":"2025-07-15T17:34:00+08:00","updated_at":"2025-07-15T17:34:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1bef9ee91fc3b97fdb60c188bfed49d0822ed7b.webp?v=1752572042","variant_ids":[43476259242083]},"available":true,"name":"iPhone 15 Pro SolidX 方坊 Square Studio 樂樂登場 - White","public_title":"White","options":["White"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129753-RK14","featured_media":{"alt":null,"id":25822731796579,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1bef9ee91fc3b97fdb60c188bfed49d0822ed7b.webp?v=1752572042"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43476259274851,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012970B-RK14","requires_shipping":true,"taxable":true,"featured_image":{"id":34187354996835,"product_id":7824138862691,"position":3,"created_at":"2025-07-15T17:33:55+08:00","updated_at":"2025-07-15T17:33:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d665a8e0cecb797e0f538b07f4b0be40282b320a.webp?v=1752572037","variant_ids":[43476259274851]},"available":true,"name":"iPhone 15 Pro SolidX 方坊 Square Studio 樂樂登場 - 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":"NST012970B-RK14","featured_media":{"alt":null,"id":25822728585315,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d665a8e0cecb797e0f538b07f4b0be40282b320a.webp?v=1752572037"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43476259307619,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"NST01297Z8-RK14","requires_shipping":true,"taxable":true,"featured_image":{"id":34187356897379,"product_id":7824138862691,"position":6,"created_at":"2025-07-15T17:33:57+08:00","updated_at":"2025-07-15T17:33:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e63722a77672a086cbbfd2169e07869e3f73fa1.webp?v=1752572039","variant_ids":[43476259307619]},"available":true,"name":"iPhone 15 Pro SolidX 方坊 Square Studio 樂樂登場 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01297Z8-RK14","featured_media":{"alt":null,"id":25822729568355,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e63722a77672a086cbbfd2169e07869e3f73fa1.webp?v=1752572039"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-297-RK14_888221b3-d7f2-498d-9466-4b457c59a17d.png?v=1750410612","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-RK14_0dc1d5f3-26ee-40c5-856e-09490870ec22.png?v=1750824618","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d665a8e0cecb797e0f538b07f4b0be40282b320a.webp?v=1752572037","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/651f28e735daf6eb5327ad4d942f3f4402bcdd39.webp?v=1752572038","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/737e06ee25dfbe0805fc563c431ae6b0b9882908.webp?v=1752572038","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e63722a77672a086cbbfd2169e07869e3f73fa1.webp?v=1752572039","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3004c366253633bb6ee9dcf4429d8ce91eedead.webp?v=1752572039","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31d2e34d676d1da18af78a1f5a0cb9b469c5edba.webp?v=1752572040","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dadfb50df4f8013789644c1318ba1428588973d2.webp?v=1752572040","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f54be1b136cfc209858623a211e9c56a200f4e7.webp?v=1752572041","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e0d3662a11770cd724a075d7a4c4d85c543ab23.webp?v=1752572041","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1bef9ee91fc3b97fdb60c188bfed49d0822ed7b.webp?v=1752572042"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-297-RK14_888221b3-d7f2-498d-9466-4b457c59a17d.png?v=1750410612","options":["color"],"media":[{"alt":null,"id":25721669582947,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-297-RK14_888221b3-d7f2-498d-9466-4b457c59a17d.png?v=1750410612"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-297-RK14_888221b3-d7f2-498d-9466-4b457c59a17d.png?v=1750410612","width":2000},{"alt":null,"id":25735672758371,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-RK14_0dc1d5f3-26ee-40c5-856e-09490870ec22.png?v=1750824618"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-RK14_0dc1d5f3-26ee-40c5-856e-09490870ec22.png?v=1750824618","width":2000},{"alt":null,"id":25822728585315,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d665a8e0cecb797e0f538b07f4b0be40282b320a.webp?v=1752572037"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d665a8e0cecb797e0f538b07f4b0be40282b320a.webp?v=1752572037","width":2000},{"alt":null,"id":25822728945763,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/651f28e735daf6eb5327ad4d942f3f4402bcdd39.webp?v=1752572038"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/651f28e735daf6eb5327ad4d942f3f4402bcdd39.webp?v=1752572038","width":2000},{"alt":null,"id":25822729240675,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/737e06ee25dfbe0805fc563c431ae6b0b9882908.webp?v=1752572038"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/737e06ee25dfbe0805fc563c431ae6b0b9882908.webp?v=1752572038","width":2000},{"alt":null,"id":25822729568355,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e63722a77672a086cbbfd2169e07869e3f73fa1.webp?v=1752572039"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e63722a77672a086cbbfd2169e07869e3f73fa1.webp?v=1752572039","width":2000},{"alt":null,"id":25822729928803,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3004c366253633bb6ee9dcf4429d8ce91eedead.webp?v=1752572039"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3004c366253633bb6ee9dcf4429d8ce91eedead.webp?v=1752572039","width":2000},{"alt":null,"id":25822730289251,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31d2e34d676d1da18af78a1f5a0cb9b469c5edba.webp?v=1752572040"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31d2e34d676d1da18af78a1f5a0cb9b469c5edba.webp?v=1752572040","width":2000},{"alt":null,"id":25822730649699,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dadfb50df4f8013789644c1318ba1428588973d2.webp?v=1752572040"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dadfb50df4f8013789644c1318ba1428588973d2.webp?v=1752572040","width":2000},{"alt":null,"id":25822731042915,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f54be1b136cfc209858623a211e9c56a200f4e7.webp?v=1752572041"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f54be1b136cfc209858623a211e9c56a200f4e7.webp?v=1752572041","width":2000},{"alt":null,"id":25822731370595,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e0d3662a11770cd724a075d7a4c4d85c543ab23.webp?v=1752572041"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e0d3662a11770cd724a075d7a4c4d85c543ab23.webp?v=1752572041","width":2000},{"alt":null,"id":25822731796579,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1bef9ee91fc3b97fdb60c188bfed49d0822ed7b.webp?v=1752572042"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1bef9ee91fc3b97fdb60c188bfed49d0822ed7b.webp?v=1752572042","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43476255440995,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129752-RK14","requires_shipping":true,"taxable":true,"featured_image":{"id":34187355750499,"product_id":7824138862691,"position":4,"created_at":"2025-07-15T17:33:56+08:00","updated_at":"2025-07-15T17:33:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/651f28e735daf6eb5327ad4d942f3f4402bcdd39.webp?v=1752572038","variant_ids":[43476255440995]},"available":true,"name":"iPhone 15 Pro SolidX 方坊 Square Studio 樂樂登場 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129752-RK14","featured_media":{"alt":null,"id":25822728945763,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/651f28e735daf6eb5327ad4d942f3f4402bcdd39.webp?v=1752572038"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43476259209315,"title":"Ocean Blue","option1":"Ocean Blue","option2":null,"option3":null,"sku":"NST012970A-RK14","requires_shipping":true,"taxable":true,"featured_image":{"id":34187358896227,"product_id":7824138862691,"position":8,"created_at":"2025-07-15T17:33:58+08:00","updated_at":"2025-07-15T17:34:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31d2e34d676d1da18af78a1f5a0cb9b469c5edba.webp?v=1752572040","variant_ids":[43476259209315]},"available":true,"name":"iPhone 15 Pro SolidX 方坊 Square Studio 樂樂登場 - Ocean Blue","public_title":"Ocean Blue","options":["Ocean Blue"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST012970A-RK14","featured_media":{"alt":null,"id":25822730289251,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31d2e34d676d1da18af78a1f5a0cb9b469c5edba.webp?v=1752572040"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43476259242083,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NST0129753-RK14","requires_shipping":true,"taxable":true,"featured_image":{"id":34187361321059,"product_id":7824138862691,"position":12,"created_at":"2025-07-15T17:34:00+08:00","updated_at":"2025-07-15T17:34:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1bef9ee91fc3b97fdb60c188bfed49d0822ed7b.webp?v=1752572042","variant_ids":[43476259242083]},"available":true,"name":"iPhone 15 Pro SolidX 方坊 Square Studio 樂樂登場 - White","public_title":"White","options":["White"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129753-RK14","featured_media":{"alt":null,"id":25822731796579,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1bef9ee91fc3b97fdb60c188bfed49d0822ed7b.webp?v=1752572042"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43476259274851,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012970B-RK14","requires_shipping":true,"taxable":true,"featured_image":{"id":34187354996835,"product_id":7824138862691,"position":3,"created_at":"2025-07-15T17:33:55+08:00","updated_at":"2025-07-15T17:33:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d665a8e0cecb797e0f538b07f4b0be40282b320a.webp?v=1752572037","variant_ids":[43476259274851]},"available":true,"name":"iPhone 15 Pro SolidX 方坊 Square Studio 樂樂登場 - 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":"NST012970B-RK14","featured_media":{"alt":null,"id":25822728585315,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d665a8e0cecb797e0f538b07f4b0be40282b320a.webp?v=1752572037"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43476259307619,"title":"Seaweed Green","option1":"Seaweed Green","option2":null,"option3":null,"sku":"NST01297Z8-RK14","requires_shipping":true,"taxable":true,"featured_image":{"id":34187356897379,"product_id":7824138862691,"position":6,"created_at":"2025-07-15T17:33:57+08:00","updated_at":"2025-07-15T17:33:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e63722a77672a086cbbfd2169e07869e3f73fa1.webp?v=1752572039","variant_ids":[43476259307619]},"available":true,"name":"iPhone 15 Pro SolidX 方坊 Square Studio 樂樂登場 - Seaweed Green","public_title":"Seaweed Green","options":["Seaweed Green"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01297Z8-RK14","featured_media":{"alt":null,"id":25822729568355,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e63722a77672a086cbbfd2169e07869e3f73fa1.webp?v=1752572039"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43476255440995,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129752-RK14","requires_shipping":true,"taxable":true,"featured_image":{"id":34187355750499,"product_id":7824138862691,"position":4,"created_at":"2025-07-15T17:33:56+08:00","updated_at":"2025-07-15T17:33:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/651f28e735daf6eb5327ad4d942f3f4402bcdd39.webp?v=1752572038","variant_ids":[43476255440995]},"available":true,"name":"iPhone 15 Pro SolidX 方坊 Square Studio 樂樂登場 - Black","public_title":"Black","options":["Black"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST0129752-RK14","featured_media":{"alt":null,"id":25822728945763,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/651f28e735daf6eb5327ad4d942f3f4402bcdd39.webp?v=1752572038"}},"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: "停產" }