Home Forums WoodMart support forum Editing product page

Editing product page

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #134241

    Evgeny Sviridov
    Participant

    Hello! I created a product page (http://test.tehnooptmetall.ru/product/metallocherepitsa-kvinta-plus-045-5005/). Can I change the order of the tabs shown in the screenshot?

    Attachments:
    You must be logged in to view attached files.
    #134272

    Hello,

    No, the default Woocommerce does not provide the option.

    You will have to find the plugin or customize the template.

    Best Regards

    #134570

    Evgeny Sviridov
    Participant

    I inserted the following code into the “functions.php” file:

    add_filter (‘woocommerce_product_tabs’, ‘woo_reorder_tabs’, 98);
    function woo_reorder_tabs ($ tabs) {

    $ tabs [‘description’] [‘priority’] = 5;
    $ tabs [‘woodmart_custom_tab’] [‘priority’] = 10;
    $ tabs [‘reviews’] [‘priority’] = 15;

    return $ tabs;
    }

    It did not change anything. Can you help me customize the template?

    #134588

    Hello,

    Please add this code to the functions.php of the child theme

    function woo_reorder_tabs ($tabs) {
        $tabs['reviews']['priority'] = 11;
        $tabs['woodmart_custom_tab']['priority'] = 12;
        return $tabs;
    }
    add_filter ('woocommerce_product_tabs', 'woo_reorder_tabs', 98);

    Best Regards

    #134593

    Evgeny Sviridov
    Participant

    Added, nothing has changed. Maybe I’m doing something wrong? Whatever code I add there, nothing changes on the site.

    #134600

    Hello,

    Please activate the child theme http://prntscr.com/oke4su

    Best Regards

    #134619

    Evgeny Sviridov
    Participant

    Thanks for the help, you helped solve my problem.

    #134638

    You are welcome! If you have any questions please feel free to contact us.

    Best Regards

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

The topic ‘Editing product page’ is closed to new replies.