• Resolved PaulJBis

    (@pauljbis)


    I am setting up a Woocommerce store using a third party theme. The theme comes with its .po file, which I translated. The problem is that there is one particular string, the “(product) has been added to your cart”, that stays in English no matter what.

    I checked the .po files: the one in my theme doesn’t have that string, but the one that comes with Woocommerce (located in wp-content/languages/plugins/) does, and it’s properly translated.

    I also checked the code in my theme: it doesn’t use the wc_add_to_cart_message_html filter anywhere, from what I see.

    I tried switching to the Storefront theme, and the same problem happens.

    Where else can I look? What am I missing?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @pauljbis!

    It’s hard to say without checking it out directly, this output message can be added from different places, like a plugin for example.

    To help us diagnose it better, could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.?

    Once you’ve done that, paste it here in your response.

    My very best,

    Thread Starter PaulJBis

    (@pauljbis)

    Hi:

    Thanks for your help. I have redacte my site’s URL, but otherwise pasted it as is.

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://XXXXXX
    Site address (URL): https://XXXXXXX
    WC Version: 6.3.1
    REST API Version: ? 6.3.1
    WC Blocks Version: ? 6.9.0
    Action Scheduler Version: ? 3.4.0
    WC Admin Version: ? 3.2.1
    Log Directory Writable: ?
    WP Version: 5.9.3
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: es_ES
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.4.25
    PHP Post Max Size: 130 MB
    PHP Time Limit: 165
    PHP Max Input Vars: 16000
    cURL Version: 7.64.0
    OpenSSL/1.1.1d
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.50-log
    Max Upload Size: 128 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 6.3.1
    WC Database Prefix: wp_
    Tama?o total de la base de datos: 18.96MB
    Tama?o de los datos de la base de datos: 13.40MB
    Tama?o del índice de la base de datos: 5.56MB
    wp_woocommerce_sessions: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_woocommerce_api_keys: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_woocommerce_attribute_taxonomies: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_woocommerce_downloadable_product_permissions: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB
    wp_woocommerce_order_items: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_woocommerce_order_itemmeta: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_woocommerce_tax_rates: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB
    wp_woocommerce_tax_rate_locations: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_woocommerce_shipping_zones: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_woocommerce_shipping_zone_locations: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_woocommerce_shipping_zone_methods: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_woocommerce_payment_tokens: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_woocommerce_payment_tokenmeta: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_woocommerce_log: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    cerber_acl: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    cerber_blocks: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    cerber_countries: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    cerber_lab: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    cerber_lab_ip: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    cerber_lab_net: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    cerber_log: Datos: 0.02MB + índice: 0.05MB + Motor InnoDB
    cerber_qmem: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    cerber_traffic: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_actionscheduler_actions: Datos: 0.39MB + índice: 0.50MB + Motor InnoDB
    wp_actionscheduler_claims: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_actionscheduler_groups: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_actionscheduler_logs: Datos: 0.34MB + índice: 0.25MB + Motor InnoDB
    wp_cerber_files: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_cerber_sets: Datos: 0.09MB + índice: 0.00MB + Motor InnoDB
    wp_cerber_uss: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_commentmeta: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_comments: Datos: 0.02MB + índice: 0.09MB + Motor InnoDB
    wp_links: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_options: Datos: 5.02MB + índice: 0.08MB + Motor InnoDB
    wp_postmeta: Datos: 3.50MB + índice: 2.97MB + Motor InnoDB
    wp_posts: Datos: 2.45MB + índice: 0.25MB + Motor InnoDB
    wp_revslider_css: Datos: 0.13MB + índice: 0.02MB + Motor InnoDB
    wp_revslider_css_bkp: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_revslider_layer_animations: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_revslider_layer_animations_bkp: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_revslider_navigations: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_revslider_navigations_bkp: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_revslider_sliders: Datos: 0.03MB + índice: 0.02MB + Motor InnoDB
    wp_revslider_sliders_bkp: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_revslider_slides: Datos: 0.06MB + índice: 0.02MB + Motor InnoDB
    wp_revslider_slides_bkp: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_revslider_static_slides: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_revslider_static_slides_bkp: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_termmeta: Datos: 0.05MB + índice: 0.03MB + Motor InnoDB
    wp_terms: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_term_relationships: Datos: 0.11MB + índice: 0.05MB + Motor InnoDB
    wp_term_taxonomy: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_usermeta: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_users: Datos: 0.02MB + índice: 0.05MB + Motor InnoDB
    wp_wc_admin_notes: Datos: 0.05MB + índice: 0.00MB + Motor InnoDB
    wp_wc_admin_note_actions: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_wc_category_lookup: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_wc_customer_lookup: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_wc_download_log: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_wc_order_coupon_lookup: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_wc_order_product_lookup: Datos: 0.02MB + índice: 0.06MB + Motor InnoDB
    wp_wc_order_stats: Datos: 0.02MB + índice: 0.05MB + Motor InnoDB
    wp_wc_order_tax_lookup: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_wc_product_attributes_lookup: Datos: 0.02MB + índice: 0.03MB + Motor InnoDB
    wp_wc_product_meta_lookup: Datos: 0.06MB + índice: 0.09MB + Motor InnoDB
    wp_wc_rate_limits: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_wc_reserved_stock: Datos: 0.02MB + índice: 0.00MB + Motor InnoDB
    wp_wc_tax_rate_classes: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    wp_wc_webhooks: Datos: 0.02MB + índice: 0.02MB + Motor InnoDB
    
    ### Post Type Counts ###
    
    attachment: 582
    customize_changeset: 4
    la_block: 2
    la_portfolio: 12
    la_team_member: 6
    la_testimonial: 3
    nav_menu_item: 121
    page: 50
    post: 24
    product: 383
    product_variation: 1
    revision: 78
    shop_order: 2
    whatsapp_chat_orders: 1
    wp_global_styles: 2
    wpcf7_contact_form: 3
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (11) ###
    
    Click to Chat: por HoliThemes – 3.9.2
    Contact Form 7: por Takayuki Miyoshi – 5.5.6
    Yoast Duplicate Post: por Enrico Battocchi & Team Yoast – 4.4
    WPBakery Page Builder: por Michael M - WPBakery.com – 6.7.0
    LA Studio Core: por LA Studio – 2.3.2
    Negan Package Demo Data: por LA Studio – 1.0.5
    All in One Product Quantity for WooCommerce Pro: por WPWhale – 4.0
    Slider Revolution: por ThemePunch – 6.5.4
    UpdraftPlus - Backup/Restore: por UpdraftPlus.Com
    DavidAnderson – 1.22.11
    
    WooCommerce: por Automattic – 6.3.1 (la actualización a la versión 6.4.1 está disponible)
    WP Cerber Security, Anti-spam & Malware Scan: por Cerber Tech Inc. – 8.9.6
    
    ### Inactive Plugins (4) ###
    
    Akismet Anti-Spam: por Automattic – 4.2.2
    All in One Product Quantity for WooCommerce: por WPWhale – 4.0
    Hello Dolly: por Matt Mullenweg – 1.7.2
    Quick Whatsapp Chat and Orders for WooCommerce: por P5cure – 1.0
    
    ### Settings ###
    
    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)
    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 tienda: #6 - /tienda/
    Carrito: #71 - /cart/
    Finalizar compra: #72 - /checkout/
    Mi cuenta: #73 - /my-account/
    Términos y condiciones: ? Página sin definir
    
    ### Theme ###
    
    Name: Negan Child
    Version: 1.0
    Author URL: https://themeforest.net/user/LA-Studio?ref=LA-Studio
    Child Theme: ?
    Parent Theme Name: Negan
    Parent Theme Version: 1.4.3
    Parent Theme Author URL: https://themeforest.net/user/LA-Studio?ref=LA-Studio
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: negan/woocommerce/archive-product.php
    negan/woocommerce/cart/cross-sells.php
    negan/woocommerce/content-product.php
    negan/woocommerce/content-single-product.php
    negan-child/woocommerce/global/quantity-input.php
    negan/woocommerce/loop/add-to-cart.php
    negan/woocommerce/loop/loop-end.php
    negan/woocommerce/loop/loop-start.php
    negan/woocommerce/loop/orderby.php
    negan/woocommerce/loop/pagination.php
    negan/woocommerce/loop/sale-flash.php
    negan/woocommerce/myaccount/form-login.php
    negan/woocommerce/product-searchform.php
    negan/woocommerce/single-product/product-image.php
    negan/woocommerce/single-product/product-thumbnails.php
    negan/woocommerce/single-product/related.php
    negan/woocommerce/single-product/share.php
    negan/woocommerce/single-product/tabs/tabs.php
    negan/woocommerce/single-product/up-sells.php
    
    ### Action Scheduler ###
    
    Completo: 1.430
    Oldest: 2022-04-06 18:26:45 +0000
    Newest: 2022-05-01 13:07:15 +0000
    
    ### Status report information ###
    
    Generated at: 2022-05-01 15:08:40 +00:00
    
    Mirko P.

    (@rainfallnixfig)

    Hi @pauljbis,

    Thank you for the system status.

    but the one that comes with Woocommerce (located in wp-content/languages/plugins/) does, and it’s properly translated.

    Can you make a screenshot of how this translation appears in the woocommerce-[lang]_[LANG].po file?

    I recommend https://snipboard.io for easily sharing screenshots – please follow the instructions on that page, then paste the URL in this thread.

    You could also install the Loco Translate plugin. This will allow you to find that phrase and change it to be what you’d like.

    You can follow our step-by-step guide on how to do that here: https://docs.woocommerce.com/document/woocommerce-localization/#section-5

    Cheers.

    Thread Starter PaulJBis

    (@pauljbis)

    Hello, here it is:

    https://snipboard.io/dHb6wk.jpg

    I should mention that my site shows the message including the “View cart” link. In other words, the full message that shows up is “(product) has been added to your cart. View cart”.

    I don’t know if that “View cart” link is added separately by the code, or if it’s supposed to be in the same string than “(product) has been added to your cart”.

    Another thing: I’m using Woocommerce 6.3.1, not the latest version. Should I upgrade just in case?

    Mirko P.

    (@rainfallnixfig)

    Hi there,

    Thank you for the screenshot.

    You were mentioning earlier that you tried switching to the Storefront theme but the same problem occurred. I can’t replicate this on my test site with only WooCommerce core and the default Storefront theme enabled. This is what appears at the top of the shop page when I add the product to the cart:


    Full size: https://snipboard.io/1cLhsz.jpg

    Can you deactivate all plugins and any custom code on your site, and leave only WooCommerce enabled along with the Storefront theme? Check if the translation is shown at this point.

    Alternatively, install Loco Translate as suggested above and it should work.

    Another thing: I’m using Woocommerce 6.3.1, not the latest version. Should I upgrade just in case?

    Your theme declares compatibility with WooCommerce 6.3.1 and WordPress 5.9.2 so before updating you may need to reach out to the theme developers as their product might not be compatible with the latest WooCommerce release.

    Thanks.

    Mirko P.

    (@rainfallnixfig)

    Hi there,

    We haven’t heard from you in a while, so I’m going to mark this as resolved. Feel free to start a new thread if you have any more questions.

    Cheers.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘“(product) has been added to cart” message doesn’t get translated’ is closed to new replies.