Skip to main content

Questions tagged [shopping-cart]

Shopping cart systems for e-businesses such as online shops.

shopping-cart
0 votes
0 answers
27 views

How do I display an image in a Modal Window Shopping Cart (Javascript/Bootstrap)

I have used someone else's code as I am very new to Javascript. I have managed to get the add to shopping cart functioning, displaying product title, price etc. but would like to add a small thumbnail ...
Steven's user avatar
  • 1
-1 votes
0 answers
30 views

My Quantity increase button is not enabling when i reduce my quantity from maximum. I am using ajax for increasing and decreasing quantity in my cart

$(document).ready(function() { function updateQuantity(variantId, newQuantity) { const basePrice = parseFloat($('#quantity-' + variantId).data('base-price')); //const totalPrice = ...
Nisha Mashhood's user avatar
0 votes
0 answers
25 views

Get From Session in .NET

This is my methods for get session and save in. I set session method in correct way and write service in IOC: service.AddHttpContextAccessor(); public List<CartItemViewModel> GetFromSession() ...
Maryam12 forex's user avatar
0 votes
1 answer
42 views

Dynamic edit form for each item in a shopping cart

I want the user to be able to edit the quantity of an item in the shopping cart without opening a new page or dialog. The quantity displayed in the cart should turn into a drop-down menu, and the user ...
necrophade's user avatar
0 votes
2 answers
61 views

How to update quantity and total price for each SKU in JavaScript?

I'm working on a shopping cart functionality for a fictitious online store. The core of this functionality is a Cart class that manages the information and performs calculations. This class doesn't ...
mlpz's user avatar
  • 1
0 votes
1 answer
50 views

How do I connect the Home, Shopping cart, and add to cart with each other?

I've been trying to direct the add to cart button on the home page of the website(for online shopping) to the addtocart file and the shopping cart. I just can't seem to find what's wrong. Here are the ...
ARA12's user avatar
  • 13
1 vote
1 answer
105 views

Cypress testing issue: Cart modal not visible

I'm forwarding the code containing the exemplary working steps, finishing with clicking the Add to Basket button. Steps after that should consider that a cart modal appears, and Cypress should click ...
No Tools No Craft's user avatar
-1 votes
1 answer
25 views

Items disappear from the cart icon on the home page

I add a product to the cart and when I return to the main page it disappears. Then it goes back to any other URL on the site I have deactivated lite speed cache, deleted the server cache and nothing, ...
Manuel Cuberos Reyes's user avatar
1 vote
1 answer
38 views

How to add quantities from a specific items in React

i have an array like this const products = [ { id: 1, name: "Apple", price: 10, img: "apple.jpg" }, { id: 2, name: "Banana", price: 20, img: "banana.jpg" }, ...
callmecua's user avatar
0 votes
0 answers
80 views

WooCommerce - Empty Cart Page Reload issue

I have an issue when i remove product from the cart and the page refresh to the empty cart page. I use this inside my functions.php file to modify the empty cart page : add_action( '...
tonarii's user avatar
  • 35
0 votes
1 answer
47 views

How to initialize a state with use reducer so it don't clear on reload in React

I am working on a react shopping e-commerce website and i am using useContext and useReducer to set my cart state but each time i add to cart and reload the page my cart clears and reinitialize each ...
boop's user avatar
  • 3
0 votes
0 answers
26 views

NextJs 14 useShoppingCart and Stripe how to redirect to stripe checkout page after click button

I got error after click button function here is my code. page.js const { cartCount , cartDetails ,formattedTotalPrice ,clearCart , redirectToCheckout } = useShoppingCart(); const onCheckOut = ...
Newbie's user avatar
  • 47
-2 votes
1 answer
118 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
18 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
17 views

Display x amount left until discount - liquid

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. I achieved needed behaviour with liquid: {% assign ...
Radvis's user avatar
  • 21

15 30 50 per page
1
2 3 4 5
148