woocommerce / woocommerce

A customizable, open-source ecommerce platform built on WordPress. Build any commerce solution you can imagine.
https://woocommerce.com
9.43k stars 10.77k forks source link

Sort payment method don't work #51171

Closed francktdt closed 2 months ago

francktdt commented 2 months ago

Prerequisites

Describe the bug

In woocommerce back office payments feature, I sort the payment methods but in front office the credit card solution (Up2pay e-Transactions Crédit Agricole) still in last position on the order page. Capture d’écran 2024-09-05 à 12 27 38 Up2pay e-Transactions Crédit Agricole works, but as you see in the printscreen there is no 'activate' button for this payment method ... ?

Expected behavior

The credit card payment system (Up2pay e-Transactions Crédit Agricole) should be the first on the payments methods list in the 'Order' page.

Actual behavior

Wire payment, cheque payment, Paypal payment are listed before Up2pay e-Transactions Crédit Agricole... on the front office 'order' page.

Steps to reproduce

1 buy a product 2 Go to checkout 3 see payment method list Capture d’écran 2024-09-05 à 12 38 09

WordPress Environment

System Status Report ``` ### WordPress Environment ### WordPress address (URL): [Redacted] Site address (URL): [Redacted] WC Version: 9.2.3 Legacy REST API Package Version: L’extension Legacy REST API n’est pas installée sur ce site. Action Scheduler Version: ✔ 3.8.1 Log Directory Writable: ✔ WP Version: 6.6.1 WP Multisite: – WP Memory Limit: 256 Mo WP Debug Mode: – WP Cron: ✔ Language: fr_FR External object cache: – ### Server Environment ### Server Info: nginx/1.22.1 PHP Version: 7.4.33 PHP Post Max Size: 100 Mo PHP Time Limit: 300 PHP Max Input Vars: 10000 cURL Version: 7.74.0 OpenSSL/1.1.1w SUHOSIN Installed: – MySQL Version: 5.6.51-91.0 Max Upload Size: 100 Mo Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### [REDACTED] ### Post Type Counts ### attachment: 3428 custom_css: 1 nav_menu_item: 21 page: 26 post: 3 product: 601 product_variation: 1 revision: 792 shop_order: 3195 shop_order_refund: 25 user_request: 1 wcps: 5 wcps_layout: 2 wp_global_styles: 1 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (19) ### Advanced Woo Search: par ILLID – 3.15 All 404 Redirect to Homepage: par wp-buy – 4.6 CookieYes | GDPR Cookie Consent: par CookieYes – 3.2.6 Up2pay e-Transactions: par Up2pay e-Transactions – 3.0.3 Facebook for WooCommerce: par Facebook – 3.2.8 Flexible Shipping: par Octolize – 4.25.8 Custom Login Page Customizer: par Hardeep Asrani – 2.4.0 Mailchimp for WooCommerce: par Mailchimp – 4.3.1 Portugal States (Distritos) for WooCommerce: par PT Woo Plugins (by Webdados) – 3.6 Storefront Footer Text: par Wooassist – 1.0.1 User Role Editor: par Vladimir Garagulya – 4.64.2 Google Analytics for WooCommerce: par WooCommerce – 2.1.6 WooCommerce PayPal Payments: par WooCommerce – 2.9.0 Product Slider for WooCommerce by PickPlugins: par PickPlugins – 1.13.51 WooCommerce Shipping & Tax: par WooCommerce – 2.8.0 WooCommerce Shortcodes: par WooThemes Claudio Sanches – 1.0.0 WooCommerce: par Automattic – 9.2.3 Yoast SEO: par L’équipe Yoast – 23.4 WP Mail SMTP: par WP Mail SMTP – 4.1.1 ### Inactive Plugins (3) ### Import Woocommerce: par smackcoders – 1.9.4 Site Kit by Google: par Google – 1.134.0 WP Ultimate Exporter: par Smackcoders – 2.5.4 ### Settings ### Legacy API Enabled: – Force SSL: – Currency: EUR (€) Currency Position: left Thousand Separator: . Decimal Separator: , Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – Enforce Approved Product Download Directories: – HPOS feature enabled: – Order datastore: WC_Order_Data_Store_CPT HPOS data sync enabled: – ### Logging ### Enabled: ✔ Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2 Retention period: 30 jours Level threshold: – Log directory size: 91 Ko ### WC Pages ### Base de la boutique: #16 - /boutique/ Panier: #17 - /panier/ - Contient le code court [woocommerce_cart] Commander: #18 - /commande/ - Contient le code court [woocommerce_checkout] Mon compte: #19 - /mon-compte/ Conditions générales de vente et d’utilisation: #4103 - /conditions-generales-de-vente/ ### Theme ### Name: My Child theme. Child for Storefront. Version: 2.5.7 Author URL: https://www.ecole-ecommerce.com/ Child Theme: ✔ Parent Theme Name: Storefront Parent Theme Version: 4.2.0 – 4.6.0 est disponible Parent Theme Author URL: https://woocommerce.com/ WooCommerce Support: ✔ ### Templates ### Overrides: – ### WooCommerce PayPal Payments ### Onboarded: ✔ Shop country code: FR WooCommerce currency supported: ✔ Advanced Card Processing available in country: ✔ Pay Later messaging available in country: ✔ Webhook status: – PayPal Vault enabled: – ACDC Vault enabled: – Logging enabled: – Reference Transactions: ✔ Used PayPal Checkout plugin: – Subscriptions Mode: Disabled ### Admin ### Enabled Features: activity-panels analytics product-block-editor coupons core-profiler customize-store customer-effort-score-tracks import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing mobile-app-banner navigation onboarding onboarding-tasks pattern-toolkit-full-composability product-custom-fields remote-inbox-notifications remote-free-extensions payment-gateway-suggestions printful shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page launch-your-store Disabled Features: experimental-blocks minified-js product-pre-publish-modal settings async-product-editor-category-field product-editor-template-system Daily Cron: ✔ Next scheduled: 2024-09-05 12:02:50 +02:00 Options: ✔ Notes: 104 Onboarding: completed ### Action Scheduler ### Terminé: 969 Oldest: 2024-08-05 12:57:36 +0200 Newest: 2024-09-05 11:56:33 +0200 Échoué: 10 Oldest: 2023-03-30 11:50:57 +0200 Newest: 2024-05-02 13:55:36 +0200 En attente: 1 Oldest: 2024-09-05 16:50:36 +0200 Newest: 2024-09-05 16:50:36 +0200 ### Status report information ### Generated at: 2024-09-05 12:36:07 +02:00 ```

