Home › Forums › WoodMart support forum › Make hidden products available in wish list
Make hidden products available in wish list
- This topic has 29 replies, 4 voices, and was last updated 3 years, 5 months ago by Artem Temos.
-
AuthorPosts
-
June 14, 2020 at 12:57 pm #203342
hariskayParticipantHello, our store is set to hide out of stock products through woocommerce inventory settings, is there a way we can keep the products displayed in woodmart wishlist?
June 14, 2020 at 3:32 pm #203362
hariskayParticipantCan we also make hidden products show up in search result if possible?
June 14, 2020 at 8:56 pm #203399
Elise NoromitMemberHello,
If you set to hide out of stock products, they would be hidden everywhere, including the wishlist.
Best Regards
June 14, 2020 at 8:58 pm #203400
hariskayParticipantHello, but they are available on compare page despite the fact that they are hidden, couldn’t we do something like this for Wishlist too?
June 15, 2020 at 6:37 am #203465
Artem TemosKeymasterCompare page doesn’t have products loop as other shop pages including wishlist. In other words, Wishlist page uses same products PHP files as on the shop page. And it is not easy to change this on the wishlist only. But here is an instruction that may help you to achieve this
1. Add the following line to the file
woodmart\inc\integrations\woocommerce\functions.php
http://prntscr.com/szv6i9'is_wishlist' => false,
2. Add this line to file
woodmart\inc\integrations\woocommerce\modules\wishlist\class-ui.php
https://prnt.sc/szv6s9woodmart_set_loop_prop( 'is_wishlist', true );
3. Replace this line
if ( empty( $product ) || ! $product->is_visible() ) {
with this one
if ( ( empty( $product ) || ! $product->is_visible() ) && ! woodmart_loop_prop( 'is_wishlist' ) ) {
in the file
woodmart\woocommerce\content-product.php
4. Remove the following code from the file
woodmart\inc\modules\search.php
if ( 'yes' === get_option( 'woocommerce_hide_out_of_stock_items' ) && $post_type == 'product' ) { $query_args['meta_query'][] = array( 'key' => '_stock_status', 'value' => 'outofstock', 'compare' => 'NOT IN' ); }
June 15, 2020 at 7:41 pm #203691
hariskayParticipantThis has helped me find hidden out of stock products in search but the out of stock products are still not available in the wishlist, I double checked everything you wrote above. (Also noticed “Compare” exist on the hidden product page that I find through search but “Add to wishlist” doesnt.)
June 16, 2020 at 6:11 am #203786
Artem TemosKeymasterWhat do you mean by “Compare” exist on the hidden product page? Please, provide us some explanation.
Send us your FTP access so we can check all changes in the code.It would be very kind of you if you would change your review on ThemeForest while we are here and provide you with all the necessary support.
Kind Regards
June 16, 2020 at 11:55 am #203956
hariskayParticipantYou can disregard my last post regarding Compare existing on hidden product, it was a cache error.
The search is working as I wrote earlier but the wishlist still does not show hidden items.
I have provided WP login information.I have also updated my review, thank you for working on customer satisfaction.
June 16, 2020 at 12:25 pm #203967
Artem TemosKeymasterThank you for the review. It is much appreciated.
Please, send us your FTP access so we can check the code.June 16, 2020 at 6:50 pm #204066
hariskayParticipantNo problem, here is the FTP information:
June 17, 2020 at 7:20 am #204151
Artem TemosKeymasterTry to edit the file
woodmart\inc\shortcodes\products.php
and change the following http://prntscr.com/t182pl'tax_query' => $tax_query,
'tax_query' => array(),
June 17, 2020 at 9:31 am #204173
hariskayParticipantThis is top notch, worked like a charm. Thank you. I will keep extending support as long as we use the theme to express my gratitude.
June 17, 2020 at 12:19 pm #204244
Artem TemosKeymasterWell, we are glad that you like it. Contact us if you will have any questions!
June 20, 2020 at 10:35 pm #205097
hariskayParticipantHello, sorry to bug you again but I just noticed that the product carousal has empty space taken by hidden items, is there a way to fix this?
Attachments:
You must be logged in to view attached files.June 20, 2020 at 10:57 pm #205100
hariskayParticipantNevermind, I fixed it. 🙂
June 26, 2020 at 7:46 pm #206769
hariskayParticipantHello, what I thought I fixed is becoming a problem again, can you please provide a solution to this?
Everytime a product goes out of stock, it ends up taking empty space on homepage Product Crousal, as attached in the previous screenshot.
June 27, 2020 at 1:58 pm #206921
Eric WatsonParticipantHello,
Now we do not see empty places, could you set it up so that we can see the problem?
https://prnt.sc/t7hejxKind Regards
XTemos StudioJune 28, 2020 at 1:35 pm #207040
hariskayParticipantHello you can see it now. My woodmart caroisal is set to display 6 recent items but it shows only 1, you can go to Ürünler (Shop page) and see there are more products available but are not being displayed in the carousel.
June 29, 2020 at 7:14 am #207169
Eric WatsonParticipantHello,
We cannot connect via FTP. Did you change the data?
Kind Regards
XTemos StudioJune 29, 2020 at 5:02 pm #207348
hariskayParticipantHello, sorry about that, the FTP account got disabled since we changed our domain. You can find the new login details in the private content. Thank you.
June 30, 2020 at 6:10 am #207432
Eric WatsonParticipantTry to edit the file
woodmart\inc\shortcodes\products.php
and change the following code from'tax_query' => array(),
to
'tax_query' => woodmart_loop_prop( 'is_wishlist' ) ? array() : $tax_query,
July 4, 2020 at 11:37 am #208589
hariskayParticipantHello, I have been testing it since your response, thank you so much for that.
So far everything seems to work correctly. Cheers.
July 4, 2020 at 12:32 pm #208604
Artem TemosKeymasterGreat, contact us if you will have any questions.
August 12, 2020 at 10:34 pm #218293
hariskayParticipantHello, I only wanted to ask if there is something else I should be doing after the recent updates. I followed the exact same method that you provided above but since then it has been some theme updates, for example previously I was replacing
'tax_query' => array(),
but now it is changed, so will any of the recent updates affect this method or should I continue using the described solution?Thank you
August 13, 2020 at 6:52 am #218363
Artem TemosKeymasterHello,
We didn’t change anything in our update. Just follow the same instruction and it will work without any problems.
Kind Regards
May 5, 2021 at 1:05 pm #289810
hariskayParticipantHello Artem Temos,
I recently updated my theme and your provided functionality is not working due to changes in the structure. Can you please provide me with updated guide to fix this?
I understand that it takes your time and effort and that is why we always extend our licenses and will continue to do so!
Thank you in advance
May 12, 2021 at 10:29 am #291793
hariskayParticipantHi again,
First off, I do apologize for bumping it since I know you must be busy after the update but this functionality has been extremely important to us and that is why I am requesting that whenever possible, please provide a workaround to make it work and we will be your customers for years to come!
Cheers and have a nice day.
June 10, 2021 at 3:32 pm #298927
hariskayParticipantHello Artem,
I am again requesting if you could update the code. I would highly appreciate it.
Thank you again.
June 29, 2021 at 4:21 pm #303406
hariskayParticipantHello, I am writing again regarding our request.
We recently extended support again and we are hoping to get help from you as stated earlier, this functionality is extremely critical to our business. We really hope your team will appreciate our commitment and get back to us.
Thank you
July 9, 2021 at 6:10 am #305428
Artem TemosKeymasterHello,
We are very sorry but due to the fact that you wrote in the outdated topic, we haven’t seen it in our support requests list. Please, create a new topic and we will provide you with all the necessary help asap.
Sorry for the inconvenience.
-
AuthorPosts
The topic ‘Make hidden products available in wish list’ is closed to new replies.
- You must be logged in to create new topics. Login / Register