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.
cart
3,219
questions
1
vote
1
answer
44
views
Shipping cost based on shipping zone and on items quantity steps in WooCommerce
i have a PHP code that counts shipping cost in woocommerce based on quantity steps in addition to another cost based on shipping zone, the sum of two costs give the total shipping cost. what i need ...
-1
votes
2
answers
58
views
Showing custom empty cart page . WooCommerce and Divi Theme
I’m working on an e-commerce site based on WooCommerce and the Divi theme. Specifically, when the cart is empty, I get a blank page (though the header and footer are present). I’d like to know if ...
0
votes
1
answer
34
views
Add specific product to cart together with the main product in WooCommerce
I try do something similar to 'product addons', but manually. I would have few simple products, that have to be as companions. Their ids will be the same. I want to make them as checkboxes, with ...
-1
votes
1
answer
40
views
I want to add my custom add to cart button [closed]
I'm using motta theme for WooCommerce, and i don't like their add to cart button, it's too big, i want it to be so simple like a plus button, can you guys help me?
I tried to add many suggested codes ...
0
votes
0
answers
19
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
0
answers
52
views
how to display woocommerce cart items in form and mail using contact form 7?
I have this code to create a custom tag for display woocommerce cart items in cf7 form and send cart items in email notifications. But in Email I can't figure out how show cart items like they are ...
0
votes
0
answers
29
views
Modify cart total and then order total when an order is placed in WooCommerce [duplicate]
I'm using this code to modify my total on the checkout page
However, if I place an order, the modified total is not reflected in the order itself, and still has the unmodified checkout total.
Can ...
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
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 ...
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()
...
0
votes
0
answers
21
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
24
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 $...
1
vote
0
answers
39
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 ...
1
vote
1
answer
83
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 ...
1
vote
1
answer
38
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 ...