Kishor Thanth
Forum Replies Created
-
I just written wrong..
it should be:
FROM
'amount' => WC_Payments_Utils::prepare_amount( $product_price + $tax, $currency ),TO
'amount' => WC_Payments_Utils::prepare_amount( floatval($product_price) + $tax, $currency ),Resolution:
Plugin devs… Please update the code on
/wp-content/plugins/woocommerce-payments/includes/class-wc-payments-payment-request-button-handler.php Line No. 301FROM
$data['total'] = [ 'label' => apply_filters( 'wcpay_payment_request_total_label', $this->get_total_label() ), 'amount' => WC_Payments_Utils::prepare_amount( floatval($product_price) + $tax, $currency ), 'pending' => true, ];TO
$data['total'] = [ 'label' => apply_filters( 'wcpay_payment_request_total_label', $this->get_total_label() ), 'amount' => WC_Payments_Utils::prepare_amount( $product_price + $tax, $currency ), 'pending' => true, ];another fix!!
replace on Filename: wp-content/plugins/weglot/bootstrap.php
Line No: line no 145 to 147
FROMif (function_exists(‘apache_get_modules’) && !in_array(‘mod_rewrite’, apache_get_modules())) { //phpcs:ignore add_action(‘admin_notices’, array(‘\WeglotWP\Notices\Rewrite_Module_Weglot’, ‘admin_notice’)); }TO
if (function_exists('apache_get_modules') && is_array(apache_get_modules())) { //phpcs:ignore if(!in_array('mod_rewrite', apache_get_modules())){ add_action('admin_notices', array('\WeglotWP\Notices\Rewrite_Module_Weglot', 'admin_notice')); } }- This reply was modified 3 years, 10 months ago by Kishor Thanth.
- This reply was modified 3 years, 10 months ago by Kishor Thanth.
@colorful-tones For now I have commented the 3 lines of code: (line no 145 to 147) But make sure you have “mod_rewrite” rule is enabled on the server.
Filename: wp-content/plugins/weglot/bootstrap.php
`// if (function_exists(‘apache_get_modules’) && !in_array(‘mod_rewrite’, apache_get_modules())) { //phpcs:ignore
// add_action(‘admin_notices’, array(‘\WeglotWP\Notices\Rewrite_Module_Weglot’, ‘admin_notice’));
// }’The above code only checks if “mod_rewrite” is enabled or not. and in WPEngine it is enabled by-default as i checked with the support person.