• Resolved jelak

    (@jelak)


    Bonjour,

    j’ai un bug sur un site woocommerce, si j’ajoute un produit variable au panier, ensuite avec un autre produit variable il m’ajoute toujours le premier produit quoi que je fasse. Exemple avec un café ou un coffret cadeau. Même dans la page produit le prix ou les variations ne sont pas les bonnes.

    J’ai déjà changé de thème pour hello (mais aussi storefont), désactivé tous les plugins sauf woocommerce….

    dans les logs de woocommerce, après avoir reproduit l’erreur du mauvais produit qui s’ajoute au panier, j’ai ceci : “2024-12-18T16:25:45+00:00 WARNING Compositions vides re?ues de la boutique de compositions PTK”

    Merci pour aide, je suis désespéré ! J’ai cherché dans des topics existants, et j’ai même demandé à ChatGPT….en vain.

    ————–

    Mon rapport woocommerce :

    ### WordPress Environment ###

    WordPress address (URL): https://www.yellowpeak.fr
    Site address (URL): https://www.yellowpeak.fr
    WC Version: 9.4.0
    Legacy REST API Package Version: L’extension Legacy REST API n’est pas installée sur ce site.
    Action Scheduler Version: 

    ?

     3.8.2
    Log Directory Writable: 

    ?

    WP Version: 6.7.1
    WP Multisite: –
    WP Memory Limit: 2 Go
    WP Debug Mode: –
    WP Cron: 

    ?

    Language: fr_FR
    External object cache: –

    ### Server Environment ###

    Server Info: Apache
    PHP Version: 8.2.21
    PHP Post Max Size: 256 Mo
    PHP Time Limit: 40
    PHP Max Input Vars: 10000
    cURL Version: 7.74.0
    OpenSSL/1.1.1w

    SUHOSIN Installed: –
    MySQL Version: 10.6.20-MariaDB-deb11-log
    Max Upload Size: 256 Mo
    Default Timezone is UTC: 

    ?

    fsockopen/cURL: 

    ?

    SoapClient: 

    ?

    DOMDocument: 

    ?

    GZip: 

    ?

    Multibyte String: 

    ?

    Remote Post: 

    ?

    Remote Get: 

    ?

    ### Database ###

    WC Database Version: 9.4.2
    WC Database Prefix: yp_
    Taille totale de la base de données: 43.90MB
    Taille de la base de données: 33.97MB
    Taille de l’index: 9.93MB
    yp_woocommerce_sessions: Données : 0.03MB + Index : 0.02MB + Moteur InnoDB
    yp_woocommerce_api_keys: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    yp_woocommerce_attribute_taxonomies: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    yp_woocommerce_downloadable_product_permissions: Données : 0.02MB + Index : 0.06MB + Moteur InnoDB
    yp_woocommerce_order_items: Données : 0.13MB + Index : 0.05MB + Moteur InnoDB
    yp_woocommerce_order_itemmeta: Données : 1.52MB + Index : 0.55MB + Moteur InnoDB
    yp_woocommerce_tax_rates: Données : 0.02MB + Index : 0.06MB + Moteur InnoDB
    yp_woocommerce_tax_rate_locations: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    yp_woocommerce_shipping_zones: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    yp_woocommerce_shipping_zone_locations: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB
    yp_woocommerce_shipping_zone_methods: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    yp_woocommerce_payment_tokens: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    yp_woocommerce_payment_tokenmeta: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    yp_woocommerce_log: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    yp_actionscheduler_actions: Données : 0.41MB + Index : 0.50MB + Moteur InnoDB
    yp_actionscheduler_claims: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    yp_actionscheduler_groups: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    yp_actionscheduler_logs: Données : 0.30MB + Index : 0.23MB + Moteur InnoDB
    yp_commentmeta: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    yp_comments: Données : 0.30MB + Index : 0.28MB + Moteur InnoDB
    yp_cr_reminders_log: Données : 0.02MB + Index : 0.08MB + Moteur InnoDB
    yp_duplicator_packages: Données : 0.17MB + Index : 0.02MB + Moteur InnoDB
    yp_e_events: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    yp_e_notes: Données : 0.02MB + Index : 0.17MB + Moteur InnoDB
    yp_e_notes_users_relations: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB
    yp_e_submissions: Données : 0.02MB + Index : 0.27MB + Moteur InnoDB
    yp_e_submissions_actions_log: Données : 0.02MB + Index : 0.11MB + Moteur InnoDB
    yp_e_submissions_values: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    yp_imagify_files: Données : 0.02MB + Index : 0.08MB + Moteur InnoDB
    yp_imagify_folders: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    yp_itsec_bans: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    yp_itsec_dashboard_events: Données : 0.05MB + Index : 0.02MB + Moteur InnoDB
    yp_itsec_dashboard_lockouts: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    yp_itsec_distributed_storage: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    yp_itsec_fingerprints: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    yp_itsec_firewall_rules: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB
    yp_itsec_geolocation_cache: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    yp_itsec_lockouts: Données : 0.02MB + Index : 0.08MB + Moteur InnoDB
    yp_itsec_logs: Données : 0.19MB + Index : 0.11MB + Moteur InnoDB
    yp_itsec_mutexes: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    yp_itsec_opaque_tokens: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    yp_itsec_temp: Données : 0.02MB + Index : 0.06MB + Moteur InnoDB
    yp_itsec_user_groups: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    yp_itsec_vulnerabilities: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB
    yp_links: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    yp_mailchimp_carts: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    yp_mailchimp_jobs: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    yp_options: Données : 6.34MB + Index : 0.17MB + Moteur InnoDB
    yp_pimwick_gift_card: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    yp_pimwick_gift_card_activity: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    yp_postmeta: Données : 16.48MB + Index : 3.86MB + Moteur InnoDB
    yp_posts: Données : 4.47MB + Index : 0.39MB + Moteur InnoDB
    yp_redirection_404: Données : 0.41MB + Index : 0.22MB + Moteur InnoDB
    yp_redirection_groups: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    yp_redirection_items: Données : 0.02MB + Index : 0.09MB + Moteur InnoDB
    yp_redirection_logs: Données : 0.06MB + Index : 0.05MB + Moteur InnoDB
    yp_revslider_css: Données : 0.13MB + Index : 0.02MB + Moteur InnoDB
    yp_revslider_css_bkp: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    yp_revslider_layer_animations: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    yp_revslider_layer_animations_bkp: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    yp_revslider_navigations: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    yp_revslider_navigations_bkp: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    yp_revslider_sliders: Données : 0.20MB + Index : 0.02MB + Moteur InnoDB
    yp_revslider_sliders7: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    yp_revslider_sliders_bkp: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    yp_revslider_slides: Données : 0.11MB + Index : 0.02MB + Moteur InnoDB
    yp_revslider_slides7: Données : 0.05MB + Index : 0.02MB + Moteur InnoDB
    yp_revslider_slides_bkp: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    yp_revslider_static_slides: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    yp_revslider_static_slides_bkp: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    yp_sbi_feeds: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    yp_termmeta: Données : 0.06MB + Index : 0.06MB + Moteur InnoDB
    yp_terms: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    yp_term_relationships: Données : 0.06MB + Index : 0.05MB + Moteur InnoDB
    yp_term_taxonomy: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    yp_usermeta: Données : 0.13MB + Index : 0.14MB + Moteur InnoDB
    yp_users: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB
    yp_wcpdf_invoice_number: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    yp_wcpdf_packing_slip_number: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    yp_wc_admin_notes: Données : 0.13MB + Index : 0.00MB + Moteur InnoDB
    yp_wc_admin_note_actions: Données : 0.08MB + Index : 0.02MB + Moteur InnoDB
    yp_wc_category_lookup: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    yp_wc_customer_lookup: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    yp_wc_download_log: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    yp_wc_etransactions_cards: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    yp_wc_etransactions_payment: Données : 0.06MB + Index : 0.02MB + Moteur InnoDB
    yp_wc_orders: Données : 0.02MB + Index : 0.11MB + Moteur InnoDB
    yp_wc_orders_meta: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    yp_wc_order_addresses: Données : 0.02MB + Index : 0.06MB + Moteur InnoDB
    yp_wc_order_coupon_lookup: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    yp_wc_order_operational_data: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    yp_wc_order_product_lookup: Données : 0.11MB + Index : 0.06MB + Moteur InnoDB
    yp_wc_order_stats: Données : 0.06MB + Index : 0.05MB + Moteur InnoDB
    yp_wc_order_tax_lookup: Données : 0.05MB + Index : 0.03MB + Moteur InnoDB
    yp_wc_product_attributes_lookup: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    yp_wc_product_download_directories: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    yp_wc_product_meta_lookup: Données : 0.08MB + Index : 0.14MB + Moteur InnoDB
    yp_wc_rate_limits: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    yp_wc_reserved_stock: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    yp_wc_tax_rate_classes: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    yp_wc_webhooks: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    yp_wpf_filters: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    yp_wpr_rocket_cache: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB
    yp_wpr_rucss_used_css: Données : 0.02MB + Index : 0.09MB + Moteur InnoDB
    yp_yoast_indexable: Données : 0.13MB + Index : 0.09MB + Moteur InnoDB
    yp_yoast_indexable_hierarchy: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB
    yp_yoast_migrations: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    yp_yoast_primary_term: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    yp_yoast_seo_links: Données : 0.05MB + Index : 0.03MB + Moteur InnoDB
    yp_zettle_queue: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    yp_zettle_woocommerce_id_map: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB

    ### Post Type Counts ###

    attachment: 495
    customize_changeset: 1
    e-landing-page: 2
    elementor_font: 2
    elementor_library: 28
    elementor_snippet: 1
    gift_card: 1
    itsec-dash-card: 7
    itsec-dashboard: 1
    nav_menu_item: 31
    oembed_cache: 14
    page: 22
    post: 5
    product: 64
    product_variation: 259
    revision: 353
    shop_coupon: 2
    shop_order: 290
    shop_order_refund: 3
    testimonials: 10
    wp_block: 1
    wp_global_styles: 2
    wp_navigation: 1
    wpcf7_contact_form: 1

    ### Security ###

    Secure connection (HTTPS): 

    ?

    Hide errors from visitors: 

    ?

    ### Active Plugins (24) ###

    Akismet Anti-spam: Spam Protection: par Automattic – équipe Anti-spam – 5.3.5
    Schema – All In One Schema Rich Snippets: par Brainstorm Force – 1.6.13
    Solid Security Basique: par SolidWP – 9.3.6
    Contact Form 7: par Takayuki Miyoshi – 6.0.1
    Customer Reviews for WooCommerce: par CusRev – 5.64.1
    Duplicate Page: par mndpsingh287 – 4.5.4
    Duplicator: par Duplicator – 1.5.11.2
    Elementor Pro: par Elementor.com – 3.26.1
    Elementor: par Elementor.com – 3.26.0
    Ever Invoice Export: par Team Ever – 1.2.5
    Facebook for WooCommerce: par Facebook – 3.3.1
    Heartbeat Control par WP Rocket: par WP Rocket – 2.0.1
    Imagify: par Imagify Image Optimizer – Optimize Images & Convert WebP & Avif – 2.2.3.2
    OSM: par MiKa – 6.1.6
    PW WooCommerce Gift Cards: par Pimwick
    LLC – 2.10

    Redirection: par John Godley – 5.5.1
    Slider Revolution: par ThemePunch – 6.7.18
    Chronopost & Mondial relay pour WooCommerce – WCMultiShipping: par Mondial Relay WooCommerce – WCMultiShipping – 2.5.2
    Advanced Order Export For WooCommerce: par AlgolPlus – 3.5.6
    WooCommerce Stripe Gateway: par Stripe – 9.0.0
    PDF Invoices & Packing Slips for WooCommerce: par WP Overnight – 3.9.2
    WooCommerce: par Automattic – 9.4.0 (une mise à jour de la version 9.5.1 est disponible)
    Yoast SEO: par L’équipe Yoast – 24.1
    WP Rollback: par WP Rollback  – 2.0.7

    ### Inactive Plugins (2) ###

    Bridge Core: par Qode – 2.4.4
    Optimus: par KeyCDN – 1.6.3

    ### Settings ###

    Legacy API Enabled: –
    Force SSL: 

    ?

    Currency: EUR (€)
    Currency Position: right_space
    Thousand Separator: .
    Decimal Separator: ,
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    pw gift card (pw-gift-card)
    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: 446 Ko

    ### WC Pages ###

    Base de la boutique: #9 – /boutique/
    Panier: #10 – /panier/ –  Contient le code court [woocommerce_cart]
    Commander: #11 – /commander/ –  Contient le code court [woocommerce_checkout]
    Mon compte: #12 – /mon-compte/
    Conditions générales de vente et d’utilisation: #3 – /politique-de-confidentialite/

    ### Theme ###

    Name: Yellow Peak 2024
    Version: 1.0.0
    Author URL:
    Child Theme: 

    ?

    Parent Theme Name: Hello Elementor
    Parent Theme Version: 3.2.1
    Parent Theme Author URL: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
    WooCommerce Support: 

    ?

    ### Templates ###

    Overrides: –

    ### 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: product-data-views
    experimental-blocks
    minified-js
    product-pre-publish-modal
    settings
    async-product-editor-category-field
    product-editor-template-system
    blueprint
    reactify-classic-payments-settings
    use-wp-horizon

    Daily Cron: 

    ?

     Next scheduled: 2024-12-19 14:32:24 +01:00
    Options: 

    ?

    Notes: 171
    Onboarding: completed

    ### Action Scheduler ###

    Terminé: 1 281
    Oldest: 2024-11-17 19:53:43 +0100
    Newest: 2024-12-18 19:19:21 +0100

    échoué: 1
    Oldest: 2024-12-18 13:46:51 +0100
    Newest: 2024-12-18 13:46:51 +0100

    En attente: 3
    Oldest: 2024-12-19 09:27:09 +0100
    Newest: 2025-01-07 12:48:33 +0100

    ### Status report information ###

    Generated at: 2024-12-18 19:29:27 +01:00
    `

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello jelak,

    Thank you for contacting WooCommerce support.

    I have a bug on a woocommerce site, if I add a variable product to the cart, then with another variable product it always adds me the first product whatever I do. Example with a coffee or a gift box. Even in the product page, the price or variations are not correct.

    I’ve already changed theme for hello (but also storefont), deactivated all plugins except woocommerce….

    in the woocommerce logs, after reproducing the error about the wrong product being added to the shopping cart, I have this: “2024-12-18T16:25:45+00:00 WARNING Empty compositions received from the PTK composition store”.

    Thanks for the help, I’m desperate! I’ve searched existing topics, and even asked ChatGPT….in vain.

    I checked your site and noticed that the “Add to cart” button has a fixed product ID value of “4631”.
    This is the ID of the product “Café Aracari”. Further testing showed that no matter which product I add to the cart, “Café Aracari” is added to the cart.

    I suspect that there is something wrong with the single product page template.
    Elementor has a feature to create an “Add to cart” button for a specific product.

    I understand you have already tested with a default theme and plugins disabled.
    But I recommend you switch to a default theme like Twenty Twenty-Four and deactivate all the plugins except WooCommerce and allow me to test the site from my end.

    Looking forward to your response. ??

    Thread Starter jelak

    (@jelak)

    Bonjour, et merci beaucoup pour votre réponse. J’allais tester ce que vous me conseilliez et regarder du c?té du template de la page produit unique.

    Je n’avais encore rien touché, et en revenant sur le site, tout fonctionne aujourd’hui. C’est très bizarre car je n’ai rien fait, et je ne sais pas expliquer le bug. En tous cas, mercredi lorsque je tentais de réparer le site, j’ai désactivé le thème Bridge et suis passé sur Hello Theme. Car depuis des années, il y avait un avertissement me disant que les fichiers woocommerce utilisés par Bridge étaient obsolètes, mais le support de Bridge n’a jamais réglé le problème. Peut-être était-ce cela ?

    Pourriez-vous svp tester pour moi quelques minutes et me confirmer que vous ne voyez plus le bug non plus ? Si c’est le cas nous pourrons marquer ce sujet comme “résolu”.

    Merci !

    Plugin Support Jonayed (woo-hc)

    (@jonayedhosen)

    Hi @jelak ,

    Thanks for reaching out! I’ve checked your site but couldn’t reproduce the issue, as it seems to have been resolved.

    To address your question, it looks like you’re using Elementor to design your single product page and other WooCommerce templates. We’ve observed that similar issues—like the “Add to Cart” button not functioning correctly, products not being removed from the cart, or incorrect items being displayed—can sometimes occur when Elementor is used.

    In this case, the issue seems to have been resolved automatically, possibly due to an internal fix from Elementor. Unfortunately, it’s difficult to pinpoint the exact cause since everything is now working as intended.

    I’ll go ahead and mark this thread as resolved at your request, as the issue appears to be fixed. If you encounter any further issues, don’t hesitate to create a new topic.

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.