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,226
questions
0
votes
0
answers
56
views
React JS Cart - Unable to view items in cart- Getting undefined error
I am having an issue where cartList is initialized as [], I see the cartList being updated by the context code and reducer, but when I try to display the cart items in my cart page using useCart(), it ...
0
votes
0
answers
34
views
WooCommerce cart table summary
I'm looking to change the table summary like image size and the position of it want and other in table want to add an icon to the remove item like that, but I'm trying to get around it for 2 days ...
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 ...
1
vote
1
answer
192
views
Optuna pruned trial for random forest classifier
I am currently working on Optuna library and I have seen that there is a parameter which allows to prune unpromissing trials. It seems that this parameter can only be used with incremental learning ...
0
votes
0
answers
105
views
Woocommerce: Add to cart via URL with custom price and parts information
I am making a PC build website along with a Woocommerce shop. The PC build wizard is a project different from Woocommerce. So, this is what I am trying to achieve. Once the person has customised their ...
1
vote
1
answer
99
views
Change specific product cart item name in WooCommerce
I am using the following code to change product names on checkout page, but I need to do it for only one product. I am not able to figure out how to target a specific product ID:
add_action( '...
1
vote
2
answers
201
views
Display order item custom metadata only on WooCommerce admin order view
I'm developing a WordPress plugin with WooCommerce so the customer can add customizable dynamic products to their cart. In order to get the customized data into the cart, I have the following lines:
...
-2
votes
1
answer
158
views
Custom Text on Cart and/or Checkout Page [duplicate]
Does anyone know how I can add custom text under every product in the cart page and checkout page? I don’t want that text showing on the individual product pages – only on cart/checkout pages. It will ...
0
votes
1
answer
243
views
Custom hook is not a function
I am trying to get useCart() to work and it is saying it is not a function
"use client";
import React, { createContext, useReducer, useContext } from "react";
const CartContext = ...
1
vote
0
answers
86
views
Disable default shipping option on cart refresh Woocommerce
We are using the following snippet to disable the default shipping method/option on the cart and checkout in Woocommerce:
add_filter( 'woocommerce_shipping_chosen_method', '__return_false', 99);
This ...
0
votes
0
answers
75
views
Drupal Commerce API with Decoupled Drupal
I'm using Drupal commerce + commerce API modules in decoupled Drupal project. When doing the checkout frontend (in Angular) will call some third-party APIs and get some discounts for each order items. ...
0
votes
0
answers
270
views
woocommerce cart-view page broken after clicking in edit with elemtor
I am working in Wordpress on a website and I am using Woocommerce.
Good to know, I had disabled the Gutenberg editor and I am working in the classic editor.
I have a question regarding the woocommerce ...
0
votes
1
answer
112
views
Set Local pick up cost to zero when Free shipping is available in WooCommerce
I offer free shipping for €45. I have hidden the other shipping methods, except local pick-up, when free is available using the code below.
add_filter( 'woocommerce_package_rates', '...
-1
votes
2
answers
50
views
Limit purchases only for some products in WooCommerce
I need something similar as below, but i don't need the warehouse option.
I need to block only a few products from being purchased more than once, the other products can be bought more than once.
How ...
0
votes
1
answer
116
views
Change WooCommerce cart item tax rate based on the item discounted price
I want to calculate the tax based on the item price after discount.
I have two tax rates: 5% GST and 12% GST.
For products with price after discount that is less than 1000, I want to apply a tax rate ...