Giỏ hàng
0₫
\n\n","summary":null,"template_layout":null,"available":true,"tags":["giày nữ","giày thể thao","Giới_nữ","khỏe khoắn","Loại_Thể thao","năng động","trẻ trung"],"price":169000.0000,"price_min":169000.0000,"price_max":169000.0000,"price_varies":false,"compare_at_price":300000.0000,"compare_at_price_min":300000.0000,"compare_at_price_max":300000.0000,"compare_at_price_varies":false,"variants":[{"id":21823591,"barcode":null,"sku":"Z18-171118-38","title":"Default Title","options":["Default Title"],"option1":"Default Title","option2":null,"option3":null,"available":true,"taxable":false,"price":169000.0000,"compare_at_price":300000.0000,"inventory_management":"bizweb","inventory_policy":"deny","inventory_quantity":2,"weight_unit":"kg","weight":700,"requires_shipping":true,"image":null}],"featured_image":{"src":"https://bizweb.dktcdn.net/100/060/498/products/z18-35-36-37-37-38-38-39-1-17-11-18-3dfb0017-9ef6-42e3-958f-69ebecd906db-6b581015-fcfc-4664-af21-30ac339747b4-596b56d7-8fa2-4e78-80af-42112f8046d4.jpg?v=1542622424807"},"images":[{"src":"https://bizweb.dktcdn.net/100/060/498/products/z18-35-36-37-37-38-38-39-1-17-11-18-3dfb0017-9ef6-42e3-958f-69ebecd906db-6b581015-fcfc-4664-af21-30ac339747b4-596b56d7-8fa2-4e78-80af-42112f8046d4.jpg?v=1542622424807"},{"src":"https://bizweb.dktcdn.net/100/060/498/products/z18-35-36-37-37-38-38-39-2-17-11-18-97adbe7b-0cad-4633-b5a2-b69bfae33818-7916444d-20eb-4422-9d6e-e5689544a9b0-6c5e2148-1b77-4b9d-bdec-4123cbe24c4c.jpg?v=1542622424807"}],"options":["Title"],"created_on":"2018-11-19T17:13:44","modified_on":"2018-11-19T17:14:04","published_on":"2018-11-09T10:21:00"}; // $current_product object, ko phải string... if($current_product != null && arrPro[$current_product.id] == null) // null / undefined { arrPro[$current_product.id] = $current_product; sessionStorage.setItem('products_viewed', JSON.stringify( arrPro )); // // saving current index var jsonProIndex = sessionStorage.getItem('products_viewed_indexing'); var arrProIndex = []; if( jsonProIndex != null ) arrProIndex = JSON.parse( jsonProIndex ); arrProIndex.push($current_product.id); sessionStorage.setItem('products_viewed_indexing', JSON.stringify( arrProIndex )); // } var jsonProIndex = sessionStorage.getItem('products_viewed_indexing'); var jsonProducts = sessionStorage.getItem('products_viewed'); var arrProIndex = []; var $strHTML = ''; var $countViewedItem = 0; var $intMaxViewedItems = ''; if($intMaxViewedItems == '') $intMaxViewedItems = 3; else $intMaxViewedItems = parseInt($intMaxViewedItems); if(jsonProIndex != null & jsonProducts != null & $current_product != null ) { //parse indexing, products... arrProIndex = JSON.parse(jsonProIndex); arrPro = JSON.parse( jsonProducts ); // assign count_items = 0; for (i=0; i
\n\n","summary":null,"template_layout":null,"available":true,"tags":["giày nữ","giày thể thao","Giới_nữ","khỏe khoắn","Loại_Thể thao","năng động","trẻ trung"],"price":169000.0000,"price_min":169000.0000,"price_max":169000.0000,"price_varies":false,"compare_at_price":300000.0000,"compare_at_price_min":300000.0000,"compare_at_price_max":300000.0000,"compare_at_price_varies":false,"variants":[{"id":21823591,"barcode":null,"sku":"Z18-171118-38","title":"Default Title","options":["Default Title"],"option1":"Default Title","option2":null,"option3":null,"available":true,"taxable":false,"price":169000.0000,"compare_at_price":300000.0000,"inventory_management":"bizweb","inventory_policy":"deny","inventory_quantity":2,"weight_unit":"kg","weight":700,"requires_shipping":true,"image":null}],"featured_image":{"src":"https://bizweb.dktcdn.net/100/060/498/products/z18-35-36-37-37-38-38-39-1-17-11-18-3dfb0017-9ef6-42e3-958f-69ebecd906db-6b581015-fcfc-4664-af21-30ac339747b4-596b56d7-8fa2-4e78-80af-42112f8046d4.jpg?v=1542622424807"},"images":[{"src":"https://bizweb.dktcdn.net/100/060/498/products/z18-35-36-37-37-38-38-39-1-17-11-18-3dfb0017-9ef6-42e3-958f-69ebecd906db-6b581015-fcfc-4664-af21-30ac339747b4-596b56d7-8fa2-4e78-80af-42112f8046d4.jpg?v=1542622424807"},{"src":"https://bizweb.dktcdn.net/100/060/498/products/z18-35-36-37-37-38-38-39-2-17-11-18-97adbe7b-0cad-4633-b5a2-b69bfae33818-7916444d-20eb-4422-9d6e-e5689544a9b0-6c5e2148-1b77-4b9d-bdec-4123cbe24c4c.jpg?v=1542622424807"}],"options":["Title"],"created_on":"2018-11-19T17:13:44","modified_on":"2018-11-19T17:14:04","published_on":"2018-11-09T10:21:00"}; \n
\n\n","summary":null,"template_layout":null,"available":true,"tags":["giày nữ","giày thể thao","Giới_nữ","khỏe khoắn","Loại_Thể thao","năng động","trẻ trung"],"price":169000.0000,"price_min":169000.0000,"price_max":169000.0000,"price_varies":false,"compare_at_price":300000.0000,"compare_at_price_min":300000.0000,"compare_at_price_max":300000.0000,"compare_at_price_varies":false,"variants":[{"id":21823591,"barcode":null,"sku":"Z18-171118-38","title":"Default Title","options":["Default Title"],"option1":"Default Title","option2":null,"option3":null,"available":true,"taxable":false,"price":169000.0000,"compare_at_price":300000.0000,"inventory_management":"bizweb","inventory_policy":"deny","inventory_quantity":2,"weight_unit":"kg","weight":700,"requires_shipping":true,"image":null}],"featured_image":{"src":"https://bizweb.dktcdn.net/100/060/498/products/z18-35-36-37-37-38-38-39-1-17-11-18-3dfb0017-9ef6-42e3-958f-69ebecd906db-6b581015-fcfc-4664-af21-30ac339747b4-596b56d7-8fa2-4e78-80af-42112f8046d4.jpg?v=1542622424807"},"images":[{"src":"https://bizweb.dktcdn.net/100/060/498/products/z18-35-36-37-37-38-38-39-1-17-11-18-3dfb0017-9ef6-42e3-958f-69ebecd906db-6b581015-fcfc-4664-af21-30ac339747b4-596b56d7-8fa2-4e78-80af-42112f8046d4.jpg?v=1542622424807"},{"src":"https://bizweb.dktcdn.net/100/060/498/products/z18-35-36-37-37-38-38-39-2-17-11-18-97adbe7b-0cad-4633-b5a2-b69bfae33818-7916444d-20eb-4422-9d6e-e5689544a9b0-6c5e2148-1b77-4b9d-bdec-4123cbe24c4c.jpg?v=1542622424807"}],"options":["Title"],"created_on":"2018-11-19T17:13:44","modified_on":"2018-11-19T17:14:04","published_on":"2018-11-09T10:21:00"}; var strHTML = get_viewed_items_html(current_product); //console.log(current_product); });