Transforming Dinosaur LED Car
${function() {
const variantData = data.variant || {"id":"ab62ec7b-8952-408f-8a3c-29e1f0e4ae59","product_id":"313e9a37-f069-4138-802f-c4dfe577b855","title":"RED-Buy1","weight_unit":"kg","inventory_quantity":95,"sku":"","barcode":"","position":1,"option1":"RED","option2":"Buy1","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9cb579c7e897df9e2fdffdbbed468d2e.jpeg","path":"9cb579c7e897df9e2fdffdbbed468d2e.jpeg","width":513,"height":510,"alt":"","aspect_ratio":1.0058823529411764},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0","compare_at_price":"39.99","price":"19.99","retail_price":"39.99","available":true,"url":"\/products\/transforming-dinosaur-led-car?variant=ab62ec7b-8952-408f-8a3c-29e1f0e4ae59","available_quantity":999999999,"options":[{"name":"TYPE","value":"RED"},{"name":"Quantity","value":"Buy1"}],"off_ratio":50,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Type:
RED
${function(){
const optName = "TYPE";
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}
`
}()}
Quantity:
Buy1
${function(){
const optName = "Quantity";
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}
`
}()}
Supports return and exchange within 30 days
Add to cart
$19.99
${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":"ab62ec7b-8952-408f-8a3c-29e1f0e4ae59","product_id":"313e9a37-f069-4138-802f-c4dfe577b855","title":"RED-Buy1","weight_unit":"kg","inventory_quantity":95,"sku":"","barcode":"","position":1,"option1":"RED","option2":"Buy1","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9cb579c7e897df9e2fdffdbbed468d2e.jpeg","path":"9cb579c7e897df9e2fdffdbbed468d2e.jpeg","width":513,"height":510,"alt":"","aspect_ratio":1.0058823529411764},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0","compare_at_price":"39.99","price":"19.99","retail_price":"39.99","available":true,"url":"\/products\/transforming-dinosaur-led-car?variant=ab62ec7b-8952-408f-8a3c-29e1f0e4ae59","available_quantity":999999999,"options":[{"name":"TYPE","value":"RED"},{"name":"Quantity","value":"Buy1"}],"off_ratio":50,"flashsale_info":[],"sales":0};
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.