This topic has 10 replies, 4 voices, and was last updated 4 years, 6 months ago ago by Olga Barlow
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
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
Hi
Here are the credentials
Thanks
Regards
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
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
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.
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
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
Hello,
You’re welcome!
Please check translation of WooCommerce plugin
https://docs.woocommerce.com/document/woocommerce-localization/
Regards
Hello,
Translate theme and XStore Core plugin https://www.8theme.com/documentation/xstore/theme-translation/base-theme-translation/
Regards
You must be logged in to reply to this topic.Log in/Sign up