Support » Plugin: WooCommerce » Bug with “Product list” widget

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Mirko P. woo-hc

    (@rainfallnixfig)

    Hi @kureman,

    I’ve performed some cross-testing on my test site which has the latest version of WordPress, WooCommerce and the free Storefront theme.

    I’ve not been able to replicate the behavior that you are describing. This is what appears on the screen when I add to the cart a test product from the Products list widget:


    Link to image: https://snipboard.io/Y86txk.jpg

    Can you please deactivate all plugins except WooCommerce, change the theme to Storefront, and test again? Do you still see the button changing the string after the “Add to Cart” action?

    If you’re not seeing that same behavior, re-activate your theme first and check again. Then, enable all plugins one at a time until you find out which one is responsible for that string change. At that point, you can reach out to the theme or plugin authors and get feedback on why this is happening.

    You can find a more detailed explanation on how to do a conflict test here: https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    Thanks.

    Thread Starter kureman

    (@kureman)

    Hi Mirko P.,

    Thank you for your fast answer!

    I tried as you suggested and I have the same behavior.
    – I created a new Local site (with local by flywheel)
    – I installed StoreFront
    – I installed WooCommerce
    – I created a test page named My Test Page to test all the WooCommerce widgets behavior
    – I add 3 products to the shop

    Then I clicked on “Add to cart” button under one of my test products (MyTestProduct1) on each widgets

    I put the screenshots in the following folder.
    – 1 screenshot for My Test Page before actions
    – 1 screenshot/widget
    – 1 screenshot for My Test Page adding 7 times MyTestProduct1 to the cart
    – 1 screenshot for the shop page after adding 7 times MyTestProduct1 to the cart

    We can see that only “All Products” widget displays “7 in cart” instead of “Add to cart”

    Plugin Support Chris Moreira – a11n

    (@chrism245)

    Hi @kureman!

    Please share your current System Status Report. You can get it by navigating to the WooCommerce / Status section of your site. Once there, click on the Get system report button and then copy it by clicking on the Copy for support button. Then paste it here in a comment.

    Thread Starter kureman

    (@kureman)

    Hi @chrism245 ,

    Actually, I don’t think “All Product” widget is showing “%d in cart” is a bug. I am just curious to know why it’s the only widget showing this notification after adding a product to the cart.

    The problem I wrote about initially, was about the translation of “%d in cart” to “%d dans le panier” was not working with Loco Translate.
    I tried to translate this string with Say What? and it worked perfectly so maybe it’s a problem from Loco Translate? :\

    Anyway, here is the report of my local test site

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://mytestsite.local
    Site address (URL): https://mytestsite.local
    WC Version: 5.9.0
    REST API Version: ✔ 5.9.0
    WC Blocks Version: ✔ 6.1.0
    Action Scheduler Version: ✔ 3.3.0
    WC Admin Version: ✔ 2.8.0
    Log Directory Writable: ✔
    WP Version: 5.8.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.16.0
    PHP Version: 7.3.5
    PHP Post Max Size: 1 000 Mo
    PHP Time Limit: 1200
    PHP Max Input Vars: 4000
    cURL Version: 7.64.0
    OpenSSL/1.1.1b
    
    SUHOSIN Installed: –
    MySQL Version: 8.0.16
    Max Upload Size: 300 Mo
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 5.9.0
    WC Database Prefix: wp_
    Taille totale de la base de données: 4.41MB
    Taille de la base de données: 2.99MB
    Taille de l’index: 1.42MB
    wp_woocommerce_sessions: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    wp_woocommerce_api_keys: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    wp_woocommerce_attribute_taxonomies: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    wp_woocommerce_downloadable_product_permissions: Données : 0.02MB + Index : 0.06MB + Moteur InnoDB
    wp_woocommerce_order_items: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    wp_woocommerce_order_itemmeta: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    wp_woocommerce_tax_rates: Données : 0.02MB + Index : 0.06MB + Moteur InnoDB
    wp_woocommerce_tax_rate_locations: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    wp_woocommerce_shipping_zones: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    wp_woocommerce_shipping_zone_locations: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    wp_woocommerce_shipping_zone_methods: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    wp_woocommerce_payment_tokens: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    wp_woocommerce_payment_tokenmeta: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    wp_woocommerce_log: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    wp_actionscheduler_actions: Données : 0.02MB + Index : 0.13MB + Moteur InnoDB
    wp_actionscheduler_claims: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    wp_actionscheduler_groups: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    wp_actionscheduler_logs: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    wp_commentmeta: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    wp_comments: Données : 0.02MB + Index : 0.08MB + Moteur InnoDB
    wp_links: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    wp_options: Données : 2.05MB + Index : 0.06MB + Moteur InnoDB
    wp_postmeta: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    wp_posts: Données : 0.05MB + Index : 0.06MB + Moteur InnoDB
    wp_say_what_strings: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    wp_snippets: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    wp_term_relationships: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    wp_term_taxonomy: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    wp_termmeta: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    wp_terms: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    wp_usermeta: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    wp_users: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB
    wp_wc_admin_note_actions: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    wp_wc_admin_notes: Données : 0.05MB + Index : 0.00MB + Moteur InnoDB
    wp_wc_category_lookup: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    wp_wc_customer_lookup: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    wp_wc_download_log: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    wp_wc_order_coupon_lookup: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    wp_wc_order_product_lookup: Données : 0.02MB + Index : 0.06MB + Moteur InnoDB
    wp_wc_order_stats: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB
    wp_wc_order_tax_lookup: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB
    wp_wc_product_meta_lookup: Données : 0.02MB + Index : 0.09MB + Moteur InnoDB
    wp_wc_reserved_stock: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB
    wp_wc_tax_rate_classes: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    wp_wc_webhooks: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB
    
    ### Post Type Counts ###
    
    attachment: 2
    customize_changeset: 4
    page: 8
    post: 2
    product: 4
    revision: 3
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (2) ###
    
    Say What?: par Ademti Software – 2.0.2
    WooCommerce: par Automattic – 5.9.0
    
    ### Inactive Plugins (0) ###
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: USD ($)
    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: –
    
    ### WC Pages ###
    
    Base de la boutique: #6 - /shop/
    Panier: #7 - /cart/
    Commander: #8 - /checkout/
    Mon compte: #9 - /my-account/
    Conditions générales de vente et d’utilisation: ❌ Page non définie
    
    ### Theme ###
    
    Name: Storefront
    Version: 3.9.1
    Author URL: https://woocommerce.com/
    Child Theme: ❌ – Si vous modifiez WooCommerce sur un thème parent que vous n’avez pas construit personnellement
    nous vous recommandons d’utiliser un thème enfant. Voir : Comment créer un thème enfant
    
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: –
    
    ### Action Scheduler ###
    
    Terminé: 12
    Oldest: 2021-11-09 07:51:05 +0100
    Newest: 2021-11-10 18:04:48 +0100
    
    ### Status report information ###
    
    Generated at: 2021-11-10 18:09:35 +01:00
    
    Plugin Support Chris M. – a11n

    (@csmcneill)

    Hi @kureman,

    The problem I wrote about initially, was about the translation of “%d in cart” to “%d dans le panier” was not working with Loco Translate.
    I tried to translate this string with Say What? and it worked perfectly so maybe it’s a problem from Loco Translate? :\

    I’m glad you were able to get that particular issue resolved!

    Actually, I don’t think “All Product” widget is showing “%d in cart” is a bug. I am just curious to know why it’s the only widget showing this notification after adding a product to the cart.

    I think that the confusion we were running into previously is the difference between the terms widget and block. These two are a bit different; widgets are added to an overall theme to affect its appearance and the information provided across the site, like a navigation menu. However, blocks are added on a page-by-page basis.

    When we attempted to add the All Products widget, we could not reproduce the issue you described, and the appearance looked quite different: https://d.pr/i/cNRyxc

    However, when I add the All Products block, I can see the issue that you describe: https://d.pr/i/QeOrqm

    Since I can reproduce the issue that you describe, I would recommend that you report your findings at our public GitHub repository for WooCommerce. Create a new issue, designate it as a bug report, and fill out the requested information.

    There is a possibility that this is an intended feature of the All Products block; the WooCommerce developers will be able to respond to your inquiry and let you know 🙂

    I hope this helps! Let us know if you have any further questions!

    Thread Starter kureman

    (@kureman)

    Hi @chrism245,

    Excuse me for my misunderstanding, you are right, I was asking about block!

    I am going to report on GitHub.

    Thank you all for your support!

    Plugin Support Con a11n

    (@conschneider)

    Automattic Happiness Engineer

    Howdy!

    Excuse me for my misunderstanding, you are right, I was asking about block!
    I am going to report on GitHub.
    Thank you all for your support!

    Thanks for bringing this to our attention and doing the report :).

    All the best 👋.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Bug with “Product list” widget’ is closed to new replies.