Skip to main content

All Questions

Tagged with
-2 votes
1 answer
120 views

Issue while Making shopping cart

So I was programing shopping cart project and I have a issue. I wanted to display the details of the data stored in local storage in cart.html. When running the code the program cannot find .name or ...
Dhruv Giri's user avatar
0 votes
0 answers
19 views

Can HTML floating cart widget in </body> be kept off the Home page?

I have HTML code that I use in the < / body > section of my website for a universal floating "View Cart" widget so that items added to the shopping cart can be viewed from any page on ...
ampro415's user avatar
0 votes
0 answers
19 views

Display x amount left until discount - liquid Shopify

I want to show a message how much client needs to spend more until he gets additional discount. I have 4 discounts setup in shopify discounts. 2% off entire order • Minimum purchase of €81.00 3% off ...
Radvis's user avatar
  • 21
0 votes
0 answers
40 views

how to have stripe charge for shipping and only have one country for payments

so im setting up my website and currently can't charge for shipping and using stripe. I want to be able to do this but it isn't working. do I need to do this in the site or on code. next on the ...
Reece Pike's user avatar
1 vote
1 answer
77 views

Problem with calculating the total price in shopping cart

I have trouble calculating the total price after adding products to the cart. Instead of adding numbers, the variable adds characters to create a string. Add to cart function in Vanilla JS: const ...
lis3q's user avatar
  • 11
0 votes
1 answer
93 views

How to remove cart item from the list using jquery?

I have an error that complain my function is not defined within the scope of my document. I debugged and clear my cache, somehow i might miss something and need some help to fix this problem. Below is ...
MyLegend2020 Wilson's user avatar
1 vote
0 answers
90 views

The cart is not updating any item when add to button is called

I have an issue with my cart. Basically when a user clicks add to cart it is supposed to add that item to cart for view. Currently I am getting failed to add item from JavaScript side. When debugging ...
HengOver Britis's user avatar
0 votes
1 answer
167 views

How to make the code display all the products saved in cartData in the shopping cart but not only the last product?

I think the solution could modifying the last line cartItems.innerHTML = cartHTML to be increasingly repeatable with the loop based on the number of the products in the cartData (based on its length). ...
Mounir Guesbaya's user avatar
-1 votes
1 answer
129 views

Moving Items from one html page to another

how to move an item in a list from one html page to another without or with using localStorage.set-getItem I am makimg an e commerce website. When my client clicks the "add" button of an ...
Osama Tawfeq's user avatar
0 votes
1 answer
100 views

Shopping Cart Update Total Function doesnt work

I am building an eCommerce store website, and I am facing an issue. The function updateCartTotal doesn't work at all. The script is also added to the bottom of the HTML body. Thanks in advance. HTML: &...
Shehzad 's user avatar
0 votes
1 answer
94 views

How do I add a Remove button that removes the entire row with localstorage for shoppingcart

Im new to javascript, I wanted to add a remove button on my shopping cart, how do I make one that removes 1 row from the local storage. My table for my shopping cart is in my javascript and I cant ...
Mohamad Faudzie Maliga's user avatar
0 votes
1 answer
1k views

How can I add remove items and increment the quantity and increase the price while incrementing or decrementing the quantity of my cart. code by telmo

This is the code from telmo sampiao's shopping cart series, im missing remove items and increment/decrement buttons while also including it on local storage. function displayCart(){ let cartItems =...
Mohamad Faudzie Maliga's user avatar
0 votes
0 answers
188 views

getElementsByClassName showing null when there is an object with that class

Trying to get a shopping cart on my website work, fails completely. For some reason, the getElementsByClassName method keeps returning null even though I can clearly see that one of the objects have ...
A Choudhury's user avatar
-1 votes
1 answer
458 views

How can I get a single product in my array when adding to shopping cart?

The problems I'm having right now is that when I press any "buy" button it adds the whole array to my shopping cart. I would like to only add the product that I press. I've been stuck for ...
carlsby's user avatar
  • 47

15 30 50 per page
1
2 3 4 5
10