Skip to main content

Questions tagged [shopping-cart]

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

shopping-cart
-2 votes
1 answer
41 views

Ajax is not working without refreshing the page [closed]

Ajax is not working without refreshig the page to make it work.I am coding an ecommerce website in django and need to show quantity of products in the cart but it dont show quantity without refresh ...
Mohi's user avatar
  • 3
-4 votes
0 answers
25 views

php mail function Is this method correct to send mail [closed]

Is this method correct to send mail from checkout page function sendInvoiceEmail($email, $invoiceNumber, $orderDetails) { $subject = "Your Invoice - $invoiceNumber"; $message = &...
Abdulrhman Alshalal's user avatar
0 votes
1 answer
28 views

Laravel : installation shoppingcart failed

//my composer.json { "name": "laravel/laravel", "version": "11", "type": "project", "description": "The ...
lara's user avatar
  • 1
0 votes
0 answers
30 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
26 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
46 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
68 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
52 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
124 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
28 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
41 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
82 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
28 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
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
18 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
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
-2 votes
1 answer
29 views

Problem transferring data from one site to another

I have a database with products in it, and I also have a shop.php page where all the products are displayed. If I click on a specific product there, I will be redirected to the product.php page and ...
Roland Toth's user avatar
1 vote
0 answers
40 views

WooCommerce Free Shipping Issue: Multiple Radio Buttons Dilemma on Orders Over free shipping price

I have set up a WordPress site with WooCommerce. My goal is to offer free shipping for orders over €75. On its own, it works fine, but I'm encountering a small issue. If I have a product that costs €...
Brango's user avatar
  • 21
0 votes
0 answers
29 views

Woocommerce free-shopping above a price is not reflecting at view cart

I have a created a website with wordpress and woocommerce. I want to remove the shippig-rates if the customer buy more than €75. So I have simple product called A and price is €39,- I can add this to ...
Brango'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
0 votes
0 answers
43 views

Price calculation by product quantity in shopping cart

I have a problem with my calculation by product quantity function. The checkout calculation function works perfectly. Increasing the quantity of one product and including its price also works great, ...
lis3q's user avatar
  • 11
0 votes
1 answer
33 views

Changing quantity as the displayed number

I have a problem with changing quantity as the displayed number. When I add products to the cart, everything works fine. For example, adds 5 products to the cart. However, when I click the trash icon ...
lis3q's user avatar
  • 11
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
58 views

Decrease Item JS

I am new at JS and struggle about shopping cart case. I use LocalStorage to store products and everything goes well. But when I tried to decrease the product by buttons in shopping cart, first product ...
Kmor Keltas's user avatar
0 votes
2 answers
113 views

Python Shopping Cart - How to use loops to limit certain inputs?

I'm creating a shopping cart that accepts discounts. How to limit discounts to only be applied once? print("Welcome to the Store!") print("Enter 1 to start registering your grocery"...
Noob's user avatar
  • 1
0 votes
2 answers
204 views

Add Same Product with different sizes and prices to the cart

I can add different products as individual arrays and I can also increase and decrease the quantities if the same product added. But I would want to add same product with different size. Below is my ...
Bashamlan Salem's user avatar
0 votes
0 answers
49 views

Delete/Hide "Cart" in Big Cartel Art Site

Can anyone help me to delete or hide the "Cart" tab in my Big Cartel art website? I want customers to contact me directly to purchase. Thanks so much! I tried deleting all of the code, and ...
Leaf Kizior's user avatar
0 votes
1 answer
85 views

Is it normal for the order_id foreign key to be null in shopping cart?

There are the following entities: Employees employee_id (PRIMARY KEY) first_name last_name Customers customer_id(PRIMARY KEY) first_name last_name login password Products product_id(PRIMARY KEY) ...
Ketrix's user avatar
  • 19
0 votes
2 answers
51 views

BehaviourSubject does not update template

I have an Angular 17 online store and I'm having problemas with BehaviourSubject not updating a components template. Clients choose products and they are stored on a CartProduct class: id, name, num (...
Iñigo Gorosabel's user avatar
0 votes
1 answer
124 views

how to hide Automatic add-to-cart modal confirmation after a few seconds (prestashop 8)

When a user click on add-to-cart-buton, a modal windows appear for confirrmation. this is not necessary. i would like hide automaticly the modal confirmation add-to-cart after a few seconds (...
Marc IOS's user avatar
0 votes
1 answer
96 views

How do I make a shopping cart to be able to interact with a server using node.js?

I am confused on how do I make a shopping cart to be able to interact with a server in the back end using node.js. This is what I got so far using JS. I have it as local storage, but I do not know how ...
Freddy Leonardo Sosa Duran's user avatar
0 votes
1 answer
45 views

Using TextFiled in Swift UI update two record same time

I using Textfiled where I can enter quantity of the product. I'm using $Binding property wrapper . This is a shopping cart view(Order view) . The problem is when I enter the values it update the both ...
Nus's user avatar
  • 165
0 votes
1 answer
183 views

SwiftUI tab view with Shopping cart

I have the view in swiftUI. I have the list of tab view . Here what I'm trying to do . when I click the add to cart button, I am expecting the cart value to increase and it working fine but the ...
Nus's user avatar
  • 165
2 votes
1 answer
179 views

How to update the text values based on button click in Swift [closed]

I have shopping cart app in swiftUI . Currently when I click the add to cart button that time , it is able to add the product record into view . But here is the problem . When I click the button twice ...
Nus's user avatar
  • 165
0 votes
0 answers
154 views

How to Make Stripe Checkout Sum Up Values?

Context: e-commerce Store that sends data to the Admin Dashboard and processes payments via Stripe Checkout. Built with React, Next.js, Prisma DB. ISSUE: Instead of accounting for the shippingCost and ...
Anabel's user avatar
  • 1
0 votes
1 answer
68 views

Unable to display the Image from List view

I have an simple SwiftUI shopping car app. In the home view app. I have list of product width add to cart button. I am expecting when user click the cart button it should add the items properties like ...
Nus's user avatar
  • 165
0 votes
0 answers
23 views

Retrieving items in cart

I'm trying to retrieve the items in the usercart from firebase. It's in this format :1231352385:2. The getitemsquantity() is retrieving the count. I need to use in the firebase query using whereIn, ...
Tony's user avatar
  • 1
0 votes
0 answers
49 views

How to add my offers to the cart with the 'add to cart' button?

"I have a dynamic product offer where I've performed calculations on the offer. The user has the option to select product variants, and now I would like to create an 'add to cart' button that ...
puskopapuskoall koulley's user avatar
-1 votes
1 answer
41 views

How can I change required layout when user clicks on button then add item button has to appear in Flutter

I am new to Flutter state management. I want the same functionality according to this video. https://streamable.com/6zm375?src=player-page-share. When the user clicks on button then add ttems button ...
VIKAS SHARMA's user avatar
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
0 votes
1 answer
101 views

How can I get data from my class sent to my shopping cart

I am building a shopping cart for my app using Provider. I can now push data to my cart from my cart model using a list index. However, I'd like to connect information from a class that I've created ...
KRAP's user avatar
  • 1
0 votes
1 answer
211 views

Pushing data to shopping cart; cart is always showing that it's empty

I have been attempting to add a shopping cart to my coffee app. When you press the 'one-time purchase' button, no data is pushed to the cart. My little error animation always plays in the emulator and ...
KRAP's user avatar
  • 1
0 votes
0 answers
44 views

Sometimes have click twice on the button for quantity change on the cart page on Shopify

- <input id="updates_large_{{ item.key }}" class="cart__qty-input" type="number" name="updates[]" value="{{ item....
Vinay Patial's user avatar
0 votes
0 answers
40 views

keep html visible data even after refreshing the page in localstorage javascript

I made a cart page with some items in it, I made a deleteItemFromCart() function that deletes the wanted to delete item. One thing I couldn't manage to do is store the changes to the browser so ...
Sarah Bader's user avatar
0 votes
0 answers
18 views

Getting error while editing or making template of cart in 2checkout

I want to customize the "Interface template" (shopping cart) of 2checkout.com. I don't know what's the issue but I am getting the error "Oh snap! Change a few things up and try again.&...
Code Lover's user avatar
0 votes
1 answer
119 views

Update the cart total amount after delete item from shopping cart

This is an e-commerce app, I am facing an issue related to (adding/removing) items from the cart, The problem happened when I added two items and then if I removed one of them, The total amount is not ...
Dr Mido's user avatar
  • 2,604
0 votes
1 answer
736 views

Adding quantity of all items in cart and not just 1 number per specific id

So I've got my cart up and running. The total price reflects all items in the cart, but the only issue is you can't tell how many total items there are. If I have one of an item that's fine since the ...
Metalmilitian85's user avatar

15 30 50 per page
1
2 3 4 5
45