Kırmızı Araba
$ 0.00
araba
") + " " + Shopify.formatMoney(variant.compare_at_price, "$ {{amount}} ") + "");
} else {
jQuery('#price-preview').html(Shopify.formatMoney(variant.price, "$ {{amount}} "));
}
} else {
jQuery('#add-to-cart').addClass('disabled').attr('disabled', 'disabled'); // set add-to-cart button to unavailable class and disable button
var message = variant ? "Sold Out" : "Unavailable";
jQuery('#price-preview').html(message);
}
};
jQuery(document).ready(function($){
new Shopify.OptionSelectors("product-select", { product: {"id":1986477122,"title":"Kırmızı Araba","handle":"araba","description":"araba","published_at":"2015-10-28T03:55:00-11:00","created_at":"2015-10-24T08:50:04-11:00","vendor":"Test","type":"","tags":["deneme","test"],"price":0,"price_min":0,"price_max":0,"available":true,"price_varies":false,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":6781727298,"title":"Default Title","option1":"Default Title","option2":null,"option3":null,"sku":"","requires_shipping":true,"taxable":true,"featured_image":null,"available":true,"name":"Kırmızı Araba","public_title":null,"options":["Default Title"],"price":0,"weight":0,"compare_at_price":null,"inventory_quantity":1,"inventory_management":null,"inventory_policy":"deny","barcode":"","requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/movsumov.myshopify.com\/cdn\/shop\/products\/ARABA-RESMI2-553x414.jpg?v=1445716205"],"featured_image":"\/\/movsumov.myshopify.com\/cdn\/shop\/products\/ARABA-RESMI2-553x414.jpg?v=1445716205","options":["Title"],"media":[{"alt":null,"id":57495289891,"position":1,"preview_image":{"aspect_ratio":1.336,"height":414,"width":553,"src":"\/\/movsumov.myshopify.com\/cdn\/shop\/products\/ARABA-RESMI2-553x414.jpg?v=1445716205"},"aspect_ratio":1.336,"height":414,"media_type":"image","src":"\/\/movsumov.myshopify.com\/cdn\/shop\/products\/ARABA-RESMI2-553x414.jpg?v=1445716205","width":553}],"requires_selling_plan":false,"selling_plan_groups":[],"content":"araba"}, onVariantSelected: selectCallback, enableHistoryState: true });
// Add label if only one product option and it isn't 'Title'.
});