All Questions
Tagged with cart javascript
239
questions
1
vote
1
answer
29
views
Force State/County field to be required in WooCommerce Shipping Calculator
I am trying to make sure that the Shipping State field is selected in the shipping calculator.
Using the solution here works great for the City and Postcode fields like this:
jQuery('#...
0
votes
1
answer
23
views
How to add and remove sessions from jinja template? or eventually how to make a cart functionality?
Is there any way to manage (add and remove) sessions from Jinja template without interacting with any kind of API or page reload?
Im making a cart function for a store website, and I wanted to store ...
0
votes
1
answer
43
views
Remove Item from cart in ASP.NET in stepForm
this is my method for add and remove Items from session :
public async Task<IActionResult> AddToCart(int chefFoodId, bool stayInCartPage = false)
{
var item = await _orderService....
0
votes
0
answers
22
views
having trouble changing product quantity in cart table. plain JS
New to programming. I dynamically add products to cart table. I include product image, name, price and I have quantity span buttons. I can see that when quantity buttons are clicked correct item - id ...
0
votes
0
answers
26
views
Clearing the browser history and django session
I have an application in django, in it you can add a tourist tour to your cart, the basket is stored in the session. The tour has a model, and the models field is available.It is responsible for the ...
0
votes
0
answers
22
views
Limit value of input on page load
I've got a shopping cart where I need to limit the quantity of certain items. The quantity amount is an input number field.
Using a combination of max and onchange attributes, and the following ...
0
votes
1
answer
56
views
How to optimize checkbox selection logic and minimize loops in React?
I'm working on a React project where I have multiple lists of items with checkboxes, similar to the checkbox selection feature in the shopping cart page of Shopee. Currently, I've implemented the ...
0
votes
0
answers
27
views
Cart ui not loading data after reload although data are in local storage
I'm encountering an issue where a cart UI isn't loading data after a reload, even though the data is stored in local storage. I'm stranded on this can one help me on this have tried troubleshooting ...
1
vote
0
answers
30
views
Storing cart items in browser using php cookies
Anytime I clear cookies and refresh the page, I think null is added to the cookies and the total items added to cart shows as 1 but nothing shows in the cart which makes me get this error when ...
0
votes
1
answer
84
views
How to set increase or decrease function in cart
when i select the item in cart, it is selected. But when i try to increase the quantity, the price does not change and i have to recheck to update the price. Please help as i cannot figure out how to ...
1
vote
1
answer
77
views
Items not being displayed in cart
I'm encountering an issue with my React Redux Cart component where although items are being added to the cart state via the addItem action, they aren't rendering on the Cart page.
Problem:
When I add ...
0
votes
1
answer
555
views
Bad fetch request (400) with Shopify, removing item from cart using /cart/change.js
UPDATED WITH WORKING LINK
I am new to javascript as well as using a site like stackoverflow. If I am missing any info or can make it easier to help in someway just let me know. Really banging my head ...
0
votes
1
answer
38
views
update variable automatic when api data is changed
there in an button called add to card when button is clicked this action performed
<code>
function addtocart() {
if (localStorage.getItem("userid")) {
const itemdata = {
...
0
votes
0
answers
16
views
'Add to Cart' not working properly with this template
I would so greatly appreciate some help and understanding from the community. I'm a front end developer and we've signed on a client that is wanting a CBD/Hemp shop. I developed one on Wordpress, but ...
0
votes
0
answers
42
views
Shopping cart item gets stored in a different page
Hello everyone I have been having trouble getting the shop page to add an item to the shopping cart which is on a different page, the shopping cart works on the same page as the shop, but how do I get ...