CT Talks
Forum Replies Created
-
Thank you for your valuable feedback.
Forum: Reviews
In reply to: [Minimum Purchase Amount For Woo Cart - For WooCommerce] Works as expected@smartsmell , We have performed a compatibility test with WooCommerce HPOS (High-Performance Order Storage) & released a plugin with a compatibility update (v2.3.16).
Forum: Reviews
In reply to: [Minimum Purchase Amount For Woo Cart - For WooCommerce] Works as expectedThanks for your valuable review, we will soon release a HPOS compatibility update.
Thank you @sveininge , Your & ratings & feedback is valuable to us.
closing the issue.
Hey @newfiesoft, Since the zip codes are usually entered during checkout it’s not possible to implement the zip code-based minimum order checks on the cart page, & the solution may require customization.
Hi, @hamalt
You are always welcome, & we are glad you liked our solution.
Please do consider posting a review in order for us to improve.@hamalt, the update v2.2.82, has been rolled out with the suggested fix.
Hello @hamalt,
Thank you for your suggestion, the translatable string will be included as per your suggestion in the update rolling out today.Thanks for your time to report this issue.
We do not currently have any plans to include such a feature since we are not having many similar requests. but a plugin Minimum Purchase for WooCommerce from vark may help you with this.
Thank you for reporting the issue, we have released a new update that will help you resolve this issue.
* Please update to the latest version of the plugin & try adding the following code to the functions.php file of your theme/child_theme.
add_filter('ct_mpac_filter_current_cart_total', 'ct_mpac_include_shipping_in_cart_total', 12, 2); if(!function_exists('ct_mpac_include_shipping_in_cart_total')) { function ct_mpac_include_shipping_in_cart_total($cartTotal, $cart) { if(!empty($cart)) { $totalShipping = $cart->shipping_total + $cart->shipping_tax_total; $totalShipping = is_numeric($totalShipping)?$totalShipping:0; $cartTotal = $cartTotal - $totalShipping; } return $cartTotal; } }
Marking resolved since the issue is not getting reproduced.
Hi @annie63,
Sorry for the delay in response, We have gone through your query & found that it is possible to change the minimum order value based on the shipping method selected using the filter ‘ct_mpac_filter_min_cart_total’ refer to the following code,add_filter('ct_mpac_filter_min_cart_total', 'filterMinimumPurchaseAmountByShipping', 12, 2); if(!function_exists('filterMinimumPurchaseAmountByShipping')) { function filterMinimumPurchaseAmountByShipping($minimumPurchase, $wcCart) { $selectedShippingMethod = WC()->session->get( 'chosen_shipping_methods' ); if(!empty($selectedShippingMethod)) { if($selectedShippingMethod[0]=='flat_rate:3') { $minimumPurchase = 500; } } return $minimumPurchase; } }
However the second part of your query says, you want to limit the item quantity & for this, you may require some extension dealing with woo-commerce product quantities, Ex: Min/Max Quantities
- This reply was modified 3 years ago by CT Talks.
We have gone through your query & followed the steps below to reproduce the issue with the shipping vat.
Set Minimum Order amount : € 23
Added a product with price : € 18 (Including tax) to the cart.
The shipping cost is set to : € 04 (With tax its 4.40)
Tax : 10%The following is the cart status with the values above, the values in the screenshot below seem correct to us, can you please help us figure out if there’s anything wrong?
Also, let us know if we made any mistake understanding the issue. It would be a great help if you will be able to share some more details about the issue.
@vincent14000,
Sorry for the delay in the response,
You can do it with the help of the filter ‘ct_mpac_filter_min_cart_total’ refer the following code,add_filter('ct_mpac_filter_min_cart_total', 'filterMinimumPurchaseAmountByShipping', 12, 2); if(!function_exists('filterMinimumPurchaseAmountByShipping')) { function filterMinimumPurchaseAmountByShipping($minimumPurchase, $wcCart) { $selectedShippingMethod = WC()->session->get( 'chosen_shipping_methods' ); if(!empty($selectedShippingMethod)) { if($selectedShippingMethod[0]=='flat_rate:3') { $minimumPurchase = 500; } } return $minimumPurchase; } }