Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › shop products mini – sale items showing all
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › shop products mini – sale items showing all
- This topic has 13 replies, 5 voices, and was last updated 10 years by laranz – SUPPORT.
-
Posted in: Neighborhood
-
September 29, 2013 at 4:46 pm #24358
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)
September 29, 2013 at 4:47 pm #24359This reply has been marked as private.October 1, 2013 at 7:31 pm #24732Hi, are some of those products marked as sticky or special in any other way? Featured maybe? Cheers
October 2, 2013 at 9:54 am #24860Some 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.
October 3, 2013 at 10:08 am #25069That’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!
October 3, 2013 at 10:17 am #25073This reply has been marked as private.October 10, 2013 at 4:02 pm #26181Any Solution?
October 10, 2013 at 4:11 pm #26184Cou 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' ); }
October 10, 2013 at 5:07 pm #26206not yet, still waiting for a response from support. They’re usually fast.
October 11, 2013 at 8:15 am #26290It seems that there is an error if the sale price is like the regular price.
October 11, 2013 at 12:53 pm #26351Hi 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
October 11, 2013 at 1:09 pm #26353Thanks for letting us know about this, I’ve fixed it with the attached update.
– Ed
October 12, 2013 at 1:25 pm #26426That solved it perfectly, thanks Ed and Melanie!
October 15, 2013 at 12:14 am #26688Hi,
Great ๐
Let us know, if you have any other questions.
Thanks,
laranz. -
Posted in: Neighborhood
You must be logged in and have valid license to reply to this topic.