"Notice" message displayed in some products of the shop

This topic has 10 replies, 4 voices, and was last updated 4 years, 7 months ago ago by Olga Barlow

  • Avatar: staccat
    staccat
    Participant
    December 26, 2019 at 21:13

    Hi

    In the products shop url, there are some messages on some products.
    We compre products with erro message and without erro message but cant find the diffrence and why this error.

    Please can you help us debug this ?

    Notice: product_type was called incorrectly. Product properties should not be accessed directly. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/xstore/woocommerce/archive-product.php'), wc_get_template_part, load_template, require('/themes/xstore/woocommerce/content-product.php'), do_action('woocommerce_after_shop_loop_item'), WP_Hook->do_action, WP_Hook->apply_filters, woocommerce_template_loop_add_to_cart, wc_get_template, include('/plugins/woocommerce/templates/loop/add-to-cart.php'), WC_Product_Simple->add_to_cart_text, apply_filters('woocommerce_product_add_to_cart_text'), WP_Hook->apply_filters, custom_woocommerce_product_add_to_cart_text, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong Please see Debugging in WordPress for more information. (This message was added in version 3.0.) in /home/customer/www/dev.sommier.biz/public_html/wp-includes/functions.php on line 4986

    Please, contact administrator
    for this information.
    9 Answers
    Avatar: John Holden
    John Holden
    Support staff
    December 27, 2019 at 04:40

    Hi,

    Please send:

    – FTP info (server, username, password, port)
    – Admin info (wp-admin URL, username, password)

    I will check this problem for you.

    Regards,
    Hung PD

    Avatar: staccat
    staccat
    Participant
    December 27, 2019 at 22:23

    Hi

    Here are the credentials

    Thanks

    Regards

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    December 28, 2019 at 09:20

    Hello,

    I’ve sent your question to our technicians. We will let you know, once get an answer. It may take a few days, due to the weekend. Please do not change credentials.
    Thanks in advance.

    Regards

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    December 30, 2019 at 14:55

    Hello,

    The reason of your notices is the following function custom_woocommerce_product_add_to_cart_text in xstore-child/functions.php http://prntscr.com/qhfiyh

    Regards

    Avatar: staccat
    staccat
    Participant
    April 29, 2020 at 15:16

    Hi

    Thanks for your effort
    I am not a developper, so the information you give me is precise but I dont understand what I can do with it.
    The notice message is always displayed in my website.

    Do you mean that this function is provided by a plugin that I have to deactivate ?
    Or is it possible to add a filter in the child theme to alter/modify something in this this function ?

    Thanks for your understanding and help

    F.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 29, 2020 at 19:27

    Hello,

    Contact person who added that function to child theme functions.php or remove it. We aren’t responsible for changes made by the user (or his developer) in the child theme. We are responsible for parent theme code.

    Regards

    Avatar: staccat
    staccat
    Participant
    April 30, 2020 at 07:55

    Hi

    Ok, thanks, that is more clear for me.
    It works perfectly now.

    May I ask you how I can change the “Read More” txt in the front page buttons for a translated one please ?

    Thank you very much for your work and help

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 30, 2020 at 09:55

    Hello,

    You’re welcome!
    Please check translation of WooCommerce plugin
    https://docs.woocommerce.com/document/woocommerce-localization/

    Regards

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 30, 2020 at 10:02
  • Viewing 10 results - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.