Isolating the problem

vbelolapotkov commented 2 months ago

Thanks for reporting this @francktdt. I've tried to reproduce it on my test site, and everything works as expected (see the screenshots of settings and checkout)

Image Image
Settings page Checkout page

Is there any chance that you haven't hit "Save changes" button on the settings page after reordering?

francktdt commented 2 months ago

Hello, Many thanks for your answer. I did save my changes on settings page after reordering. That’s why I don’t understand. I have tried again this morning after receiving your email. Best regards. Franck

Le 11 sept. 2024 à 06:41, Vasily Belolapotkov @.***> a écrit :

Thanks for reporting this @francktdt https://github.com/francktdt. I've tried to reproduce it on my test site, and everything works as expected (see the screenshots of settings and checkout)

https://github.com/user-attachments/assets/b36a852c-9921-4475-8ab1-94dbf7ed9072 https://github.com/user-attachments/assets/59083e94-30bd-48f7-bed4-0cf84689ea9d Settings page Checkout page Is there any chance that you haven't hit "Save changes" button on the settings page after reordering?

— Reply to this email directly, view it on GitHub https://github.com/woocommerce/woocommerce/issues/51171#issuecomment-2342607860, or unsubscribe https://github.com/notifications/unsubscribe-auth/BLBKQYVR4PZ5JPM2V7GK3ALZV7CXHAVCNFSM6AAAAABNWGMBJWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBSGYYDOOBWGA. You are receiving this because you were mentioned.

vbelolapotkov commented 2 months ago

I have tried again this morning after receiving your email.

@francktdt did it work or the problem is still there?

francktdt commented 2 months ago

Yes the the problem still there. Sorry to disturb with this. Have a nice day.

Le 11 sept. 2024 à 16:30, Vasily Belolapotkov @.***> a écrit :

I have tried again this morning after receiving your email.

@francktdt https://github.com/francktdt did it work or the problem is still there?

— Reply to this email directly, view it on GitHub https://github.com/woocommerce/woocommerce/issues/51171#issuecomment-2343847984, or unsubscribe https://github.com/notifications/unsubscribe-auth/BLBKQYVOIWXM6Z6X7HPGZU3ZWBHZBAVCNFSM6AAAAABNWGMBJWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBTHA2DOOJYGQ. You are receiving this because you were mentioned.

francktdt commented 2 months ago

By changing the up2pay config

Display of grouped payment methods Advance

it works. There seems to be a bug with advanced mode. (If it can help) Many thanks.

vbelolapotkov commented 2 months ago

Thanks for sharing the details @francktdt, and glad to hear it works for you now!