andrewbriggs
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce iTransact Payment Gateway] Customers being charged twiceAlso, after any person orders, when we check WooCommerce-Orders and click on the order, under Order Notes the following message shows:
Validation error: Amounts do not match (). Order status changed from Pending Payment to On Hold.
Thx for the fast response.
I could not save html markup tags in the Account Approved text box. When I clicked Update or Save, the text box removed the html markup tags.
Looking into this, sanitize_text_field was removing them:
https://github.com/WebDevStudios/BuddyPress-Registration-Options/blob/master/includes/admin.php#L94After removing that function and not modifying anything else, I was able to get the HTML into the text box and then the email came through with HTML formatting.
Forum: Plugins
In reply to: [WooCommerce Bulk Discount] Discount Per Unit vs Total DiscountTo the OP’s original statement:
We had a similar problem on our site. I was able to solve this by modifying the math in the “action_before_calculate” function in the woocommerce-bulk-discount.php file.
I changed the below line:
if ( ( get_option( 'woocommerce_t4m_discount_type', '' ) == 'flat' ) ) { row_base_price = max( 0, $_product->get_price() - ( $this->discount_coeffs[$this->get_actual_id( $_product )]['coeff'] / $values['quantity'] ) ); }to this:
if ( ( get_option( 'woocommerce_t4m_discount_type', '' ) == 'flat' ) ) { $row_base_price = max( 0, $_product->get_price() - $this->discount_coeffs[$this->get_actual_id( $_product )]['coeff'] ); }