cart Questions
3
Solved
We have a bunch of products with either:
No price
Zero price
We made them purchasable with the built-in hook but the cart still displays them as having a 0 price during checkout.
We'd like the...
Banwell asked 27/6, 2016 at 15:4
3
Solved
I am getting the dynamic custom price in a variable that I want to pass to the hooked function in woocommerce_before_calculate_totals hook in cart. But it isn't working.
This is my code:
$add=20...
Rationalize asked 2/8, 2016 at 9:0
2
Solved
I would like to update the price of products adding a custom price in cart using this simple piece of code update_post_meta( $product->id, '_regular_price', $frame_price_added);.
Note: what I'm...
Dampen asked 31/8, 2016 at 18:12
1
I have 2 tables
products
and categories
(CatParentId 0 is the parent category).
What I am trying to achieve is when a user clicks on the parent category, it should fetch the products listed in...
Norge asked 13/2, 2015 at 5:16
5
In the latest release of WooCommerce, there is a message being displayed in the cart stating the shipping cost is only an estimate.
This doesn't make any sense when someone is using flat rate sh...
Suspiration asked 4/12, 2018 at 1:4
4
Solved
I am trying to remove Woocommerce cart quantity selector from the cart page. I am using the quantity input field on my shop archive pages and it has applied it to the cart page. How can I remove it...
Stockholm asked 28/5, 2018 at 8:58
6
After ADD TO CART option i can see the items are getting updated to CART but when moving to cart page it is redirecting back to homepage.
The cart page shortcode is also provided.
Please help...
Accusative asked 22/6, 2017 at 4:39
1
Solved
From answers found in stack overflow, I noticed that WooCommerce cart data stored in wp_woocommerce_sessions database table, but after deleting data from this table and also deleting related cookie...
Spermatium asked 29/8, 2023 at 18:55
7
Solved
With this code:
foreach ( WC()->cart->get_cart() as $cart_item ) {
$quantity = $cart_item['quantity'];
echo $quantity;
}
I can get the quantity of all the products added in cart but I n...
Swindle asked 19/6, 2017 at 13:0
2
Solved
(How) can I set a max_fee for flat fee shipping costs in WooCommerce?
Adding this to the costs field in the flat fee settings of a shipping method works:
(1 * [qty]) + [fee min_fee = "2,5"]
(i....
Claudette asked 28/12, 2018 at 14:34
2
In WooCommerce, I have products with a regular price of X and a sales price of Y. I would like to add a coupon with a code for a $45.00 discount to be taken from the regular price X.
I would like...
Furmenty asked 12/4, 2017 at 18:20
8
Solved
I am using Magento eCommerce and I have modified my header.phtml via the Blank template. Code, this is my code but it shows blank.
<?php $cartQty = $this->getSummaryCount() ?>
<?php ...
2
I'm creating a WooCommerce add-on to customize the product, based on selected options by the visitor and custom price is calculated and stored into session table also.
I am able to get that value ...
Exophthalmos asked 7/7, 2017 at 15:32
3
POST : xyz.com/wp-json/wc/store/cart/add-item
I'm Developing a mobile woocommerce application and try to add-item in cart but getting some error please help to fix this problem thanks.
In Body:
{...
Matelda asked 4/9, 2020 at 16:26
3
Solved
How do you get the tax total in WooCommerce in the functions.php page in WordPress, Using :
global $woocommerce;
$discount = $woocommerce->cart->tax_total;
But is not returning any value...
Name asked 15/4, 2017 at 4:2
3
Solved
I'm looking to change the text "Cart Totals" in the cart totals div in WooCommerce or remove it totally with an action.
I've added different text above the box in using
add_action( 'woocommerce_b...
Dele asked 25/8, 2018 at 3:49
2
Solved
This is a plugin on how to add add cart item meta & order item meta for my WooCommerce order. Initially my code below worked well for input type=text. It returns the label for value and the inp...
Vanbuskirk asked 18/12, 2017 at 9:16
3
Solved
I would like to have a header banner hidden when a user is in the WooCommerce cart or checkout process. Is there a flag or variable that I can check to see if the current page is in either of these...
Tindall asked 21/5, 2020 at 17:24
3
Solved
I want to have a minimum order amount in my WooCommerce store. The following code is perfectly showing a notice if the amount isn't reached but the checkout is still possible. How to disable checko...
Passive asked 7/3, 2019 at 7:41
8
i'm actually developping a website. But i'm facing an issue. I need to display the number of item that are in the cart but only the number, nothing else i dont want total amount or anything else. J...
Rumery asked 17/3, 2017 at 20:28
1
Solved
i am trying to achive the following in WooCommerce. I want to set minimum order quantity for specific product.
The problem is that this product for example is a variable product, and i want to set ...
Lachellelaches asked 20/5, 2021 at 7:37
2
Objective: add product to cart despite unselected variations, i.e. remove/disable the mandatory nature of variation fields.
Issue: WooCommerce's absolute requirement for all variations to be select...
Piero asked 8/4, 2021 at 9:55
4
I'm not sure what to do in order to complete this project. I need to create a shopping cart that uses only one HTML page. I have the table set up showing what is being sold but where I am lost is t...
Wheelhorse asked 30/4, 2013 at 6:54
2
Solved
I tried to remove that by adding bellow code to my theme functions.php but it doesn't work.
function remove_shipping_calc_on_cart( $show_shipping ) {
if( is_cart() ) {
return false;
}
return ...
Weisshorn asked 19/3, 2020 at 15:27
6
Solved
In WooCommerce, I want to redirect the cart page to shop page when the cart page is empty otherwise shows the cart page. Can anyone have the solution ?
Here is the code I have tried, but it does no...
Cosmo asked 19/6, 2014 at 6:26
1 Next >
© 2022 - 2024 — McMap. All rights reserved.