Комментарии:
Is this work on vs code?
ОтветитьWorthless video, the is no details at all 😭
Ответитьwhere is the code script
ОтветитьAwesome! you save my life i can finish my project because of you ;-;
ОтветитьThank you very much. This video helped me a lot in my university project
Ответитьbut how can we buy them
Ответитьsir add to cart code portion is not working when i add something in cart.
Ответитьhello please this code works for me but just with two products ,when i add more it dont work can someone please help
Ответитьsir how can i add an add and retturn button using php?
Ответитьvar additemid = 0;
function addtocart(item) {
additemid += 1;
var selecteditem = document.createElement('div');
selecteditem.classList.add('cartimg');
selecteditem.setAttribute('id', additemid);
var img = document.createElement('img');
img.setAttribute('src', item.children[0].currentSrc);
var title = document.createElement('div');
title.innerText = item.children[1].innerText;
var label = document.createElement('div');
label.innerText = item.children[2].children[0].innerText;
var select = document.createElement('span');
select.innerText = item.children[2].children[1].value;
label.append(select);
var delbtn = document.createElement('button');
delbtn.innerText = 'Clear';
delbtn.onclick = function(){
selecteditem.remove();
}
var cartitems = document.getElementById('title');
selecteditem.append(img);
selecteditem.append(title);
selecteditem.append(label);
selecteditem.append(delbtn);
cartitems.append(selecteditem);
}
its not working special delbtn
ОтветитьI didn’t understand how to give the product information
ОтветитьNo code and no voice to explain what you doing and why you did it ...
ОтветитьPart 7 :
how to update cart add edit delete total amount
U ARE A LEGEND SHOUT OUT LEGEND GOOD STUFFF !!!
ОтветитьYou should say some important thing about the code, what code and why you are using for etc.
ОтветитьI want same functionality code in php plz help
ОтветитьCan you provide us with code?
ОтветитьThank uuuuuuuuuuuuuuuuuuuu 😀
ОтветитьThanks Sir ! Can I use const instead of var ? :)
ОтветитьIt is very helpful but,
I got problem while deleting from cart (Uncaught ReferenceError: documment is not defined)
what i do to solve it?
Thank you
Ответитьi love this video can i have a clue? sir on how to add an item and also the css design for display of an image sir thank you
Ответитьsource code?
ОтветитьHow works in console using brackets
ОтветитьHow do I do if I want to set prices?
ОтветитьImg is not coming after clicking add to cart source img is not coming sir.. Could you please help me sir
ОтветитьNo commantary
ОтветитьSir ise Google site per use ker sakte hai kiya
ОтветитьCan i seperate the cart to another page?
ОтветитьHow to fetch data?
ОтветитьDoes it work only with two products sir?
Ответитьhow do i add to cart item from page to page?
Ответитьbro please add the total function i cant do it
ОтветитьSimple to follow but please help, I keep getting the documentcreateElement is not defined error when it's time to add the title to the items in the cart
Ответитьthank you.....its very usefull
ОтветитьCan i get code
Ответитьsir please tell me the text editor name?
ОтветитьVery usefull and very nice. Thanks for share...
Ответить