New Landing How can we help? Themeforest Theme Support Dante What has changed 2.7.6 2.7.7? display heading area gets corrupted with a plugin

Viewing 5 posts - 1 through 5 (of 5 total)
  • Posted in: Dante
  • #151451
    r3style
    Member
    Post count: 47

    After update 2.7.6 to 2.7.7 , display heading area gets corrupted.
    class = ”page-heading col-sm-12 clearfix alt-bg none”

    The plugin was affected updated 2.7.7. 2.7.6 is fine.
    What has changed 2.7.6 2.7.7?
    Are there any good methods for that?

    function rc_woocommerce_recently_viewed_products( $atts, $content = null ) {
    
    	// Get shortcode parameters
    	extract(shortcode_atts(array(
    		"per_page" => '5'
    	), $atts));
    
    	// Get WooCommerce Global
    	global $woocommerce;
    
    	// Get recently viewed product cookies data
    	$viewed_products = ! empty( $_COOKIE['woocommerce_recently_viewed'] ) ? (array) explode( '|', $_COOKIE['woocommerce_recently_viewed'] ) : array();
    	$viewed_products = array_filter( array_map( 'absint', $viewed_products ) );
    
    	// If no data, quit
    	if ( empty( $viewed_products ) )
    		return __( 'You have not viewed any product yet!', 'rc_wc_rvp' );
    
    	// Create the object
    	ob_start();
    
    	// Get products per page
    	if( !isset( $per_page ) ? $number = 5 : $number = $per_page )
    
    	// Create query arguments array
        $query_args = array(
        				'posts_per_page' => $number, 
        				'no_found_rows'  => 1, 
        				'post_status'    => 'publish', 
        				'post_type'      => 'product', 
        				'post__in'       => $viewed_products, 
        				'orderby'        => 'rand'
        				);
    
    	// Add meta_query to query args
    	$query_args['meta_query'] = array();
    
        // Check products stock status
        $query_args['meta_query'][] = $woocommerce->query->stock_status_meta_query();
    
    	// Create a new query
    	$r = new WP_Query($query_args);
    
    	// If query return results
    	if ( $r->have_posts() ) {
    
    		$content = '<ul class="rc_wc_rvp_product_list_widget">';
    
    		// Start the loop
    		while ( $r->have_posts()) {
    			$r->the_post();
    			global $product;
    
    			$content .= '<li>
    				<a href="' . get_permalink() . '">
    					' . ( has_post_thumbnail() ? get_the_post_thumbnail( $r->post->ID, 'shop_thumbnail' ) : woocommerce_placeholder_img( 'shop_thumbnail' ) ) . ' ' . get_the_title() . '
    				</a> ' . $product->get_price_html() . '
    			</li>';
    		}
    
    		$content .= '</ul>';
    
    	}
    
    	// Get clean object
    	$content .= ob_get_clean();
    	
    	// Return whole content
    	return $content;
    }
    
    // Register the shortcode
    add_shortcode("woocommerce_recently_viewed_products", "rc_woocommerce_recently_viewed_products");
    Attachments:
    You must be logged in to view attached files.
    #151459
    r3style
    Member
    Post count: 47

    If and only if set mega menu Custom HTML Column (within Mega Menu) [woocommerce_recently_viewed_products per_page=””] in 2.77

    2.7.6 is fine.
    What has changed 2.7.6 2.7.7?
    Are there any good methods for that?

    #151511
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Can you provide us your site url?
    Thanks

    -Rui

    #153205
    r3style
    Member
    Post count: 47

    I was resolved on their own

    #153250
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I am glad that you managed to resolve the issue.
    Thanks
    Mohammad

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register