Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

Additional Information on Variable products

displayinformationtablevariable products
    • 6 years, 6 months ago Merijn
      Participant

      Expired

      Dear Support,

       

      On our website with variable products we display much information about the products. Some variable products contain 20 to (in extreme cases) 100 products. This makes the table very long. It would be much better for us if the information in the table would correspond to the currently selected variation of the variable product. The other information should then be hidden. Is it possible to do something like this?

      Home

      We are talking about the Additional information table on this page of the example. This one shows all sizes, but we would like to show only the selected size.

    • 6 years, 6 months ago Ruco
      Keymaster

      In this article you can find something that can help you.

      Editing product data tabs

      Try to add this function:

      /**
       * Check if product has attributes, dimensions or weight to override the call_user_func() expects parameter 1 to be a valid callback error when changing the additional tab
       */
      add_filter( 'woocommerce_product_tabs', 'woo_rename_tabs', 98 );
      
      function woo_rename_tabs( $tabs ) {
      
      	global $product;
      	
      	if( $product->has_attributes() || $product->has_dimensions() || $product->has_weight() ) { // Check if product has attributes, dimensions or weight
      		$tabs['additional_information']['title'] = __( 'Product Data' );	// Rename the additional information tab
      	}
       
      	return $tabs;
       
      } 

      Regards!

Viewing 1 reply thread

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password