Home
›
iPhone 15 Plus SolidX Doraemon 哆啦A夢 哆啦A夢表情包
$product = {"id":7824449962083,"title":"iPhone 15 Plus SolidX Doraemon 哆啦A夢 哆啦A夢表情包","handle":"iphone-15-plus-solidx-yr05","description":null,"published_at":"2025-07-30T14:52:04+08:00","created_at":"2025-06-20T17:58:10+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-doraemon","device-iPhone 15 Plus","merge","reseller-doraemon"],"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":43479299784803,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-YR05","requires_shipping":true,"taxable":true,"featured_image":{"id":36084648673379,"product_id":7824449962083,"position":14,"created_at":"2026-06-24T16:11:51+08:00","updated_at":"2026-06-24T16:11:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d0d5c226da7e9a1fd35d851b9429b71366b96f2_a2aabde2-f256-4e79-92de-e9779b513151.webp?v=1782288713","variant_ids":[43479299784803]},"available":true,"name":"iPhone 15 Plus SolidX Doraemon 哆啦A夢 哆啦A夢表情包 - 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-YR05","featured_media":{"alt":null,"id":27593778790499,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d0d5c226da7e9a1fd35d851b9429b71366b96f2_a2aabde2-f256-4e79-92de-e9779b513151.webp?v=1782288713"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43479303094371,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01296O8-YR05","requires_shipping":true,"taxable":true,"featured_image":{"id":36084650573923,"product_id":7824449962083,"position":16,"created_at":"2026-06-24T16:11:53+08:00","updated_at":"2026-06-24T16:11:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49d8b924ce6740fcaaf9ef1740f75875f4db2eb5_b038c6df-f5f5-4b4e-8476-2751486a8786.webp?v=1782288715","variant_ids":[43479303094371]},"available":true,"name":"iPhone 15 Plus SolidX Doraemon 哆啦A夢 哆啦A夢表情包 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01296O8-YR05","featured_media":{"alt":null,"id":27593780691043,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49d8b924ce6740fcaaf9ef1740f75875f4db2eb5_b038c6df-f5f5-4b4e-8476-2751486a8786.webp?v=1782288715"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43479303290979,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-YR05","requires_shipping":true,"taxable":true,"featured_image":{"id":36084649164899,"product_id":7824449962083,"position":15,"created_at":"2026-06-24T16:11:52+08:00","updated_at":"2026-06-24T16:11:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a97e6a1cdf882112357fb18b995ba1671833a17b_ab6da0e0-9a1d-448a-81fc-16872c8bae37.webp?v=1782288714","variant_ids":[43479303290979]},"available":true,"name":"iPhone 15 Plus SolidX Doraemon 哆啦A夢 哆啦A夢表情包 - 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-YR05","featured_media":{"alt":null,"id":27593779314787,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a97e6a1cdf882112357fb18b995ba1671833a17b_ab6da0e0-9a1d-448a-81fc-16872c8bae37.webp?v=1782288714"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-296-YR05.png?v=1750413492","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-YR05_e1872c4c-0b3a-4d14-85ae-05c0b773c730.png?v=1750820617","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4b9253effa3e6b8fab714e8752d02de776bf578.webp?v=1776139876","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/defa44ba242c0b5edcae6c3e88bcdf9a93aa5bda.webp?v=1776139877","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a97e6a1cdf882112357fb18b995ba1671833a17b.webp?v=1776139878","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7818ae7bb02280af3b04d591cde69ca08ca2d9f9.webp?v=1776139879","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccdc43b476cdc69a3ebf14b8e22c6bc3a1c4b19a.webp?v=1776139879","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03085ddbd9b0d40c6fce5eda0913a38ecd044fae.webp?v=1776139880","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49d8b924ce6740fcaaf9ef1740f75875f4db2eb5.webp?v=1776139881","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d0d5c226da7e9a1fd35d851b9429b71366b96f2.webp?v=1776139881","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d0d5c226da7e9a1fd35d851b9429b71366b96f2_5d5974fd-a095-4178-9224-d1bbaaf2d591.webp?v=1782266146","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a97e6a1cdf882112357fb18b995ba1671833a17b_616fcf51-ffde-443e-a6d8-f59ed5f442ac.webp?v=1782266147","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49d8b924ce6740fcaaf9ef1740f75875f4db2eb5_6166e546-5074-4606-9559-4cac8c8335ba.webp?v=1782266147","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d0d5c226da7e9a1fd35d851b9429b71366b96f2_a2aabde2-f256-4e79-92de-e9779b513151.webp?v=1782288713","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a97e6a1cdf882112357fb18b995ba1671833a17b_ab6da0e0-9a1d-448a-81fc-16872c8bae37.webp?v=1782288714","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49d8b924ce6740fcaaf9ef1740f75875f4db2eb5_b038c6df-f5f5-4b4e-8476-2751486a8786.webp?v=1782288715"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-296-YR05.png?v=1750413492","options":["color"],"media":[{"alt":null,"id":25722097533027,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-296-YR05.png?v=1750413492"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-296-YR05.png?v=1750413492","width":2000},{"alt":null,"id":25735137984611,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-YR05_e1872c4c-0b3a-4d14-85ae-05c0b773c730.png?v=1750820617"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/SolidX-52-295-YR05_e1872c4c-0b3a-4d14-85ae-05c0b773c730.png?v=1750820617","width":2000},{"alt":null,"id":27172634099811,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4b9253effa3e6b8fab714e8752d02de776bf578.webp?v=1776139876"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4b9253effa3e6b8fab714e8752d02de776bf578.webp?v=1776139876","width":2000},{"alt":null,"id":27172634263651,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/defa44ba242c0b5edcae6c3e88bcdf9a93aa5bda.webp?v=1776139877"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/defa44ba242c0b5edcae6c3e88bcdf9a93aa5bda.webp?v=1776139877","width":2000},{"alt":null,"id":27172634460259,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a97e6a1cdf882112357fb18b995ba1671833a17b.webp?v=1776139878"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a97e6a1cdf882112357fb18b995ba1671833a17b.webp?v=1776139878","width":2000},{"alt":null,"id":27172634755171,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7818ae7bb02280af3b04d591cde69ca08ca2d9f9.webp?v=1776139879"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7818ae7bb02280af3b04d591cde69ca08ca2d9f9.webp?v=1776139879","width":2000},{"alt":null,"id":27172634951779,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccdc43b476cdc69a3ebf14b8e22c6bc3a1c4b19a.webp?v=1776139879"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccdc43b476cdc69a3ebf14b8e22c6bc3a1c4b19a.webp?v=1776139879","width":2000},{"alt":null,"id":27172635148387,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03085ddbd9b0d40c6fce5eda0913a38ecd044fae.webp?v=1776139880"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03085ddbd9b0d40c6fce5eda0913a38ecd044fae.webp?v=1776139880","width":2000},{"alt":null,"id":27172635443299,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49d8b924ce6740fcaaf9ef1740f75875f4db2eb5.webp?v=1776139881"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49d8b924ce6740fcaaf9ef1740f75875f4db2eb5.webp?v=1776139881","width":2000},{"alt":null,"id":27172635639907,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d0d5c226da7e9a1fd35d851b9429b71366b96f2.webp?v=1776139881"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d0d5c226da7e9a1fd35d851b9429b71366b96f2.webp?v=1776139881","width":2000},{"alt":null,"id":27587412754531,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d0d5c226da7e9a1fd35d851b9429b71366b96f2_5d5974fd-a095-4178-9224-d1bbaaf2d591.webp?v=1782266146"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d0d5c226da7e9a1fd35d851b9429b71366b96f2_5d5974fd-a095-4178-9224-d1bbaaf2d591.webp?v=1782266146","width":2000},{"alt":null,"id":27587413016675,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a97e6a1cdf882112357fb18b995ba1671833a17b_616fcf51-ffde-443e-a6d8-f59ed5f442ac.webp?v=1782266147"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a97e6a1cdf882112357fb18b995ba1671833a17b_616fcf51-ffde-443e-a6d8-f59ed5f442ac.webp?v=1782266147","width":2000},{"alt":null,"id":27587413180515,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49d8b924ce6740fcaaf9ef1740f75875f4db2eb5_6166e546-5074-4606-9559-4cac8c8335ba.webp?v=1782266147"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49d8b924ce6740fcaaf9ef1740f75875f4db2eb5_6166e546-5074-4606-9559-4cac8c8335ba.webp?v=1782266147","width":2000},{"alt":null,"id":27593778790499,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d0d5c226da7e9a1fd35d851b9429b71366b96f2_a2aabde2-f256-4e79-92de-e9779b513151.webp?v=1782288713"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d0d5c226da7e9a1fd35d851b9429b71366b96f2_a2aabde2-f256-4e79-92de-e9779b513151.webp?v=1782288713","width":2000},{"alt":null,"id":27593779314787,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a97e6a1cdf882112357fb18b995ba1671833a17b_ab6da0e0-9a1d-448a-81fc-16872c8bae37.webp?v=1782288714"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a97e6a1cdf882112357fb18b995ba1671833a17b_ab6da0e0-9a1d-448a-81fc-16872c8bae37.webp?v=1782288714","width":2000},{"alt":null,"id":27593780691043,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49d8b924ce6740fcaaf9ef1740f75875f4db2eb5_b038c6df-f5f5-4b4e-8476-2751486a8786.webp?v=1782288715"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49d8b924ce6740fcaaf9ef1740f75875f4db2eb5_b038c6df-f5f5-4b4e-8476-2751486a8786.webp?v=1782288715","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43479299784803,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-YR05","requires_shipping":true,"taxable":true,"featured_image":{"id":36084648673379,"product_id":7824449962083,"position":14,"created_at":"2026-06-24T16:11:51+08:00","updated_at":"2026-06-24T16:11:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d0d5c226da7e9a1fd35d851b9429b71366b96f2_a2aabde2-f256-4e79-92de-e9779b513151.webp?v=1782288713","variant_ids":[43479299784803]},"available":true,"name":"iPhone 15 Plus SolidX Doraemon 哆啦A夢 哆啦A夢表情包 - 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-YR05","featured_media":{"alt":null,"id":27593778790499,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d0d5c226da7e9a1fd35d851b9429b71366b96f2_a2aabde2-f256-4e79-92de-e9779b513151.webp?v=1782288713"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43479303094371,"title":"Ash Grey","option1":"Ash Grey","option2":null,"option3":null,"sku":"NST01296O8-YR05","requires_shipping":true,"taxable":true,"featured_image":{"id":36084650573923,"product_id":7824449962083,"position":16,"created_at":"2026-06-24T16:11:53+08:00","updated_at":"2026-06-24T16:11:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49d8b924ce6740fcaaf9ef1740f75875f4db2eb5_b038c6df-f5f5-4b4e-8476-2751486a8786.webp?v=1782288715","variant_ids":[43479303094371]},"available":true,"name":"iPhone 15 Plus SolidX Doraemon 哆啦A夢 哆啦A夢表情包 - Ash Grey","public_title":"Ash Grey","options":["Ash Grey"],"price":125000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NST01296O8-YR05","featured_media":{"alt":null,"id":27593780691043,"position":16,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49d8b924ce6740fcaaf9ef1740f75875f4db2eb5_b038c6df-f5f5-4b4e-8476-2751486a8786.webp?v=1782288715"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43479303290979,"title":"Shell Beige","option1":"Shell Beige","option2":null,"option3":null,"sku":"NST012960B-YR05","requires_shipping":true,"taxable":true,"featured_image":{"id":36084649164899,"product_id":7824449962083,"position":15,"created_at":"2026-06-24T16:11:52+08:00","updated_at":"2026-06-24T16:11:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a97e6a1cdf882112357fb18b995ba1671833a17b_ab6da0e0-9a1d-448a-81fc-16872c8bae37.webp?v=1782288714","variant_ids":[43479303290979]},"available":true,"name":"iPhone 15 Plus SolidX Doraemon 哆啦A夢 哆啦A夢表情包 - 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-YR05","featured_media":{"alt":null,"id":27593779314787,"position":15,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a97e6a1cdf882112357fb18b995ba1671833a17b_ab6da0e0-9a1d-448a-81fc-16872c8bae37.webp?v=1782288714"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43479299784803,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NST0129652-YR05","requires_shipping":true,"taxable":true,"featured_image":{"id":36084648673379,"product_id":7824449962083,"position":14,"created_at":"2026-06-24T16:11:51+08:00","updated_at":"2026-06-24T16:11:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d0d5c226da7e9a1fd35d851b9429b71366b96f2_a2aabde2-f256-4e79-92de-e9779b513151.webp?v=1782288713","variant_ids":[43479299784803]},"available":true,"name":"iPhone 15 Plus SolidX Doraemon 哆啦A夢 哆啦A夢表情包 - 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-YR05","featured_media":{"alt":null,"id":27593778790499,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d0d5c226da7e9a1fd35d851b9429b71366b96f2_a2aabde2-f256-4e79-92de-e9779b513151.webp?v=1782288713"}},"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: "停產"
}