Homepage › Forum › Product Support › Sofani › Product images don't appear in the CART.
- This topic has 8 replies, 2 voices, and was last updated 5 years, 4 months ago by
arty111.
-
AuthorPosts
-
5 years, 4 months ago #22264
Hi. Please help to solve the problem. Product images do not appear in the CART. Screenshot is attached
5 years, 4 months ago #22280Hi.
Thank you for contacting us.
Please give us your site URL, admin account. We will help you check it soon.
Thanks.
5 years, 4 months ago #22282This reply has been marked as private.5 years, 4 months ago #22284This reply has been marked as private.5 years, 4 months ago #22286Hi again.
We have tried both passwords, but it doesn't correct. Can you check it again?
Thanks.
5 years, 4 months ago #22293This reply has been marked as private.5 years, 4 months ago #22308Hi again.
I have checked your site and found the issue from your custom source code at the functions.php file on the child theme.
remove_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_rating', 5 ); function add_rel_preload($html, $handle, $href, $media) { if (is_admin()) return $html; $html = <<<EOT <link rel='preload' as='style' onload="this.onload=null;this.rel='stylesheet'" id='$handle' href='$href' type='text/css' media='all' /> EOT; return $html; } add_filter( 'style_loader_tag', 'add_rel_preload', 10, 4 );After removing those functions, the cart works fine.
Please check it again.
Thanks.
5 years, 4 months ago #22309We also found the custom source code at the functions.php file on the parent theme.
function _remove_script_version( $src ){ $parts = explode( '?ver', $src ); return $parts[0]; } add_filter( 'script_loader_src', '_remove_script_version', 15, 1 ); add_filter( 'style_loader_src', '_remove_script_version', 15, 1 ); define('AUTOSAVE_INTERVAL', 300); // seconds define('WP_POST_REVISIONS', 3); /** * Disable the emoji's */ function disable_emojis() { remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); remove_action( 'wp_print_styles', 'print_emoji_styles' ); remove_action( 'admin_print_styles', 'print_emoji_styles' ); remove_filter( 'the_content_feed', 'wp_staticize_emoji' ); remove_filter( 'comment_text_rss', 'wp_staticize_emoji' ); remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' ); add_filter( 'tiny_mce_plugins', 'disable_emojis_tinymce' ); } add_action( 'init', 'disable_emojis' ); /** * Filter function used to remove the tinymce emoji plugin. * * @param array $plugins * @return array Difference betwen the two arrays */ function disable_emojis_tinymce( $plugins ) { if ( is_array( $plugins ) ) { return array_diff( $plugins, array( 'wpemoji' ) ); } else { return array(); } } add_filter('script_loader_tag', 'add_async_attribute', 10, 2); function add_async_attribute($tag, $handle) { if(!is_admin()){ if ('jquery-core' == $handle) { return $tag; } return str_replace(' src', ' defer src', $tag); }else{ return $tag; } }Please move that code to the child theme to avoid the miss when updating the theme.
Thanks.
5 years, 4 months ago #22314Great! Thank you a lot
-
AuthorPosts
You must be logged in and have valid license to reply to this topic.
