Skip to main content

Questions tagged [cart]

A web cart or online shopping cart is a web app used to shop online. For questions related to CART -- Classification and Regression Trees -- use the tag [cart-analysis], or consider whether the topic is more appropriate for Cross Validated or Data Science Stack Exchange.

0 votes
0 answers
16 views

Product page quantity for variable product

In WordPress, I just want to add variable product types to the cart because I'm adding quantities to the variable products. It works for simple products, but for variable products, it's functioning ...
Muhammad Arhab'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
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 ...
user25325196's user avatar
0 votes
0 answers
29 views

Display text and variables above WooCommerce cart block, and in cart items components

I am trying to display "Hello World $some_php_variable_related_to_cart" above the WooCommerce cart block (in a proper way, using WordPress and WooCommerce API), and to update $...
Cuti's user avatar
  • 151
1 vote
0 answers
40 views

Add a custom notice in to WooCommerce mini cart widget

I would like it to display a message on top of a minimum order amount. Have just found code that puts a message in the cart page but would like it to show up in the side cart that opens when you click ...
Sofia Hjärtberg Zintio's user avatar
1 vote
1 answer
96 views

Use WC Kalkulator product field values to update WooCommerce cart item product properties

In WooCommerce, I use the WC Kalkulator plugin for a simple product (ID 4692). The problem is, this simple product has only static weight and dimensions values that get pulled into each cart item ...
Jreppe's user avatar
  • 13
1 vote
1 answer
41 views

Change WooCommerce product single add to cart button text only if the product is in cart

In WooCommerce, I would like to update the 'add to cart' text when the corresponding product is removed from the cart. I have the following code which changes the text when the product is added to the ...
Rv5's user avatar
  • 25
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
88 views

Auto Update WooCommerce Cart on cart item quantity change

I want to enable an AJAX auto update when user changes the quantity (first hiding "Update cart" button) in WooCommerce cart page. I followed the steps from this tutorial. So basically I use ...
Adam's user avatar
  • 5,932
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
0 votes
0 answers
24 views

Adding cart item key in WooCommerce Cart HTML table doesn't show up

My WooCommerce Woo Cart Table element does not show cart_item_key value on each row, which I need to AJAX update my cart. I tried creating a custom cart.php in a child theme, but that file is not ...
Adam's user avatar
  • 5,932
0 votes
0 answers
16 views

Applied condition not removing in Laravel darryldecode cart

I'm using Laravel 8 and using Darryldecode Package Reference : https://packagist.org/packages/darryldecode/cart to apply discount i'm using this method $couponExists=Coupon::where('code',$...
user3653474's user avatar
  • 3,709
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 ...
Magomed's user avatar
0 votes
0 answers
23 views

why recognize my models in an other app in django how can i call models in other app

from product.models import Product CART_SESSION_ID = 'cart' class Cart: def __init__(self, request): self.session = request.session cart = self.session.get(CART_SESSION_ID) ...
ali mirhashemi's user avatar
0 votes
0 answers
85 views

Modify cart item subtotal format in the WooCommerce cart block

In the cart shortcode, I use the woocommerce_cart_item_subtotal hook to display the item subtotal using wc_format_sale_price(), because I'm showing a deal. Here is the code: $subtotal = \...
Alexander's user avatar
  • 149

15 30 50 per page