Portable Glasses Organizer
Specification-
2 Slots
${function(){
const optName = "Specification";
const enable_selected_variants = "true" === 'false';
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value[0] : data.originData.value;
return `
${optionValue ? `${enable_selected_variants ? '-' : ''}${optionValue}` : ''}
`;
}()}
${function(){
const optName = "Specification";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value[0] : data.originData.value;
return `
Please select a Specification
`;
}()}
Color-
Brown
${function(){
const optName = "Color";
const enable_selected_variants = "true" === 'false';
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value[0] : data.originData.value;
return `
${optionValue ? `${enable_selected_variants ? '-' : ''}${optionValue}` : ''}
`;
}()}
${function(){
const optName = "Color";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value[0] : data.originData.value;
return `
Please select a Color
`;
}()}
${function() {
const variantData = data.variant || {"id":"d064d9e6-ff50-4eb6-861e-44cd74bb9d39","product_id":"a57a8b25-a15f-49c1-a66e-b4457c3409bd","title":"2 Slots-Brown","weight_unit":"kg","inventory_quantity":0,"sku":"PH2111114L3ZON","barcode":"978199642731","position":1,"option1":"2 Slots","option2":"Brown","option3":"","note":"","image":null,"wholesale_price":[{"price":14.96,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"14.96","retail_price":"0","available":true,"url":"\/products\/portable-glasses-organizer?variant=d064d9e6-ff50-4eb6-861e-44cd74bb9d39","available_quantity":999999999,"options":[{"name":"Specification","value":"2 Slots"},{"name":"Color","value":"Brown"}],"off_ratio":0,"flashsale_info":[],"sales":19};
const saveType = "amount";
const productSaveLabel = true;
return `
-
${saveType == 'percent' ? `-${variantData.off_ratio}% ` : `- ` }
`; }()}
Free shipping on international orders of $49.99+
Add to cart
- $14.96
${function(){
const wholesale_enabled = false;
const qty = data.quantity || 1;
const currentSelectVariant = data.variant;
const defaultVariant = (data.product && data.product.variants && data.product.variants[0]) || Object.keys(data).length > 1 ? data : null;
const productVariant = {"id":"d064d9e6-ff50-4eb6-861e-44cd74bb9d39","product_id":"a57a8b25-a15f-49c1-a66e-b4457c3409bd","title":"2 Slots-Brown","weight_unit":"kg","inventory_quantity":0,"sku":"PH2111114L3ZON","barcode":"978199642731","position":1,"option1":"2 Slots","option2":"Brown","option3":"","note":"","image":null,"wholesale_price":[{"price":14.96,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"14.96","retail_price":"0","available":true,"url":"\/products\/portable-glasses-organizer?variant=d064d9e6-ff50-4eb6-861e-44cd74bb9d39","available_quantity":999999999,"options":[{"name":"Specification","value":"2 Slots"},{"name":"Color","value":"Brown"}],"off_ratio":0,"flashsale_info":[],"sales":19};
const variantData = currentSelectVariant || defaultVariant || productVariant;
const wholesale_price = variantData.wholesale_price || [];
if(wholesale_enabled && wholesale_price.length > 0) {
let wholesaleIndex = wholesale_price.findIndex(item => {
return item.min_quantity > qty;
});
if(wholesaleIndex < 0){
wholesaleIndex = wholesale_price.length - 1;
}else if(wholesaleIndex > 0){
wholesaleIndex = wholesaleIndex - 1;
}
const wholesalePrice = wholesale_price[wholesaleIndex] || '';
return `
`
}else {
const price = variantData && variantData.price;
return price != undefined ? `
` : ' ';
}
}()}
Buy it now
Product was out of stock.
Product is unavailable.