Hola,
He encontrado un problema al usar el plugin WooCommerce Discontinued Products versión 2.0.3 en mi sitio web. A continuación, detallo el contexto:
Problema:
Al actualizar el plugin a la versión 2.0.3, se presentan los siguientes problemas:
Funcionamiento esperado:
Sin el plugin, las URLs de los filtros y la paginación infinita funcionan correctamente, y AJAX carga más productos como es debido.
Pasos para reproducir:
Pruebas realizadas:
Nota adicional:
Con la versión 1.1.5 de WooCommerce Discontinued Products, el problema no ocurre y todo funciona correctamente.
Por favor, ?podrían orientarme sobre cómo resolver este problema? Si es un error conocido, ?hay planes para corregirlo en próximas actualizaciones?
Gracias por su ayuda.
]]>Hey @ehsanfarhangi I am opening this thread to discuss your additional bug queries.
Thank you for a great plugin.
Upgraded to v2.0.2. Running Flatsome and WooCommerce 9.3.3.
Front page lost side widget area (menu) and top area (slider). All lost items returned when plugin is deactivated.
]]>After updating, product category pages are blank. In query monitor I could see the plugin is screwing up the query:
FROM wpjk_posts
WHERE post_name IN ('product-category','new-arrivals')
AND post_type IN ('page','attachment')
Had to roll back to 1.1.5.
]]>Hi
I have a huge white space on my product pages below the footer. This has only recently happened – although I’m not sure when exactly it did – possibly after the last update. Does anyone know how to remove it?
Thanks
]]>Hi
Is there any way to stop discontinued products from being shown in WooCommerce as a related product? As we’ve updated a lot of publications (which we do annually), there are a lot of discontinued products which are showing as related and it looks very untidy.
Thanks
]]>I have pulled the latest 1.1.7 and still the same problem with standard search.
I cleared the hosting cache (WP Engine) and the WooCommerce transients.
Disc. products still appear in search results and category pages.
It’s as if the labeling of products works properly, and the product detail page properly remove the add to card button and displays the proper message, but NONE of the search/category/shop removal functions work at all.
What more can I do to troublehshoot at this point?
You can see from the linked page below that plenty of disc. product appear in the shop loop with the “This Product Is No Longer Available” message displayed. THese products should NOT be showing at all per the settings.
Thanks!
]]>The plugin works great however is it possible to add the “Discontinued” checkbox on the “Quick Edit” menu instead of going into each product via “Edit”.
It would just make it quicker and simple to discontinue products
I am using WPAI plugin to set the meta _is_discontinued = yes.
Everything is fine within search and product detail, but products are displayed in categories and central shop page.
I had to include following code to Woocommerce to do that:
add_filter( 'woocommerce_product_query_meta_query', 'show_only_products_with_not_discontinued_meta', 10, 2 );
function show_only_products_with_not_discontinued_meta( $meta_query, $query ) {
// Only on shop pages
if( ! is_shop() ) return $meta_query;
$meta_query[] = array(
'key' => '_is_discontinued',
'compare' => 'NOT EXIST'
);
return $meta_query;
}
]]>
Hi
Thanks a lot for this awesome plugin!
But is have problems with it, the links from the sustitutive producs doesnt appear. On the past was working, but today these links are missing.
Im using last version of WP and WC.
What to do?
Thanks!
]]>Hi guys, is the Discontinued product page (Archive) meant to update itself to show the discontinued products or is their something extra I must do. I have the page setup and have discontinued a number of products but the archive page seems to remain an empty blank page.
Hoping someone can help me out.
Cheers
-John CV
The option to hide disc. products from search is checked, but they still appear.
Visit https://www.swingnation.com and search for ‘Salomon’. You’ll see them appear.
Latest version of plugin installed.
Help!
]]>When I hide a product from shop and search, the product still shows up in product tag pages.
]]>Hello:
We are using WordPress 5.3 and latest woocommerce plugin on our store. Also we are using REST API to pull results into our mobile app.
We wanted to know if the plugin is compatible with WordPress 5.3 and latest woocommerce. Also the metadata and others showing discontinued products supports requests over Rest API to show in our mobile app as well.
Regards
]]>First, thank you very much for this plugin that I’ve been using it for years.
I’ve detected some performance problems when working with a big ecommerce.
I’ve have more than 35.000 active products and about 1.000 discontinued products.
The problem is exclude_discontinued_products function sets all discontinued product ids in post__not_in query arg, which is being translated in sql to wp_posts.ID NOT IN (…..).
This approach does not work well in this context, as it turns a query of 50-80ms into a query of 6-8 seconds.
I tried the same SQL query changing the WHERE clausule by AND NOT EXISTS (SELECT * FROM wp_postmeta pm WHERE wp_posts.ID = pm.post_id AND meta_key ='_is_discontinued' AND meta_value = 'yes')
and it has substantially improved the performance to 80ms (almost the same time as the original query).
You may put this clausule using the posts_where filter
]]>Hi i have the following problem
image
I hope there is a solution for this
Regards
OW
Hello!
I currently have a huge catalog of products… They are kept for SEO purposes only, but now my DB is so big that my store is getting slow.
I would like to know if by using this plugin there will be any relief in the DB and if it will help to optimize somehow. Or if the situation will stay the same. xD
Thanks!
]]>Just beginning to test the functionality before this goes into a live evironment. So far I really like what I see with this plugin. Thank you for providing this plugin.
Issue 1.
After setting up the specific product with all the available fields for this plugin, when exporting ALL the products into a CSV file, the “Alternative Products” data nor the header (row 1 in file) is not included. Another related issue lies on the import step as to what is the string used for the “Alternative Products” key and the syntax of the values for this key.
Issue 2.
Also, while mentioning this, I noticed the value of key “Meta: _hide_from_shop” is NULL if the default value is selected in the WC UI. I would expect to see a value (for the key) of some sort properly assigned a value (maybe default) when exporting.
Data for both issues:
Exact CSV cut/paste key/pair values from the export file (below):
Meta: _is_discontinued Meta: _discontinued_product_text Meta: _alt_product_text Meta: _hide_from_shop Meta: _hide_from_search
yes My discontinued product display text My alternative product Display Text hide
]]>I’ve activated this on a multisite environment but nothing is visible on the product page. Anything special that needs to be done to make this work on multisite?
]]>Hi,
I get ‘WC_Shortcode_Products’ not found PHP Fatal Error.
I have remove this lines from wc-class-dp-shortcode-discontinued.php
My Woocommerce version is 3.1.2
After this modification your plugin works fine, but I don’t know what will this change cause?
/**
* Products shortcode class.
*/
class DP_Shortcode_Discontinued extends WC_Shortcode_Products {
/**
* Set sale products query args.
*
* @since 3.2.0
* @param array $query_args Query args.
*/
protected function set_discontinued_products_query_args( &$query_args ) {
$query_args[‘post__in’] = get_transient( ‘dp_hide_from_shop’ );
}
}
Hi there,
Where are the plugin settings found? I’ve got the plugin enabled on a fresh WooCommerce install and I can’t seem to find an area to manage whether the product is discontinued or not.
I’ve checked for settings in WooCommerce > Settings > Products as one of the plugin reviews suggested but there’s nothing there.
See here: https://cl.ly/bfa9cf9329ef
Thanks,
Aaron
How hard would it be to change the displayed price to ‘discontinued’? We want to keep the product pages active for seo purposes but feel showing a price is misleading…even when put to zero.
scroll down to the ‘more books by’ section of the page linked.
thanks
]]>When I set a product as discontinued the formatting gets messed up on the product page. Here is the page with it set to discontinued:
https://imgur.com/VU67YcP
Here is the page with it no set to discontinued (correct formatting):
https://imgur.com/lKNGv6o
Any help is appreciated.
]]>Hi. Great and easy plugin. Im missing just one option for the default “Discontinued product text”:
– The option to add html codes in the text area or a custom tab for font color.
Now it is standard black and easy to overlook (at least for my theme).
]]>Is there a way to do this by specific product category? Right now all my discontinued are in a ‘discontinued’ category and would be great to be able to do this in code, so that anytime I assign a product to this ‘discontinued’ category, it applies this.
]]>Is there any way to make the discontinued display text a standard phrase so we don’t have to enter it in for every one? We have standardized on “This Item has Been Discontinued.” And as I am going through some 1800 products, many need to be tagged. Even doing a paste seems unnecessary when they are all going to be the same.
]]>I’m curious if the plugin has the ability to, or if you are planning to incorporate the ability to only discontinue individual variations of a product. My website has a lot of products where certain variations of the product are discontinued but not the overall product.
]]>Hey, Absolutely fantastic plugin. After setting up we have noticed that discontinued products are still showing the shop pages.
]]>Dear Author, first of all, thank you very much for your work, the plugin works like a charm. For a client of mine I have to translate your plugin to Hungarian, and just noticed that you’re constantly missing the textdomain attribute on each of the functions that handles translations. For example:
__( 'This product has been discontinued.' )
should be replaced with:
__( 'This product has been discontinued.', 'woocommerce-discontinued-products' )
Please handle this issue, so your nice plugin will be translatable. ??
Thanks anyway, and keep up the good work!
Cheers, Levi
]]>Noticed that the space is missing between your icon and your text in the admin interface on product pages, in case you want to fix it:
https://www.awesomescreenshot.com/image/3128943/9082263e1b8cec65808b465eda2052cf
]]>