Elite Desktop PC Computer Intel Core i5 3.1-GHz, 8 gb Ram, 1 TB Hard Drive, DVDRW, 19 Inch LCD Monitor, Keyboard, Mouse, Wireless WiFi, Windows 10 (Renewed)
${function() {
const variantData = data.variant || {"id":"0496b253-dcaf-4c34-a869-4da9b39faec9","product_id":"90aa2dd3-52f5-467f-a6c5-07a39d287185","title":"19\" Monitor","weight_unit":"kg","inventory_quantity":1000,"sku":"sku2118838732545","barcode":"","position":1,"option1":"19\" Monitor","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/76a92fc1d1e4df602172676b9b08ec43.jpeg","path":"76a92fc1d1e4df602172676b9b08ec43.jpeg","width":1500,"height":1283,"alt":"","aspect_ratio":1.1691348402182384},"wholesale_price":[{"price":55.44,"min_quantity":1}],"weight":"0","compare_at_price":"200.98","price":"55.44","retail_price":"200.98","available":true,"url":"\/products\/hp-elite-desktop-pc-computer-intel-core-i5-3-1-ghz-8-gb-ram-1-tb-hard-drive-dvdrw-19-inch-lcd-monitor-keyboard-mouse-wireless-wifi-windows-10-renewed?variant=0496b253-dcaf-4c34-a869-4da9b39faec9","available_quantity":1000,"options":[{"name":"style","value":"19\" Monitor"}],"off_ratio":72,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
${function() {
const minInventory = parseInt('3');
const maxInventory = parseInt('88');
const randomInventory = Math.round(Math.random() * (maxInventory - minInventory)) + minInventory;
const customText = "Only {stock} item(s) left in stock!".replace(/\{stock\}/g, '' + randomInventory + ' ');
const barWidth = (randomInventory / maxInventory) * 100 + '%';
return `
`;
}()}
Style:
19" Monitor
${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}
`
}()}
Add to cart
$55.44
${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":"0496b253-dcaf-4c34-a869-4da9b39faec9","product_id":"90aa2dd3-52f5-467f-a6c5-07a39d287185","title":"19\" Monitor","weight_unit":"kg","inventory_quantity":1000,"sku":"sku2118838732545","barcode":"","position":1,"option1":"19\" Monitor","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/76a92fc1d1e4df602172676b9b08ec43.jpeg","path":"76a92fc1d1e4df602172676b9b08ec43.jpeg","width":1500,"height":1283,"alt":"","aspect_ratio":1.1691348402182384},"wholesale_price":[{"price":55.44,"min_quantity":1}],"weight":"0","compare_at_price":"200.98","price":"55.44","retail_price":"200.98","available":true,"url":"\/products\/hp-elite-desktop-pc-computer-intel-core-i5-3-1-ghz-8-gb-ram-1-tb-hard-drive-dvdrw-19-inch-lcd-monitor-keyboard-mouse-wireless-wifi-windows-10-renewed?variant=0496b253-dcaf-4c34-a869-4da9b39faec9","available_quantity":1000,"options":[{"name":"style","value":"19\" Monitor"}],"off_ratio":72,"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":"0496b253-dcaf-4c34-a869-4da9b39faec9","product_id":"90aa2dd3-52f5-467f-a6c5-07a39d287185","title":"19\" Monitor","weight_unit":"kg","inventory_quantity":1000,"sku":"sku2118838732545","barcode":"","position":1,"option1":"19\" Monitor","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/76a92fc1d1e4df602172676b9b08ec43.jpeg","path":"76a92fc1d1e4df602172676b9b08ec43.jpeg","width":1500,"height":1283,"alt":"","aspect_ratio":1.1691348402182384},"wholesale_price":[{"price":55.44,"min_quantity":1}],"weight":"0","compare_at_price":"200.98","price":"55.44","retail_price":"200.98","available":true,"url":"\/products\/hp-elite-desktop-pc-computer-intel-core-i5-3-1-ghz-8-gb-ram-1-tb-hard-drive-dvdrw-19-inch-lcd-monitor-keyboard-mouse-wireless-wifi-windows-10-renewed?variant=0496b253-dcaf-4c34-a869-4da9b39faec9","available_quantity":1000,"options":[{"name":"style","value":"19\" Monitor"}],"off_ratio":72,"flashsale_info":[],"sales":0};
return `
`
}()}