New Landing How can we help? Atelier Empty Description tab on products using the Swift Page Builder

Viewing 10 posts - 1 through 10 (of 10 total)
  • Posted in: Atelier
  • #219580
    terrysmith
    Member
    Post count: 48

    When a product is setup using the Swift Page Builder an empty Description tab is visible on the page. I’ve done before/after tests to verify this. I realize you are storing the page builder’s config in the Description field (if I’m not mistaken), but I think the tab should still be hidden after you’ve retrieved the config. I don’t want to hide the Description field globally using CSS unless there’s no alternative.

    The site is not public yet, so you will need to login here first:
    https://www.terrysmithstudios.com/wp-admin/

    Thanks,
    Terry

    #219598
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please dont use page builder to display the text at desciption tab. Switch to default mode editor and insert the text in editor. I have attached screenshot to understand better.

    Thanks
    Mohammad

    #219709
    terrysmith
    Member
    Post count: 48

    You obviously do not understand my question. Also, if you are using the page builder then you can not enter text in the description field to begin with so your answer does not make any sense.

    Terry

    #219851
    terrysmith
    Member
    Post count: 48

    This seems to be a bug to me. Please respond. My site is about to go live, so I may have to hide the tab altogether for now but this is certainly not what I want to do going forward.

    Thank you,
    Terry

    #219919
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    My colleague will assist you shortly.
    Thanks
    Mohammad

    #220604
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Just checked and when using the Swift Page builder on the Product page and not filling the Short description meta field will cause that the description tab will be empty.

    There are some woocommerce functions that allows to manage the tabs, removing this way the desired tab, avoiding that any Tab description html it’s rendered.

    I added the following code to your child theme. Let us if this solution is viable for your project.

       //Remove description tab
       add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );
    
       function woo_remove_product_tabs( $tabs ) {
    
             unset( $tabs['description'] );      	// Remove the description tab
             return $tabs;
        }

    This is how it looks.
    https://www.dropbox.com/s/2koa3bhudbbgs1z/Screenshot%202015-10-13%2020.01.16.png?dl=0

    -Rui

    #220607
    terrysmith
    Member
    Post count: 48

    Thank you Rui for looking into this.

    Hiding the description tab is not an option for me because I have other products where it needs to be displayed. Can a fix for this bug be added to the next update? Is it possible to reorder the tabs until then so that at least the empty tab is the 2nd one?

    Thank you,
    Terry

    #220610
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    I change the previous code to this one.

    
     //Remove description tab
       add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );
    
       function woo_remove_product_tabs( $tabs ) {
             $tabs['description']['priority'] = 50;
             //$tabs['description']['title'] = __( 'More Information' );	
       
             return $tabs;
        }

    If you also want to change the name of the description tab just uncomment the line inside the function and place the desired text.

    About the issue itself will forward to Ed.

    -Rui

    #220612
    terrysmith
    Member
    Post count: 48

    Thank you Rui and thanks for forwarding this Ed.

    After looking at a product where I have a Description (several paragraphs), I think a better word-around for now is going to be to hide the Description tab altogether and use the page builder to drop in a text area. I should have thought of that to begin with, but I do hope you guys can fix this soon.

    Thank you,
    Terry

    #220613
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    ok. In that case use my initial code to remove the tab.
    Will check with Ed.

    -Rui

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register