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 ?
Theme version: 6.2.2
WooCommerce version: 3.8.1
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
– FTP info (server, username, password, port)
– Admin info (wp-admin URL, username, password)
I will check this problem for you.
Here are the credentials
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.
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
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.
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
Please check translation of WooCommerce plugin
Translate theme and XStore Core plugin https://xstore.helpscoutdocs.com/article/30-base-theme-translation
You must be logged in to reply to this topic.Log in/Sign up
One standard license is valid only for 1 project. Running multiple projects on a single license is a copyright violation.