Home Forums WoodMart support forum Product tabs

Product tabs

Viewing 26 posts - 1 through 26 (of 26 total)
  • Author
    Posts
  • #501512

    v1ppers0nn
    Participant

    Hi, is possible to change the order of the product tabs? I want the order to be first the description, then the tabs from the product setting (Product Setting (custom metabox from theme)), then the Additional tabs from theme options and last to be the reviews.

    #501732

    Hung Pham
    Keymaster

    Hi v1ppers0nn,

    Thanks for reaching to us.

    You can add below PHP code to functions.php file in Child theme.

    add_filter( 'woocommerce_product_tabs', 'woo_reorder_tabs', 98 );
    function woo_reorder_tabs( $tabs ) {
    
    	$tabs['description']['priority'] = 1;
    
    	// Custom Tabs are from Product Settings
    	$tabs['wd_custom_tab']['priority'] = 2; 
    	$tabs['wd_custom_tab_2']['priority'] = 3;
    
    	// Additional Tabs are from Theme Settings
    	$tabs['wd_additional_tab']['priority'] = 4;
    	$tabs['wd_additional_tab_2']['priority'] = 5;
    	
    	$tabs['reviews']['priority'] = 99;
    	
    	return $tabs;
    }

    Regards,

    #502058

    v1ppers0nn
    Participant

    I have an error “Warning: Undefined array key “callback” in /home/magherbs/new.magherbs.com/wp-content/themes/woodmart/woocommerce/single-product/tabs/tabs.php on line 108

    #502093

    Hung Pham
    Keymaster

    Hi v1ppers0nn,

    Please send me temporary wp-admin info (wp-admin URL, username, password), I will debug that issue.

    Regards,

    #502213

    v1ppers0nn
    Participant

    In private

    #502377

    Hung Pham
    Keymaster

    Hi v1ppers0nn,

    Admin credential is incorrect, please check again.

    https://prnt.sc/grFcZ-HJH6-6

    Regards,

    #502394

    v1ppers0nn
    Participant

    You can try again.

    #502544

    Hung Pham
    Keymaster

    Hi v1ppers0nn,

    I didn’t see error in back-end and front-end as well. Please provide URL of the mentioned page that have error.

    Have a great Sunday.

    Regards,

    #502545

    v1ppers0nn
    Participant

    Of course you don’t see it because i remove it from functions.php. Just put it and check, i can’t work with errors on website.

    #502567

    Hung Pham
    Keymaster

    Hi v1ppers0nn,

    Please provide me an temporary FTP account, I will enable debug log and check this problem more deeply.

    Thanks for your patience.

    #503261

    v1ppers0nn
    Participant

    Attached

    #503442

    Hung Pham
    Keymaster

    Hi v1ppers0nn,

    I’ve fixed your issue. Please check your site again.

    Regards,

    #503458

    v1ppers0nn
    Participant

    I have again an error: ОПИСАНИЕ
    ПРИЕМ

    WARNING: UNDEFINED ARRAY KEY “TITLE” IN /HOME/MAGHERBS/NEW.MAGHERBS.COM/WP-CONTENT/THEMES/WOODMART/WOOCOMMERCE/SINGLE-PRODUCT/TABS/TABS.PHP ON LINE 76
    ПРОТИВОПОКАЗАНИЯ

    WARNING: UNDEFINED ARRAY KEY “TITLE” IN /HOME/MAGHERBS/NEW.MAGHERBS.COM/WP-CONTENT/THEMES/WOODMART/WOOCOMMERCE/SINGLE-PRODUCT/TABS/TABS.PHP ON LINE 76

    #503765

    Hung Pham
    Keymaster

    Hi v1ppers0nn,

    Thanks for your patience.

    Please remove previous code and use below one.

    function woo_reorder_tabs( $tabs ) {
        $first_tabs = array(
           'description',
           'wd_custom_tab',
           'wd_custom_tab_2',
           'wd_additional_tab',
           'wd_additional_tab_2',
           'wd_additional_tab_3',
        );
    
        foreach ( $first_tabs as $priority => $tab ) {
           if ( isset( $tabs[ $tab ] ) ) {
              $tabs[ $tab ]['priority'] = $priority + 1;
           }
        }
    
        if ( isset( $tabs['reviews'] ) ) {
           $tabs['reviews']['priority'] = 99;
        }
    
        return $tabs;
    }

    Let me know how it goes.

    Regards,

    #503769

    v1ppers0nn
    Participant

    I put it. I don’t have error, but the order is not changed.

    #503870

    Hung Pham
    Keymaster

    Hi v1ppers0nn,

    I’ve fixed your issue. Please check your site again.

    Regards,

    #504520

    v1ppers0nn
    Participant

    Thank you!

    I have found another bug. On mobile phone the sticky menu is not working. When i test from browser > inspect element and select from phone all is okay, but on real phone is not sticky. Is from WP Rocket problem?

    #504762

    Hung Pham
    Keymaster

    Hi v1ppers0nn,

    I can’t access your site to see the problems. Please check again. https://prnt.sc/h7MqTF9izHOL

    Regards,

    #504767

    v1ppers0nn
    Participant

    The website is transferred to magherbs.com, is live now 🙂

    #504965

    Hung Pham
    Keymaster

    Hi v1ppers0nn,

    I see the main menu does not enable sticky as well.

    Are you referring to main menu or categories side menu?

    https://prnt.sc/GppqIdejdwcb

    Regards,

    #505122

    v1ppers0nn
    Participant

    I told on MOBILE. Try open magherbs.com from mobile, scroll down and then scroll up, you will see that the menu is not appearing.

    #505319

    Hung Pham
    Keymaster

    Hi v1ppers0nn,

    Navigate to WoodMart > Header builder > edit default header (highlighted star icon) or you can go through admin bar directly https://prnt.sc/Ct9ehRDvvDV9.

    Switch to Mobile tab, click on Settings https://prnt.sc/Wan2ewcy04OX then you can turn off “Hide when scrolling down” option.

    Please refer to this article https://xtemos.com/docs-topic/woodmart-header-builder/

    Regards,

    #505329

    v1ppers0nn
    Participant

    Oh… you can’t understand me? I WANT TO HIDE WHEN SCROLL DOWN, but i want when someone SCROLL UP to show the header, but is not working on mobile.

    #505547

    Hung Pham
    Keymaster

    Hi v1ppers0nn,

    Sorry for misunderstood.

    If the option “Hide when scrolling down” is enable, then Sticky Header will show on your Site when you scroll up.

    I tested and it worked on my mobile devices, please clear cache and double check.

    Regards,

    #508318

    v1ppers0nn
    Participant

    Is not working on my phone, and on other phones. I am with galaxy z fold. Please send me an email where i can send you a video.

    #508603

    Hung Pham
    Keymaster

    Hi v1ppers0nn,

    You can upload video and share link to Private Content area.

    Regards,

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