• Empty Product Tab gets created after updating product with no attachments added.

    It occurs in version 1.5.3

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Dotstore

    (@dots)

    Hello avokrado,

    Thanks for reaching out to us.

    We have reviewed in our latest plugin version 1.5.3 and WordPress version 5.4 and Woocommerce 4.0.1 and on product update there is no attachment tab is displaying.

    Can you please make sure that, you does not uploaded any attachment or removed properly.

    If you have added any cache plugin then, first please clear the cache and try again.

    Or you can provide us your current plugin theme and installed plugins list which might be possible that it conflicts with our plugin.

    Let us know still if any.

    Thanks,

    Plugin Author Dotstore

    (@dots)

    Hello avokrado,

    I hope you are doing well and your query gets resolved.

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Thanks,

    This bug is happening here also. After an update of product with no attached files,
    tab “Downloads” is created.

    wp 5.4
    wc 3.9.0
    wcpa 1.5.3

    Weird ):

    • This reply was modified 4 years, 6 months ago by rkoms.

    Solution

    Edit file:
    woo-product-attachment > public > class-woocommerce-product-attachment-public.php

    go to line 239 and change
    if ( !empty($wcpoa_product_page_enable) || !empty($wcpoa_bulk_att_data) ) {

    to
    if ( $wcpoa_product_page_enable_count > 1 || !empty($wcpoa_bulk_att_data) ) {

    and add count above that:
    $wcpoa_product_page_enable_count = count($wcpoa_product_page_enable);

    But further plugin update will break this edits, so we will need to rely on plugin developers to consider and test these changes.

    Solution above will work for updated/edited products with newly created empty download tab, to work with all products change third peace of code:

    change
    $wcpoa_product_page_enable_count = count($wcpoa_product_page_enable);

    to

    if (!empty($wcpoa_product_page_enable))  {
        $wcpoa_product_page_enable_count = count($wcpoa_product_page_enable);
    }
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Product Tab created after updating product’ is closed to new replies.