SAYO TOMASYON Sundial Bjj Rash Guard
${function() {
const variantData = data.variant || {"id":"78b7af9d-c75d-40ac-81a8-e414c19f9f0f","product_id":"5393c3a8-b0cd-4ba6-8974-2ede4d880d6e","title":"Long sleeve-XXL","weight_unit":"g","inventory_quantity":780,"sku":"","barcode":"","position":1,"option1":"Long sleeve","option2":"XXL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/3bd6a85054a8cbd6c54c27bb0fa9e165.jpeg","path":"3bd6a85054a8cbd6c54c27bb0fa9e165.jpeg","width":160,"height":160,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":20.5,"min_quantity":1}],"weight":"250","compare_at_price":"20.5","price":"20.5","retail_price":"20.5","available":true,"url":"\/products\/sayo-tomasyon-sundial-bjj-rash-guard?variant=78b7af9d-c75d-40ac-81a8-e414c19f9f0f","available_quantity":999999999,"options":[{"name":"Style","value":"Long sleeve"},{"name":"Size","value":"XXL"}],"off_ratio":0,"flashsale_info":[],"sales":753};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Style:
Long sleeve
${function(){
const optName = "Style";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Size:
XXL
${function(){
const optName = "Size";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Add to cart
$20.50
${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]);
const productVariant = {"id":"78b7af9d-c75d-40ac-81a8-e414c19f9f0f","product_id":"5393c3a8-b0cd-4ba6-8974-2ede4d880d6e","title":"Long sleeve-XXL","weight_unit":"g","inventory_quantity":780,"sku":"","barcode":"","position":1,"option1":"Long sleeve","option2":"XXL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/3bd6a85054a8cbd6c54c27bb0fa9e165.jpeg","path":"3bd6a85054a8cbd6c54c27bb0fa9e165.jpeg","width":160,"height":160,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":20.5,"min_quantity":1}],"weight":"250","compare_at_price":"20.5","price":"20.5","retail_price":"20.5","available":true,"url":"\/products\/sayo-tomasyon-sundial-bjj-rash-guard?variant=78b7af9d-c75d-40ac-81a8-e414c19f9f0f","available_quantity":999999999,"options":[{"name":"Style","value":"Long sleeve"},{"name":"Size","value":"XXL"}],"off_ratio":0,"flashsale_info":[],"sales":753};
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 now
Product was out of stock.
Product is unavailable.