Chào các b?n,
M?i tr??ng c?a mình:
Mình ch?y wp-cli ho?c b?t debug s? nh?n c?nh báo Warning và Deprecated t? Plugin c?a các b?n nh? sau
PHP Warning: Undefined array key "SERVER_NAME" in /usr/local/lsws/domain.com/html/wp-content/plugins/vietqr/classes/class-wc-gateway-vietqr.php on line 143
Warning: Undefined array key "SERVER_NAME" in /usr/local/lsws/domain.com/html/wp-content/plugins/vietqr/classes/class-wc-gateway-vietqr.php on line 143
PHP Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /usr/local/lsws/domain.com/html/wp-content/plugins/vietqr/classes/class-wc-gateway-vietqr.php on line 785
Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /usr/local/lsws/domain.com/html/wp-content/plugins/vietqr/classes/class-wc-gateway-vietqr.php on line 785
Các b?n xem qua, ?i?u chính giúp.
Ngoài ra các b?n c?ng nên ki?m tra tính t??ng thích c?a Plugin mình v?i WordPress, WooCommerce, PHP (8.1.x, 8.2.x, 8.3.x) m?i nh?t.
C?m ?n các b?n. Mong tin các b?n. ??
]]>H? tr? b? sung B?t các ph??ng th?c giao hàng cho thanh toán v?i m? QR, ví d? Tr??ng h?p thanh toán tr??c b?ng m? QR s? ???c Freeship.
]]>Trong ph?n code t?i th?y các b?n ?? t?p kh?ng t?n t?i
function woocommerce_vietqr_woocommerce_blocks_support() {
if ( class_exists( 'Automattic\WooCommerce\Blocks\Payments\Integrations\AbstractPaymentMethodType' ) ) {
require_once dirname( __FILE__ ) . '/classes/class-wc-gateway-vietqr-blocks-support.php';
add_action(
'woocommerce_blocks_payment_method_type_registration',
function( Automattic\WooCommerce\Blocks\Payments\PaymentMethodRegistry $payment_method_registry ) {
$payment_method_registry->register( new WC_VietQR_Blocks_Support );
}
);
}
}
file /classes/class-wc-gateway-vietqr-blocks-support.php kh?ng h? t?n t?i
]]>Fatal error: Uncaught Error: Failed opening required ‘/html/wp-content/plugins/vietqr/classes/class-wc-gateway-vietqr-blocks-support.php
]]>Khi b?m thanh toán toàn hi?n ra l?i “Error processing checkout. Please try again.”. Kh?ng bi?t nên x? ly th? nào v?y ?. Phiên b?n wordpress c?a e ?ang là 6.3.2
]]>Kh?ng bi?t là bug hay c? y m?t cách v? duyên.
Dòng add_filter( 'auto_update_plugin', '__return_true' );
trong file wc-gateway-vietqr.php
ép m?i plugin chuy?n thành “Auto-updates enabled” và kh?ng th? t?t ???c.
Th?nh tho?ng ?ang gi? cao ?i?m ho?t ??ng thì web l?n ?ùng sang Maintenance Mode ?? update. C?ng kh?ng coi tr??c ???c change-log c?a plugin là gì @@
M?i ng??i xóa dòng trên ?? l?y l?i quy?n b?t/t?t auto-update nha.
Mình mu?n tr?ng thái ??n hàng sau khi ??t là “Ch? thanh toán” (?? khách có th? t? h?y n?u ??i y) thay vì “Ch? xác nh?n” (kh?ng t? h?y ???c). Nh? b?n giúp ??.
]]>setup xong nh?ng khi thanh toán kh?ng hi?n th? ?nh qr
]]>