twoelevenjay
Forum Replies Created
-
Forum: Plugins
In reply to: [Discontinued Products] Additional 2.0 bugsHey again @ehsanfarhangi. I realize now that the extension is not suppose to hide price or out of stock text on the shop page. The extension changes the “add to cart” button for non-variable products to the “read more button”. However “out of stock” is controllable under the inventory tab of the Product data section when managing a product. And price can me managed under the General tab. Since these already have controls in the UI I have decided not to control them with this extension.
Forum: Plugins
In reply to: [Discontinued Products] Additional 2.0 bugsFilter by product and blank search page should be fixed by 2.0.3. Let me know when you get a chance to test it. I will let you know when I fix the out of stock/discontinued text.
Forum: Plugins
In reply to: [Discontinued Products] Version 2.0.2 – front page missing elements@beknetland I don’t have access to the Flatsome theme. Is there a way we can connect so you can help troubleshoot?
Forum: Plugins
In reply to: [Discontinued Products] Version 2.0.0 causes blank category pagesHey Everyone could you please update to 2.0.3 and confirm that the search page is no longer empty?
Forum: Plugins
In reply to: [Discontinued Products] Version 2.0.0 causes blank category pagesHello I am back. Sorry for the wait. I was out of town last week. I will work on all of these. Thank you again for your help and for your patients.
Forum: Plugins
In reply to: [Discontinued Products] Version 2.0.2 – front page missing elementsYou’re welcome. And thank you for brining this to my attention. i will see if I can replicate this and let you know if there is more you can share that will help me get this fixed for you.
Forum: Plugins
In reply to: [Discontinued Products] Version 2.0.0 causes blank category pagesThat did not fix it either but it did fix other bugs I found. Now 2.0.2 fixes the empty category pages.
Forum: Plugins
In reply to: [Discontinued Products] Version 2.0.0 causes blank category pagesThank you all very much for your input. When you have time and if it is not too much trouble can you update to 2.0.1 and test, and let me know your results?
After many years of neglect i would really like to get this plugin up and running again and your input has been very helpful already ??Forum: Plugins
In reply to: [Discontinued Products] Version 2.0.0 causes blank category pagesThank you for brining this to my attention. I am not seeing blank this on my end when I test. The plugin code does not have ‘page’, ‘attachment’, or ‘new-arrivals’ anywhere in it. But it is designed to manipulate the query to hide discontinued products if opted for.
I am actually having the opposite problem in some of my tests. Discontinued products are not being hidden from an archive page.Were you able to run the data updater?
I would be grateful if you would help me work through issues to get 2.0 up to speed.Forum: Reviews
In reply to: [Hello Dolly] SPAM!@room34 haters gone hate
This plugin will not reduce the size of your DB, it will actually add a little to the DB and also if your store is large enough the current way it queries discontinued products can also be slow. As the DB grows, typically the hosting environment needs to be upgraded for performance reasons.
As far as the discontinued product query being slow on large catalogues we are working on a fix.
Forum: Plugins
In reply to: [Discontinued Products] Bad performance on big e-commerce@mfcanovas thank you very much for sharing this with me. Would you be willing to submit a pull request with your fix on Github?
https://github.com/twoelevenjay/woocommerce-discontinued-products
Forum: Plugins
In reply to: [Discontinued Products] Fatal errorHello, it seems like maybe this file is being included more than once, is this still happening for you?
Forum: Developing with WordPress
In reply to: Can not run wp plugin uninstall from Perl moduleMore specifically the docs say WP-CLI will delete active plugins with
wp plugin delete
, however it will not uninstall active plugins withwp plugin uninstall
unless using the--deactivate
argument. I have tested it from the Perl module on inactive /active plugins, with / without the--deactivate
argument, and also with--quiet
argument it hide the message “Deactivating plugins…”. None of these complete. If using –deactivate without –quiet it returns “Deactivating plugins…”, otherwise it returns and empty string.Yes I have tested all of these from the command line and they all uninstall successfully. Something is missing that is present in the shell environment and not in the Perl program. I have tried
readpipe()
,exec()
,system()
, andopen()
, they all behave the same way.- This reply was modified 5 years, 3 months ago by twoelevenjay.
Hello @rwgieseler.
First, I want to apologize for not getting to this for over two months.
Second, I want to thank you for the kind words, and for bringing this to my attention.
Issue 1:
The short answer is the built in export feature of WooCommerce only allows exporting scalar values. Because the Alternative products IDs are stored in an array they were skipped. This also left made it so importing these values would not be possible.
I have added a new PHP class to the plugin to extend the import / Export festure of WooCommerce to include this plugins custom fields. They appear in the export column option, and the import custom mapping. They are no longer handled as “Meta:” column headers. And it will export “Alternative Products” as a string of ID separated by a comma and this format will properly import.
The new headings are:
- Is discontinued?
- Discontinued Product Text
- Alternative Products
- Alternative Products Text
- Hide from shop?
- Hide from search?
Issue 2:
In this case “Default” is the same as a select option none. It is an empty value, as nothing has been selected. Just like when the text fields are empty they meta data is empty. All products that already existed when this plugin was installed would have empty values for these settings thus being set to default. For now I believe it is best to leave it this way, especially for backwards compatibility.
I will mark this topic as resolved, if you need more help please post a new topic.