CT Talks
Forum Replies Created
-
Glad to know it’s already there for you and working. ??
Hello, @adamstocklotstv
Thanks for writing to us & bringing this to our notice. Since WPML is widely used for translations we will make sure the values will be translated for compatibility with WPML in our next update.
Until then you can use the filter ‘ct_mpac_filter_min_cart_total’ to correctly convert the values. (You can try adding this code to your functions.php file)add_filter('ct_mpac_filter_min_cart_total', 'WPMLGetValueForCurrency', 99, 2);
if(!function_exists('WPMLGetValueForCurrency')) {
function WPMLGetValueForCurrency($value, $cart) {
return apply_filters('wcml_raw_price_amount', $value);
}
}
Let us know if this resolves you issue.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, 7 months ago by CT Talks.