Product Icon

B2B for WooCommerce

WooCommerce B2B extension is a complete wholesale solution that allows you to optimize your store for both B2B and B2C customers. Featured in WooCommerce staff picks and trusted by thousands of customers. No need to set up a separate store for your B2B and wholesale customers.

Mistyping in the code?

I found a typo in the code, which might affect some functions (?):

in file “b2b/addify-order-restrictions/includes/class-af-o-r-front.php”

$placeholders = array(
‘{remaining_qunatity}’ => $afor_min_quantity – $cart_quantity > 0 ? $afor_min_quantity – $cart_quantity : ”,
‘{remaining_amount}’ => $afor_min_amount – $cart_amount > 0 ? wc_price( $afor_min_amount – $cart_amount ) : ”,
‘{exceeded_quntiity}’ => $cart_quantity – $afor_max_quantity > 0 ? $cart_quantity – $afor_max_quantity : ”,
‘{exceeded_amount}’ => $cart_amount – $afor_max_amount > 0 ? wc_price( $cart_amount – $afor_max_amount ) : ”,
);

So instead of “quantity” there is “quntiity” and “qunatity”.
Is that on purpose? Sorry if it’s a stupid question

Author

hollandviragok

Current Status

Open

Last updated: April 30, 2023

0 comments

Log in to comment on this feature request.