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,224
questions
-2
votes
0
answers
19
views
Customize WooCommerce Storefront mini-cart header text based on cart items
I try to customize WooCommerce Storefront mini-cart header, so there are:
when there are no products in cart, it gives result A text;
when there are 1 product in cart, it gives result B text,
when ...
0
votes
0
answers
31
views
How to override a specific condition inside filter "woocommerce_add_to_cart_validation"
I am using WooCommerce subscription and Mollie Payments for WooCommerce plugin.
It supports multiple subscription product to be purchased on a single checkout process, however when user tries to do a ...
0
votes
0
answers
23
views
It inserts some times 1 or 2 or 3 or 4 rows every time. how to fix [closed]
Hello i use this code to add a product in the shopping cart
and it inserts it sometimes 1 time, sometimes 2 or 3 or 4 times.
I want only 1 time to insert it how to fix this?
$sqlin="INSERT INTO ...
-1
votes
0
answers
19
views
Auto-applied coupon on Mix Match Products on minimum quantity
How do we properly code the below?
I am looking to have auto-applied coupon in cart for mix-match products and minimum quantity should be 5 but can't figure it out. I already created a coupon based on ...
0
votes
0
answers
7
views
Text to the right of 'Add to Cart' button
Wordpress/Woocommerce. Website add to cart button text
How would I remove or change the text to the right of the add to cart button. Can't seem to find it anywhere. Checked plugins, php files, etc. ...
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
0
answers
25
views
Add a product to the cart via api for non signed up user in WordPress
I'm facing a hard problem in adding a product to the cart via api for non signed up user in WordPress. I started to think it is not possible to achieve it. It works properly for users which are signed ...
1
vote
0
answers
53
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 ...
0
votes
2
answers
70
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
44
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
42
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
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
0
answers
57
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....