Ecommerce Website | Add to Cart | Delete from Cart | HTML, CSS & JavaScript

Поделиться
HTML-код
  • Опубликовано: 12 ноя 2022
  • #html #css #javascript #tutorials
    Here we will learn to create a product page design and its functionality.
    Using the map method, we will add items to the cart and delete the individual item from the cart.

Комментарии • 233

  • @learning-axis
    @learning-axis  8 месяцев назад +15

    source code: shorturl.at/htH12

  • @samoeurnartjr9535
    @samoeurnartjr9535 9 месяцев назад +3

    It kind of videos of video that help us to improve for build website using HTML CSS and JS , good videos

  • @kdeyvlog9225
    @kdeyvlog9225 Год назад +5

    First like video thank q very much

  • @likeaboss5736
    @likeaboss5736 Год назад +1

    TU ES O SALVADOR!!!! OBRIGADO RONALDO DE DESENVOLVIMENTO WEB

  • @ThomasBui359
    @ThomasBui359 Год назад +15

    I can't get enough of this video. It's one of those rare gems that you want to watch over and over again, and each time you notice something new and exciting.

  • @hakoware101
    @hakoware101 6 месяцев назад +2

    thanks for your work! hoping for more videos in the future!

  • @teresiaaritonang4457
    @teresiaaritonang4457 Год назад +1

    Thankyou, sir. It's work 🙏

  • @shishirislam8948
    @shishirislam8948 Год назад +2

    Nice Video...Very helpful

  • @sahilrana-hq6gq
    @sahilrana-hq6gq 4 месяца назад

    Its just osm❤😊

  • @andresmandique3405
    @andresmandique3405 Год назад +3

    Thank you, your video is awesome!

  • @akejeludavidojoshimite646
    @akejeludavidojoshimite646 5 месяцев назад +2

    Hello @Learning Axis, I really like your video but i cant find a way to figure out how to use the localstorage to keep the igem in cart after refresh of page.

  • @christiandavebuco
    @christiandavebuco Год назад +1

    thank you so much for this

  • @Hstiklv2007
    @Hstiklv2007 10 дней назад +1

    Very helpful, thank you so much❤

  • @kidstime220
    @kidstime220 4 месяца назад +1

    Thank you sir

  • @sheharyarahmed6829
    @sheharyarahmed6829 9 месяцев назад +2

    Brilliant, brilliant, brilliant!!!!

  • @funwithlaiba7186
    @funwithlaiba7186 7 месяцев назад +2

    Amazing Video! I always had cart problems and every video i had seen was not-responsive or something like that. Your video was all I needed to achieve my whole website up to the point. Great Work, Keep It Up! Also, do you have a video on a login/sign up page in html? Please Inform me.

  • @ayen0449
    @ayen0449 Год назад +3

    you use innerHTML a lot and it is said to be a bad habit as far as security is concerned. is it on purpuse?

  • @Study-ce3zl
    @Study-ce3zl Месяц назад +1

    how to get it saved , so even if i open it after closing the items i put on carts are still there

  • @pcelarstvosanovic5083
    @pcelarstvosanovic5083 Год назад +1

    Hello.
    I like your video its so easy to follow, great work.
    I have a question, how to add to cart products based on weight, example 14€/kg,?

    • @learning-axis
      @learning-axis  Год назад +3

      first, you have to add weight and unit price to objects of the array.
      Next, create a function that calculates the price according to the weight.
      Last, call that function into the main function

  • @momanali6103
    @momanali6103 Месяц назад

    Sir! Hum java k code ki jaga image ka code wasay nai likh skty div me simple ??

  • @learningprogramming1308
    @learningprogramming1308 8 месяцев назад

    What datatype u have choose for image column?

  • @Franciscoanselem
    @Franciscoanselem 2 месяца назад

    what if is a multiple time you select a goods like 30times would you be clicking add to cart 30 times

  • @jimboymaningas5967
    @jimboymaningas5967 Год назад +2

    Hello, i liked your video tutorial, can you please help me to add the add to cart into database phpmyadmin, and how to display the add to cart into checkout page and the checkout is also added into database

  • @abulbashar68
    @abulbashar68 Год назад +2

    Awesome video am watch your full video. if you give me your source code I would benefit. Thank You so much for uploading this kind of video.

  • @starexgenius6388
    @starexgenius6388 9 месяцев назад +2

    I think posting the image links will help too 😊

    • @learning-axis
      @learning-axis  9 месяцев назад

      I provided the link with source code and image files in description

    • @DurgaDevi-en9eh
      @DurgaDevi-en9eh 8 месяцев назад

      ​@@learning-axiswhere is the source code?

  • @PoojaJadhav-kx2by
    @PoojaJadhav-kx2by 10 месяцев назад

    Thank you so much, i really want it, thank you thank you thank you really thankful 🤧🤧

  • @olivierbakoyogo1324
    @olivierbakoyogo1324 10 месяцев назад +1

    Hello sir @Easy Learn Axis, thank for this amazing video,
    just wonna know what font awesome is used for and how to use it on your code ?
    Im a beginner in coding thx. 1:32

    • @bojacksworldwideweb
      @bojacksworldwideweb 6 месяцев назад

      Font-awesome is a library of CSS classes and icons that you can import into your code via a script tag that you copy and paste. they have basic and premium subscriptions.

  • @tasabehahmed5950
    @tasabehahmed5950 Год назад +1

    Can you please explain local storage for this code?

  • @FaiZunGaming
    @FaiZunGaming Год назад +19

    Could you provide source code??

  • @_Rajkhatri_
    @_Rajkhatri_ Год назад +6

    can i get complete code please reply?

  • @priyankanbd1939
    @priyankanbd1939 Месяц назад +1

    Hlw sir, Js code mai error aa rhii h sir!? Plz correction btaa dijiye

  • @Cheetohzz
    @Cheetohzz 10 месяцев назад

    amazing job! i had an easy time following along and recreating it. My only question is how can I make it look better on mobile phone? when i pull it up on my phone, it looks squished

    • @natashamuhanjiavugwi1807
      @natashamuhanjiavugwi1807 7 месяцев назад

      You can use media queries for all screens to be responsive, that's what I usually use and it works well.

    • @Andre-oz7cw
      @Andre-oz7cw 7 месяцев назад

      @@natashamuhanjiavugwi1807 what is media queries

  • @alexallcool
    @alexallcool 4 месяца назад +1

    @Learning Axis, Hi the page looks great, I opened the page using the code you provided to download, I noticed if a few products added to cart the image container starts stretching down the page moving images, could you please check that?

    • @learning-axis
      @learning-axis  4 месяца назад

      ok, you have to create different div container for cart items. I think I have used single div container for both (Products and cart items).

  • @yanamax193
    @yanamax193 Год назад +3

    Awesome channel. Thanks a lot. Is it possible for each lesson source code? Thank a lot again.

    • @learning-axis
      @learning-axis  Год назад +1

      Yes I will provide saource code, Thank you

    • @kavipriya8871
      @kavipriya8871 Год назад

      @@learning-axis source code

    • @learning-axis
      @learning-axis  Год назад +6

      @@kavipriya8871 source code: shorturl.at/htH12

  • @mdmydulislam819
    @mdmydulislam819 9 месяцев назад

    when the page reloads the cart is empty. but I won't stay the cart element

  • @doraimeha4823
    @doraimeha4823 4 месяца назад +1

    thank uuu

  • @giacoco2726
    @giacoco2726 Год назад

    do i make it work if the page from where i add the item are different from the one of the cart?

  • @syra7567
    @syra7567 Год назад +2

    Kindly help me with this... I am unable to understand that why he is writing the html code in js file ... What it's called and where I can learn about it 8:08
    Help please...

  • @MrWirus36
    @MrWirus36 Год назад +1

    How could i add separed category to this products. I would like to see something like this: category a: products; category b: products etc. I would like to get sample code if you want to help

    • @learning-axis
      @learning-axis  Год назад +1

      You can do it by using the filter method.
      And I will also create a video on this within 2 or 3 days.
      Thank you

    • @MrWirus36
      @MrWirus36 Год назад

      @@learning-axis But what about adding products to a separate category (after click buy), it requires some complex stuff, indexing everything and so on.

    • @learning-axis
      @learning-axis  Год назад

      hello hope you are fine below is the link for category filter: ruclips.net/video/62QlzC2CVco/видео.html

  • @Misslevelup-
    @Misslevelup- 6 месяцев назад +1

    how are you getting the image to appear from js to the browser. because i followed the steps and the images are not showing please.

    • @Misslevelup-
      @Misslevelup- 6 месяцев назад

      because i put all my images in res, i'm really new to this.

    • @learning-axis
      @learning-axis  6 месяцев назад

      enter correct paths of all images

  • @mari-oo6co
    @mari-oo6co Год назад +6

    Hello, this is a bit of a stupid question but how do you get the whole program to run on google chrome (because right now I only get the HTML one running on chrome without the css and javascript)? Thank you for your video, it is great!

    • @learning-axis
      @learning-axis  Год назад +1

      The whole program is running on your chrome. You just need to open html file on chrome

    • @pandipatipavan3804
      @pandipatipavan3804 Год назад +1

      ​@@learning-axis Please share the code files and the links in the description as soon as possible 🙏 thank you so much

  • @shyamsharma6257
    @shyamsharma6257 Год назад +1

    Bhai video mai song daalne ki wajai explain karna jyada sahi hota hai

  • @brayanbrianoliveira2159
    @brayanbrianoliveira2159 Год назад

    hello, do you have github?

  • @Nothing1997i
    @Nothing1997i Месяц назад +1

    How can I show the total price on this page from a different page?
    (Payment page from your video)

    • @learning-axis
      @learning-axis  Месяц назад

      you need to create a separate component for that

  • @studyingwithsetsow3728
    @studyingwithsetsow3728 9 месяцев назад

    The downloaded code is running yet when i copy and paste it does not run do you know what might be causing this?

  • @cricketjourney7771
    @cricketjourney7771 Год назад

    How to host HTML ecommerce website through C-panel

  • @thejanaabeydeera
    @thejanaabeydeera Год назад +2

    cart image is not showing..pls provide th fontawsm link

    • @learning-axis
      @learning-axis  Год назад +1

      you should create your own fontawsm account

  • @thejanaabeydeera
    @thejanaabeydeera Год назад +1

    How to add another set of products to the next row

    • @learning-axis
      @learning-axis  Год назад +1

      you just need to put image and details in array of objects

  • @qpunisher8999
    @qpunisher8999 Месяц назад

    hello, great video, but what if my cart is on a diffrent html page?

    • @qpunisher8999
      @qpunisher8999 Месяц назад

      for those who have the same problem i think that if you link the two html to the same .js it should work

  • @user-qx8in6oc8k
    @user-qx8in6oc8k 7 месяцев назад

    share another link for the code please the link you sent doesn't work

  • @user-yu3lv4ii7u
    @user-yu3lv4ii7u Год назад +1

    image error pls help me

  • @animeanime8907
    @animeanime8907 Год назад +1

    Hello, anyway to send the cart's info to email?

  • @balochzaicoding5871
    @balochzaicoding5871 Год назад +2

    Could you provide source code ?? I have same this one project

  • @nikolatomic4306
    @nikolatomic4306 Год назад +1

    What if your cart is table? How to add all these things inside the table?

    • @learning-axis
      @learning-axis  Год назад

      Just use the table tag and assign it an id.

    • @nikolatomic4306
      @nikolatomic4306 Год назад

      @@learning-axis i already did it, but i want when press add to cart button to move product name, price, img etc. to the table but not working well

    • @learning-axis
      @learning-axis  Год назад

      @@nikolatomic4306 See this video ruclips.net/video/bbaRfHMN4xI/видео.html
      I used table tag for cart items. It may help you.

  • @baraahawa
    @baraahawa 8 месяцев назад +1

    We can't find the source code in the description! Can you give it here to us please.

    • @learning-axis
      @learning-axis  8 месяцев назад

      source code: shorturl.at/htH12

  • @zckai756
    @zckai756 Год назад +2

    Hello
    how to send cart details to database?

  • @shamaafrin4031
    @shamaafrin4031 9 месяцев назад +20

    Why so much java script code ? 🙄

    • @editox_plays
      @editox_plays 4 месяца назад +4

      It's real beauty 😂 of Javascript

    • @mhkk1491
      @mhkk1491 15 дней назад

      I am not sure at all what you were expecting

  • @chroeurnvathana1241
    @chroeurnvathana1241 5 месяцев назад +1

    Bro mean code ot

  • @bojacksworldwideweb
    @bojacksworldwideweb 5 месяцев назад +1

    holy-shitt balls, this is the moust challenging application I have made!! those returns stamtents aint NO joke!!

    • @learning-axis
      @learning-axis  5 месяцев назад

      cool

    • @bojacksworldwideweb
      @bojacksworldwideweb 5 месяцев назад +1

      @@learning-axis thank you for your guide, I learned new techniques I didn't know.

    • @learning-axis
      @learning-axis  5 месяцев назад

      thank you@@bojacksworldwideweb

  • @unisarofah3869
    @unisarofah3869 7 месяцев назад +1

    Maaf mau tanya itu bagaimana ya cara memanggil fotonya di JS?

  • @vishnupriyapriya6729
    @vishnupriyapriya6729 Месяц назад

    Can you please tell how to connect it to my website 😭my sir is gonna check tomorrow!

  • @mahadevmushrooms
    @mahadevmushrooms Год назад

    kasooti

  • @gitanjaliyadav7598
    @gitanjaliyadav7598 11 месяцев назад

    I got error at line number 36 and 37 in js file ...please help

    • @learning-axis
      @learning-axis  11 месяцев назад

      there may b a erroe in your code. see description for source code

  • @anatatowatashi9377
    @anatatowatashi9377 Год назад +1

    3:55
    5:57

  • @arpitapazare1039
    @arpitapazare1039 Год назад +4

    can you provide the source code of this video?

  • @deepbhikadiya8070
    @deepbhikadiya8070 Год назад +1

    Source code link is not working please give another link fast

  • @gideonaidoo9604
    @gideonaidoo9604 27 дней назад

    how-to-add-items-to-the-cart-from-different-html-pages-using-javascript

  • @tallywacker1059
    @tallywacker1059 6 месяцев назад

    It seems that the link for the source code cannot be reached?

  • @azimattar5961
    @azimattar5961 Год назад

    Is this project suitable for a resume for beginners?

    • @learning-axis
      @learning-axis  Год назад

      may be

    • @learning-axis
      @learning-axis  Год назад +1

      you may combine videos(pagination, category filter, and add to cart) to make project for resume.

  • @zizijaafar3852
    @zizijaafar3852 Год назад

    What is the src image in

    • @learning-axis
      @learning-axis  Год назад

      These images are stored in array of object. When we need any image we call it from that array.

  • @lyric-lover
    @lyric-lover Год назад +1

    Can I add 50 product in same page?

  • @coolpatatas9659
    @coolpatatas9659 Год назад

    How can to add check out button below the total

    • @coolpatatas9659
      @coolpatatas9659 Год назад

      Like storing the total into MySQL db

    • @learning-axis
      @learning-axis  Год назад +1

      @@coolpatatas9659 it can be done by using php

    • @coolpatatas9659
      @coolpatatas9659 Год назад

      Can you do another tutorial using this project?

    • @learning-axis
      @learning-axis  Год назад

      @@coolpatatas9659 Now I am just making front-end tutorials. Later I will start back-end.

  • @AmeenaSattar-id3ox
    @AmeenaSattar-id3ox Месяц назад +1

    sir i have a question k java ma img ka name likhna apnay sath image b likha wo kis liya likha ha meri image show hi nai hu rai ma nay likha tu
    kindly plz reply

    • @learning-axis
      @learning-axis  Месяц назад

      imgae ka complete path likhna prta ha.
      image main image file store krty hain phir us ko map method main call kraty hain.

    • @AmeenaSattar-id3ox
      @AmeenaSattar-id3ox Месяц назад

      @@learning-axis sir i cant get your point plz tell in detail

    • @learning-axis
      @learning-axis  Месяц назад

      @@AmeenaSattar-id3ox first I declared image element in object of array as you can see In javascript.
      after that I use map method and then I call image from that array.

    • @Nothing1997i
      @Nothing1997i Месяц назад +1

      Please answer my comment 🙏🏻​@@learning-axis

  • @anvu-gm4nw
    @anvu-gm4nw Год назад +1

    when i click on the button it shows an error .....Cannot set properties of null (setting 'innerHTML')

    • @learning-axis
      @learning-axis  Год назад +1

      source code: shorturl.at/htH12
      see this code you may get your problem.

    • @anvu-gm4nw
      @anvu-gm4nw Год назад

      @@learning-axis thanks you

  • @Tech_Tarzan1999
    @Tech_Tarzan1999 Год назад

    why we have use [...new set ] line no 27

  • @Ahmed-Shalaby
    @Ahmed-Shalaby 11 месяцев назад +1

    ❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤

  • @sajanmj9625
    @sajanmj9625 Год назад

    How can I change the images

  • @izunduchukwuemika7915
    @izunduchukwuemika7915 Год назад +2

    My Images are not showing

    • @learning-axis
      @learning-axis  Год назад

      source code: shorturl.at/htH12\
      check this code if it is working?

    • @sanasingha7600
      @sanasingha7600 Год назад

      You link is not working

    • @learning-axis
      @learning-axis  Год назад

      @@sanasingha7600 source code: shorturl.at/htH12

    • @sanasingha7600
      @sanasingha7600 Год назад +1

      Thanks now it's working 🥰

  • @youtubevideo557
    @youtubevideo557 Год назад

    How photo???

  • @presentkhoza6769
    @presentkhoza6769 8 месяцев назад +1

    Can you please share the source code with us. Please🥺

  • @NUMBER-_-ONE
    @NUMBER-_-ONE 10 месяцев назад

    Responsive??

  • @ii_Faz3a
    @ii_Faz3a 8 месяцев назад

    where images?

  • @mdleyan118
    @mdleyan118 3 месяца назад

    Please source code give in the description plzz

  • @razajawwad9967
    @razajawwad9967 Год назад +1

    Source Code Please.....

  • @Podcasthub513
    @Podcasthub513 11 месяцев назад

    One problem images are not showing

    • @learning-axis
      @learning-axis  11 месяцев назад

      did to write the correct path of images?

  • @mahinsurana1706
    @mahinsurana1706 9 месяцев назад +1

    hi can you provide the source code for this video

    • @learning-axis
      @learning-axis  9 месяцев назад

      there is a code link in description

    • @atharvdesai2638
      @atharvdesai2638 6 месяцев назад

      nahi hai desc mai lavde@@learning-axis

    • @learning-axis
      @learning-axis  6 месяцев назад

      source code: shorturl.at/htH12@@atharvdesai2638

  • @son3038
    @son3038 Год назад +2

    source code pls?

  • @nody6989
    @nody6989 Год назад +2

    I want the source code

  • @satyajeetsankpal8668
    @satyajeetsankpal8668 Год назад

    Image is not showing plzz help

    • @learning-axis
      @learning-axis  Год назад

      first you have to download images, then write the correct path of each image

    • @learning-axis
      @learning-axis  Год назад

      source code: shorturl.at/htH12

  • @poorveshsharm_ram7625
    @poorveshsharm_ram7625 9 месяцев назад +1

    I want the code please the full code

  • @vallientertainment4956
    @vallientertainment4956 6 месяцев назад

    how to add ₹ instead of $

  • @MaxStudioCG2023
    @MaxStudioCG2023 2 месяца назад

    another incomplette cart video ...(where is the case when customer add same product more times ,should have also that option with a + - arrow to select in the cart )

  • @serranogiffd.5744
    @serranogiffd.5744 Год назад +1

    source code?

  • @meriyemelhajoui4083
    @meriyemelhajoui4083 Год назад

    please code Source

  • @Vicky-og9em
    @Vicky-og9em Год назад +1

    Source code plZ

  • @ubaid.ur.rehman921
    @ubaid.ur.rehman921 Год назад +1

    Can y provide code ?

  • @carlvintlouisecalang3146
    @carlvintlouisecalang3146 6 месяцев назад

    where is the cartItem Id?

  • @karam_ah1359
    @karam_ah1359 Год назад

    How can you add a discount code to this?

    • @learning-axis
      @learning-axis  Год назад

      you mean promo code discount?

    • @karam_ah1359
      @karam_ah1359 Год назад +1

      Yeah so you can enter a code and then you get a percentage of money of your total

    • @learning-axis
      @learning-axis  Год назад

      @@karam_ah1359 watch this video: ruclips.net/video/bbaRfHMN4xI/видео.html

    • @karam_ah1359
      @karam_ah1359 Год назад +1

      @@learning-axis good vid! , but are you able to add the promo code to this code instead? If you can, would be much appreciated bro

  • @ezramelaku4075
    @ezramelaku4075 Год назад +2

    Source Code???

  • @inbarajan3189
    @inbarajan3189 Год назад +1

    Why image is not showing???

    • @learning-axis
      @learning-axis  Год назад +1

      you should download images. than write correct path of each image

    • @learning-axis
      @learning-axis  Год назад

      you can also download source code.
      link: shorturl.at/htH12

    • @inbarajan3189
      @inbarajan3189 Год назад

      @@learning-axis i already have a image in my system

    • @inbarajan3189
      @inbarajan3189 Год назад

      @@learning-axis it's possible to call a image in array of objects??

    • @learning-axis
      @learning-axis  Год назад

      @@inbarajan3189 yes you can call