More Treats, Less Squirrels, Political Sign - Personalized Yard Sign, Funny Election Sign - YS16UP
${function() {
const variantData = data.variant || {"id":"94131475-1f11-4a2b-985b-b5045f63ca68","product_id":"4074c280-54a7-4146-8342-170e1f9d6dfd","title":"18x12 IN-white-1-PACK","weight_unit":"kg","inventory_quantity":1000,"sku":"UYS\/18X12INCH","barcode":"","position":1,"option1":"18x12 IN","option2":"white","option3":"1-PACK","note":"","image":{"src":"\/\/img.staticdj.com\/5b1d5462b193d0420234209578241a2d.jpeg","path":"5b1d5462b193d0420234209578241a2d.jpeg","width":960,"height":960,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":34.99,"min_quantity":1}],"weight":"0","compare_at_price":"10.5","price":"34.99","retail_price":"10.5","available":true,"url":"\/products\/more-treats-less-squirrels-political-sign-personalized-yard-sign-funny-election-sign?variant=94131475-1f11-4a2b-985b-b5045f63ca68","available_quantity":1000,"options":[{"name":"Available Product","value":"18x12 IN"},{"name":"Size","value":"white"},{"name":"PACKAGE","value":"1-PACK"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Available Product:
18x12 IN
${function(){
const optName = "Available Product";
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:
white
${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}
`
}()}
PACKAGE:
1-PACK
${function(){
const optName = "PACKAGE";
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
$34.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":"94131475-1f11-4a2b-985b-b5045f63ca68","product_id":"4074c280-54a7-4146-8342-170e1f9d6dfd","title":"18x12 IN-white-1-PACK","weight_unit":"kg","inventory_quantity":1000,"sku":"UYS\/18X12INCH","barcode":"","position":1,"option1":"18x12 IN","option2":"white","option3":"1-PACK","note":"","image":{"src":"\/\/img.staticdj.com\/5b1d5462b193d0420234209578241a2d.jpeg","path":"5b1d5462b193d0420234209578241a2d.jpeg","width":960,"height":960,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":34.99,"min_quantity":1}],"weight":"0","compare_at_price":"10.5","price":"34.99","retail_price":"10.5","available":true,"url":"\/products\/more-treats-less-squirrels-political-sign-personalized-yard-sign-funny-election-sign?variant=94131475-1f11-4a2b-985b-b5045f63ca68","available_quantity":1000,"options":[{"name":"Available Product","value":"18x12 IN"},{"name":"Size","value":"white"},{"name":"PACKAGE","value":"1-PACK"}],"off_ratio":0,"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.
${function(){
const variantData = data.variant || {"id":"94131475-1f11-4a2b-985b-b5045f63ca68","product_id":"4074c280-54a7-4146-8342-170e1f9d6dfd","title":"18x12 IN-white-1-PACK","weight_unit":"kg","inventory_quantity":1000,"sku":"UYS\/18X12INCH","barcode":"","position":1,"option1":"18x12 IN","option2":"white","option3":"1-PACK","note":"","image":{"src":"\/\/img.staticdj.com\/5b1d5462b193d0420234209578241a2d.jpeg","path":"5b1d5462b193d0420234209578241a2d.jpeg","width":960,"height":960,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":34.99,"min_quantity":1}],"weight":"0","compare_at_price":"10.5","price":"34.99","retail_price":"10.5","available":true,"url":"\/products\/more-treats-less-squirrels-political-sign-personalized-yard-sign-funny-election-sign?variant=94131475-1f11-4a2b-985b-b5045f63ca68","available_quantity":1000,"options":[{"name":"Available Product","value":"18x12 IN"},{"name":"Size","value":"white"},{"name":"PACKAGE","value":"1-PACK"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}