• Resolved TOSTAD

    (@tostad)


    Hi, I was just wondering how could I only show zaddon_data table on product pages with addons? I don’t want this table showing up for all the products. Only for the ones that have some addons specified. I will gladly accept some php snippet or instructions to edit plugin code. Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author bizswoop

    (@bizswoop)

    Thank you for requesting this feature for the Product Add-ons functionality. We have received this request from a couple other users as well. We are working on a development solution to provide this functionality. We hope to have a solution in the future to provide this support you requested.

    Thread Starter TOSTAD

    (@tostad)

    Thank you for responding. So for now there isn’t a working solution? I temporarily solved it with CSS, but it is not very elegant.

    Plugin Author bizswoop

    (@bizswoop)

    Correct. Right now we don’t have a solution ready for this feature you requested. We are working on a solution for the future.

    Using a CSS temporary solution is what we would recommend as well. Until our solution is ready, maybe you can share your temporary CSS solution with the community of users here, if they also need a temporary solution and find this post.

    Thread Starter TOSTAD

    (@tostad)

    Ok, thank you. Here si a simple CSS, I have done more customization on my end, but this is the main part:
    This is for all products:

    .woocommerce-variation-price {display:block!important}
    .zaddon_data {display:none!important}

    This is for the product category where you use product addons:

    .product_cat-YOUR-CATEGORY-SLUG .zaddon_data {display: block!important;
    .product_cat-YOUR-CATEGORY-SLUG .woocommerce-variation-price {display:none!important}

    P.S.: The code only works for variable products + don’t forget to change your-category-slug.

    • This reply was modified 5 years, 1 month ago by TOSTAD.
    Plugin Author bizswoop

    (@bizswoop)

    Thank you so much for sharing this solution with the community.

    Just a quick note, we had to release a quick hot fix build for WC 4.0 to address a bug, so this build doesn’t include the hiding ability per product page of Add-ons. The solution is a bit more complex than we anticipated and still working to get this supported. We hope to have it soon!

    thanks for sharing the css. it seems like pretty basic stuff to not show the sub total fields when a product has no custom add-on. i would call this a bug not a feature request!

    Plugin Author bizswoop

    (@bizswoop)

    Apologies for not closing this post with an update sooner.

    Effective in our new Product Add-ons version 2.0+ released a few weeks back. We launched a new paid plugin add-on. You can view the details of this new plugin under the add-on tab, named: Product Add-ons Plus.

    This functionality to allow the admin to manage if the Product add-ons container is applied as a global listing or a product page listing is supported under our Plus plugin along with other front-end settings and quantity management to customize the Product Add-ons container for customers.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How can I show zaddon_data only on product pagess with addons?’ is closed to new replies.