Forums › Forums › Search & Filter Pro › Customer option to display only in-stock product
- This topic has 117 replies, 2 voices, and was last updated 6 years ago by Anonymous.
-
Anonymous(Private) October 4, 2018 at 5:28 pm #190125
I’ve sent your question to the theme developer. Soon as I hear back, I’ll post it here.
Over the past few days, I’ve been working with the developer of a plug in that’s designed to give me more control over how the native-to-WooCommerce coupon codes work. It functioned perfectly, but there is 1 product I don’t want to discount. He asked if I could make a new category for it, and I did. That new category is called Minis, and the minis are the only product in it. The idea was then to select all the categories in which I want the discount to be applied. Easy, there are only 4 including uncategorized. However, I put several products in my cart to test it, and now the discount isn’t applied to the items that used to be in a category that was moved to your new Yarn Bases and Color Groups, which is well over 95% of the products in my catalog. I’m pursuing this with him, too, but I wondered if you might have an idea of how to resolve this. I’m not even sure that I’m explaining this very well. Of the products that formerly had been in one of the no-longer-existing categories that I looked at are now in the uncategorized category. The following may be more detail than you need, but I’m including it in case it helps shed some light on the issue. If you already understand, then skip it.
The new plugin is called Woo Discount Rules, and is found under the WooCommerce heading in my dashboard. I send a newsletter every Friday that features 6 products. The coupon is intended to give a discount for everything in a customer’s cart if 2 conditions are met.
1. a coupon code is entered and
2. any 1 featured product is included.This worked. After I added the new minis category and moved the minis into it, I also selected all the product categories that are intended to be discounted. Uncategorized is one of those. In the cases of the two products I added to my cart that should have been discounted but aren’t, they are categorized as uncategorized. If this doesn’t make sense, I’ll try to explain again.
Any ideas?
Anonymous(Private) October 4, 2018 at 5:37 pm #190127Just heard back from the theme developer. He said, “I logged in to get a better look at the code and once I saw what the event was and how it worked I updated the javascript to function. You should see things working now. Let me know.”
I don’t know what he did, but it does work now. Thanks again so much for your help!
Trevor(Private) October 5, 2018 at 9:44 am #190188The developer must have made a change to his code, as the code I added is untouched. As to the discount thing, I can’t get my head around that. I wonder if my code is needed at all?
I will disable my code, and check. It seems to work without my code, so my guess is he has indeed made a change to his own javascript.
Does the coupon plugin have to work with
product-categories
and no other taxonomy? Would it work with a custom field instead?Trevor(Private) October 5, 2018 at 9:46 am #190190Ah, I see, he added this:
(function ( $ ) { "use strict"; $(document).on("sf:ajaxfinish", ".searchandfilter", function(){ console.log("ajax complete"); var isocontainer = $('.reinit-isotope'), iso_selector = $('.reinit-isotope').data('iso-selector'); isocontainer.isotopeb('destroy'); isocontainer.isotopeb({masonry: {columnWidth: iso_selector}, layoutMode:'fitRows', transitionDuration: '0.8s'}); if(isocontainer.attr('data-fade-in') == 1) { var isochild = isocontainer.find('.kt_item_fade_in'); isochild.each(function(i){ $(this).delay(i*150).animate({'opacity':1},350); }); } }); }(jQuery));
Anonymous(Private) October 5, 2018 at 1:52 pm #190207Hello, Trevor;
What’s happening is that the products whose taxonomies were changed last week are now in zero categories. This screenshot demonstrates one example, but everything I looked at is the same. It is the case that Woo Discount Rules, found under the WooCommerce menu item in my dashboard, uses categories. Is there an easy way to put everything that no longer has a category into the uncategorized category?
Peace,
Dave
Trevor(Private) October 5, 2018 at 3:44 pm #190232I had a good look at how that (free) plugin works. Ideally, what you want is a plugin that can handle a condition based on other Custom Taxonomies, not just Product Category (which is itself a custom taxonomy, but one made by WooCommerce).
Either that or you manually add the necessary product category to each item.
Anonymous(Private) October 5, 2018 at 5:21 pm #190249Hello, Trevor,
I don’t really understand the point of telling me rather than asking if it was free. It wasn’t free. It is a premium plugin. It’s key is in it’s place as evidence if you feel I’m not speaking honestly. I’ve spent days on this already with their developer on my machine working with me. While set-up is included in their price, it’s still been a taxation of my time as this has been of yours and his.
I really need to find a way that isn’t one-by-one for 1000+ product pages. That’s just not feasible, and it would be a rather silly waste of time even if it were. All of these products were in a category 10 days ago, but now they aren’t. Is this edit something that can be made using a CSV export / import? I have a plugin already installed to do that, but it terrifies me in that every time I’ve tried, it’s taken several days of trial and error to get it right.
Peace,
Dave
-
AuthorPosts