New Landing How can we help? Themeforest Theme Support Neighborhood shop products mini – sale items showing all

Viewing 14 posts - 1 through 14 (of 14 total)
  • #24358
    midnite
    Member
    Post count: 52

    Hello, I’m having an issue with just the “on sale” shop products mini on the home page. I have 4 shop products mini boxes, all set to show only 3 items, however the “on sale” one is showing all the sale items no matter what. Any advice? (please see attached image on the private message below)

    #24359
    midnite
    Member
    Post count: 52
    This reply has been marked as private.
    #24732
    Melanie – SUPPORT
    Member
    Post count: 11032

    Hi, are some of those products marked as sticky or special in any other way? Featured maybe? Cheers

    #24860
    midnite
    Member
    Post count: 52

    Some are marked as Featured so that they can appear on the “Featured” slider, but I tried un-featuring all the sale items and they still all show up on the “On Sale” mini box.

    #25069
    Melanie – SUPPORT
    Member
    Post count: 11032

    That’s odd,
    I’d like to check the backend of your website to investigate, could you let me know your login details please?

    Thanks and cheers!

    #25073
    midnite
    Member
    Post count: 52
    This reply has been marked as private.
    #26181
    Ultraschall2d
    Member
    Post count: 59

    Any Solution?

    #26184
    Ultraschall2d
    Member
    Post count: 59

    Cou have changed this to this in 1.3.3 update:

    1.3.3

    
    		} else if ($asset_type == "sale-products") {
    			// Get products on sale
    			$product_ids_on_sale = woocommerce_get_product_ids_on_sale();
    			
    			$meta_query = array();
    			$meta_query[] = $woocommerce->query->visibility_meta_query();
    			$meta_query[] = $woocommerce->query->stock_status_meta_query();
    			  
    			$args = array(
    				'no_found_rows' => 1,
    				'post_status'   => 'publish',
    				'post_type'     => 'product',
    				'orderby'       => 'date',
    				'order'         => 'ASC',
    				'meta_query'    => $meta_query,
    				'post__in'      => $product_ids_on_sale
    			);
    		} else {
    			$args = array(
    					'post_type' => 'product',
    					'post_status' => 'publish',
    					'product_cat' => $category,
    					'ignore_sticky_posts'   => 1,
    					'posts_per_page' => $item_count,
    					'meta_key' 		=> 'total_sales',
    					'orderby' 		=> 'meta_value'
    				);	    
    		}
    
    

    1.3.2

    
    
    		} else if ($asset_type == "sale-products") {
    			$args = array(
    				    'post_type' => 'product',
    					'post_status' => 'publish',
    					'product_cat' => $category,
    					'ignore_sticky_posts'   => 1,
    					'posts_per_page' => $item_count,
    					'meta_query' => array(
    						array(
    							'key' => '_sale_price',
    							'value' =>  0,
    							'compare'   => '>',
    							'type'      => 'NUMERIC'
    						),
    						array(
    							'key' => '_visibility',
    							'value' => array('catalog', 'visible'),
    							'compare' => 'IN'
    						),
    					)
    				);
    		} else {
    			$args = array(
    					'post_type' => 'product',
    					'post_status' => 'publish',
    					'product_cat' => $category,
    					'ignore_sticky_posts'   => 1,
    					'posts_per_page' => $item_count,
    					'meta_key' 		=> 'total_sales',
    					'orderby' 		=> 'meta_value'
    				);	    
    		}
    
    #26206
    midnite
    Member
    Post count: 52

    not yet, still waiting for a response from support. They’re usually fast.

    #26290
    Ultraschall2d
    Member
    Post count: 59

    It seems that there is an error if the sale price is like the regular price.

    #26351
    Melanie – SUPPORT
    Member
    Post count: 11032

    Hi guys, I’m terribly sorry that we missed the thread!

    I thought I already forwarded this to another support staff as I cannot figure out why it’s not working, but apparently it did not work ๐Ÿ™

    Thank you and sorry again, I’ll make sure it’s forwarded to Laranz to check it out and assist me.

    All the best

    #26353
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Thanks for letting us know about this, I’ve fixed it with the attached update.

    – Ed

    #26426
    midnite
    Member
    Post count: 52

    That solved it perfectly, thanks Ed and Melanie!

    #26688
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    Great ๐Ÿ™‚

    Let us know, if you have any other questions.

    Thanks,
    laranz.

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

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

License required for the following item
Login and Registration Log in · Register