Home
›
iPhone 14 Clear ilovedoodle Mooooody 乳牛
$product = {"id":7769675268195,"title":"iPhone 14 Clear ilovedoodle Mooooody 乳牛","handle":"iphone-14-jellytint-xf04","description":null,"published_at":"2026-04-02T16:54:40+08:00","created_at":"2025-04-15T19:18:07+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師JellyTint專區-I Love Doodle","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ilovedoodle","device-iPhone 14","merge","reseller-ilovedoodle"],"price":108000,"price_min":108000,"price_max":108000,"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":43303467253859,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012600G-XF04","requires_shipping":true,"taxable":true,"featured_image":{"id":35581749690467,"product_id":7769675268195,"position":9,"created_at":"2026-04-02T14:57:32+08:00","updated_at":"2026-04-02T14:57:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a17ab3a24f49e093c55626462772a5d534e5afb_9b9bddbf-4ca6-4296-a60b-9dd72f03cc69.webp?v=1775113053","variant_ids":[43303467253859]},"available":true,"name":"iPhone 14 Clear ilovedoodle Mooooody 乳牛 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600G-XF04","featured_media":{"alt":null,"id":27114369810531,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a17ab3a24f49e093c55626462772a5d534e5afb_9b9bddbf-4ca6-4296-a60b-9dd72f03cc69.webp?v=1775113053"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43303468400739,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012600H-XF04","requires_shipping":true,"taxable":true,"featured_image":{"id":35581749297251,"product_id":7769675268195,"position":7,"created_at":"2026-04-02T14:57:31+08:00","updated_at":"2026-04-02T14:57:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2cac59d04a734a3d464a73d6e99046c175d49e5_b07dec6b-40c1-4acb-b817-c3831f75367a.webp?v=1775113053","variant_ids":[43303468400739]},"available":true,"name":"iPhone 14 Clear ilovedoodle Mooooody 乳牛 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600H-XF04","featured_media":{"alt":null,"id":27114369417315,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2cac59d04a734a3d464a73d6e99046c175d49e5_b07dec6b-40c1-4acb-b817-c3831f75367a.webp?v=1775113053"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43303468433507,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012600J-XF04","requires_shipping":true,"taxable":true,"featured_image":{"id":35581749035107,"product_id":7769675268195,"position":6,"created_at":"2026-04-02T14:57:30+08:00","updated_at":"2026-04-02T14:57:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cdead4da7971ea7fecf0beb495cb7dc28d943d3_2b0c82b8-c2bc-41bf-b891-d13adb9d1795.webp?v=1775113052","variant_ids":[43303468433507]},"available":true,"name":"iPhone 14 Clear ilovedoodle Mooooody 乳牛 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600J-XF04","featured_media":{"alt":null,"id":27114369187939,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cdead4da7971ea7fecf0beb495cb7dc28d943d3_2b0c82b8-c2bc-41bf-b891-d13adb9d1795.webp?v=1775113052"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43303468466275,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012600I-XF04","requires_shipping":true,"taxable":true,"featured_image":{"id":35581749493859,"product_id":7769675268195,"position":8,"created_at":"2026-04-02T14:57:31+08:00","updated_at":"2026-04-02T14:57:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ed3eb3d44c027a1a07ae70e9073b0a3758f640_808b51df-b39a-4ee4-ae10-2aa87c459e80.webp?v=1775113053","variant_ids":[43303468466275]},"available":true,"name":"iPhone 14 Clear ilovedoodle Mooooody 乳牛 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600I-XF04","featured_media":{"alt":null,"id":27114369613923,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ed3eb3d44c027a1a07ae70e9073b0a3758f640_808b51df-b39a-4ee4-ae10-2aa87c459e80.webp?v=1775113053"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/208d4b2b1f6fc085747ae8b2ebbf11857ac20976.webp?v=1744715894","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2cac59d04a734a3d464a73d6e99046c175d49e5_a29765f1-d387-4eec-a5eb-671c4e064e7a.webp?v=1774939913","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a17ab3a24f49e093c55626462772a5d534e5afb_6aeba2c3-9351-465d-92c9-fd7d1914bb7f.webp?v=1774939914","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ed3eb3d44c027a1a07ae70e9073b0a3758f640_dcddb365-6bc2-4e68-8247-0109453a7484.webp?v=1774939914","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cdead4da7971ea7fecf0beb495cb7dc28d943d3_d3067806-cb88-456c-9abc-59a23e8ce013.webp?v=1774939915","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cdead4da7971ea7fecf0beb495cb7dc28d943d3_2b0c82b8-c2bc-41bf-b891-d13adb9d1795.webp?v=1775113052","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2cac59d04a734a3d464a73d6e99046c175d49e5_b07dec6b-40c1-4acb-b817-c3831f75367a.webp?v=1775113053","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ed3eb3d44c027a1a07ae70e9073b0a3758f640_808b51df-b39a-4ee4-ae10-2aa87c459e80.webp?v=1775113053","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a17ab3a24f49e093c55626462772a5d534e5afb_9b9bddbf-4ca6-4296-a60b-9dd72f03cc69.webp?v=1775113053"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/208d4b2b1f6fc085747ae8b2ebbf11857ac20976.webp?v=1744715894","options":["color"],"media":[{"alt":null,"id":25496096112739,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/208d4b2b1f6fc085747ae8b2ebbf11857ac20976.webp?v=1744715894"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/208d4b2b1f6fc085747ae8b2ebbf11857ac20976.webp?v=1744715894","width":2000},{"alt":null,"id":27102411685987,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2cac59d04a734a3d464a73d6e99046c175d49e5_a29765f1-d387-4eec-a5eb-671c4e064e7a.webp?v=1774939913"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2cac59d04a734a3d464a73d6e99046c175d49e5_a29765f1-d387-4eec-a5eb-671c4e064e7a.webp?v=1774939913","width":2000},{"alt":null,"id":27102411882595,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a17ab3a24f49e093c55626462772a5d534e5afb_6aeba2c3-9351-465d-92c9-fd7d1914bb7f.webp?v=1774939914"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a17ab3a24f49e093c55626462772a5d534e5afb_6aeba2c3-9351-465d-92c9-fd7d1914bb7f.webp?v=1774939914","width":2000},{"alt":null,"id":27102412079203,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ed3eb3d44c027a1a07ae70e9073b0a3758f640_dcddb365-6bc2-4e68-8247-0109453a7484.webp?v=1774939914"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ed3eb3d44c027a1a07ae70e9073b0a3758f640_dcddb365-6bc2-4e68-8247-0109453a7484.webp?v=1774939914","width":2000},{"alt":null,"id":27102412275811,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cdead4da7971ea7fecf0beb495cb7dc28d943d3_d3067806-cb88-456c-9abc-59a23e8ce013.webp?v=1774939915"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cdead4da7971ea7fecf0beb495cb7dc28d943d3_d3067806-cb88-456c-9abc-59a23e8ce013.webp?v=1774939915","width":2000},{"alt":null,"id":27114369187939,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cdead4da7971ea7fecf0beb495cb7dc28d943d3_2b0c82b8-c2bc-41bf-b891-d13adb9d1795.webp?v=1775113052"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cdead4da7971ea7fecf0beb495cb7dc28d943d3_2b0c82b8-c2bc-41bf-b891-d13adb9d1795.webp?v=1775113052","width":2000},{"alt":null,"id":27114369417315,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2cac59d04a734a3d464a73d6e99046c175d49e5_b07dec6b-40c1-4acb-b817-c3831f75367a.webp?v=1775113053"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2cac59d04a734a3d464a73d6e99046c175d49e5_b07dec6b-40c1-4acb-b817-c3831f75367a.webp?v=1775113053","width":2000},{"alt":null,"id":27114369613923,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ed3eb3d44c027a1a07ae70e9073b0a3758f640_808b51df-b39a-4ee4-ae10-2aa87c459e80.webp?v=1775113053"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ed3eb3d44c027a1a07ae70e9073b0a3758f640_808b51df-b39a-4ee4-ae10-2aa87c459e80.webp?v=1775113053","width":2000},{"alt":null,"id":27114369810531,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a17ab3a24f49e093c55626462772a5d534e5afb_9b9bddbf-4ca6-4296-a60b-9dd72f03cc69.webp?v=1775113053"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a17ab3a24f49e093c55626462772a5d534e5afb_9b9bddbf-4ca6-4296-a60b-9dd72f03cc69.webp?v=1775113053","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":43303467253859,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012600G-XF04","requires_shipping":true,"taxable":true,"featured_image":{"id":35581749690467,"product_id":7769675268195,"position":9,"created_at":"2026-04-02T14:57:32+08:00","updated_at":"2026-04-02T14:57:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a17ab3a24f49e093c55626462772a5d534e5afb_9b9bddbf-4ca6-4296-a60b-9dd72f03cc69.webp?v=1775113053","variant_ids":[43303467253859]},"available":true,"name":"iPhone 14 Clear ilovedoodle Mooooody 乳牛 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600G-XF04","featured_media":{"alt":null,"id":27114369810531,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a17ab3a24f49e093c55626462772a5d534e5afb_9b9bddbf-4ca6-4296-a60b-9dd72f03cc69.webp?v=1775113053"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43303468400739,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012600H-XF04","requires_shipping":true,"taxable":true,"featured_image":{"id":35581749297251,"product_id":7769675268195,"position":7,"created_at":"2026-04-02T14:57:31+08:00","updated_at":"2026-04-02T14:57:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2cac59d04a734a3d464a73d6e99046c175d49e5_b07dec6b-40c1-4acb-b817-c3831f75367a.webp?v=1775113053","variant_ids":[43303468400739]},"available":true,"name":"iPhone 14 Clear ilovedoodle Mooooody 乳牛 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600H-XF04","featured_media":{"alt":null,"id":27114369417315,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2cac59d04a734a3d464a73d6e99046c175d49e5_b07dec6b-40c1-4acb-b817-c3831f75367a.webp?v=1775113053"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43303468433507,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012600J-XF04","requires_shipping":true,"taxable":true,"featured_image":{"id":35581749035107,"product_id":7769675268195,"position":6,"created_at":"2026-04-02T14:57:30+08:00","updated_at":"2026-04-02T14:57:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cdead4da7971ea7fecf0beb495cb7dc28d943d3_2b0c82b8-c2bc-41bf-b891-d13adb9d1795.webp?v=1775113052","variant_ids":[43303468433507]},"available":true,"name":"iPhone 14 Clear ilovedoodle Mooooody 乳牛 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600J-XF04","featured_media":{"alt":null,"id":27114369187939,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cdead4da7971ea7fecf0beb495cb7dc28d943d3_2b0c82b8-c2bc-41bf-b891-d13adb9d1795.webp?v=1775113052"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43303468466275,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012600I-XF04","requires_shipping":true,"taxable":true,"featured_image":{"id":35581749493859,"product_id":7769675268195,"position":8,"created_at":"2026-04-02T14:57:31+08:00","updated_at":"2026-04-02T14:57:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ed3eb3d44c027a1a07ae70e9073b0a3758f640_808b51df-b39a-4ee4-ae10-2aa87c459e80.webp?v=1775113053","variant_ids":[43303468466275]},"available":true,"name":"iPhone 14 Clear ilovedoodle Mooooody 乳牛 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600I-XF04","featured_media":{"alt":null,"id":27114369613923,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ed3eb3d44c027a1a07ae70e9073b0a3758f640_808b51df-b39a-4ee4-ae10-2aa87c459e80.webp?v=1775113053"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43303467253859,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012600G-XF04","requires_shipping":true,"taxable":true,"featured_image":{"id":35581749690467,"product_id":7769675268195,"position":9,"created_at":"2026-04-02T14:57:32+08:00","updated_at":"2026-04-02T14:57:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a17ab3a24f49e093c55626462772a5d534e5afb_9b9bddbf-4ca6-4296-a60b-9dd72f03cc69.webp?v=1775113053","variant_ids":[43303467253859]},"available":true,"name":"iPhone 14 Clear ilovedoodle Mooooody 乳牛 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600G-XF04","featured_media":{"alt":null,"id":27114369810531,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a17ab3a24f49e093c55626462772a5d534e5afb_9b9bddbf-4ca6-4296-a60b-9dd72f03cc69.webp?v=1775113053"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null
var sellingStatus
if ($bumper) {
$(document).ready(function() {
var productImg = $product.images[0]
var bumperVariants = $bumper.variants;
var bumperColors = new Object();
var currentVariant = '';
var productType = '';
bumperVariants.forEach(variant => {
bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src;
});
if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') {
mergeImages(
[productImg, bumperColors[currentVariant]],
{ crossOrigin: 'anonymous' }
).then(mergedImg => {
$('.merged-img').attr('src', mergedImg);
});
} else {
mergeImages(
[bumperColors[currentVariant], productImg],
{ crossOrigin: 'anonymous' }
).then(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: "停產"
}