New Landing How can we help? Atelier Shipping Weight

Viewing 15 posts - 1 through 15 (of 16 total)
  • Posted in: Atelier
  • #215572
    dsirard11
    Member
    Post count: 122

    Hello,

    I know we need to add shipping weights to all our products – so the shipping cost is calculated correctly. However, I don’t want the shipping weight to show on the product page – under the image. How do I stop that info from showing?

    Thank you,
    Dawna

    #215593
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please Open your functions.php file located in wp-content/themes/your-theme-name/ and add this code at the end of it:

    add_filter( 'wc_product_enable_dimensions_display', '__return_false' );

    Thanks
    Mohammad

    #216175
    dsirard11
    Member
    Post count: 122

    Your suggestion doesn’t work. I get this error message:

    add_filter( ‘wc_product_enable_dimensions_display’, ‘__return_false’ ); ?>
    Warning: Cannot modify header information – headers already sent by (output started at /home/content/p3pnexwpnas09_data01/07/2721807/html/wp-content/themes/atelier/functions.php:399) in /home/content/p3pnexwpnas09_data01/07/2721807/html/wp-includes/pluggable.php on line 1207

    #216181
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    That happens when it’s left an empty line in the end of the file. Check in line 400 of the file atelier/functions.php

    If possible install the Atelier child theme that comes in our themeforest files and paste you modification inside the child theme functions.php to avoid losing the changes in the updates.

    -Rui

    #216220
    dsirard11
    Member
    Post count: 122

    Can I ask – how do I turn on numbers for the templates? You suggested line 400 but there is no way for me to know which line that is – unless I count. 400 is a lot of lines to count! 🙂

    Thank you,
    Dawna

    #216234
    David Martin – Support
    Moderator
    Post count: 20834

    Hi Dawna,

    You need to use a code editor such as this: http://www.sublimetext.com/.

    – David.

    #216563
    dsirard11
    Member
    Post count: 122

    Can you please help? Since I made that change, I can’t access my site. I get this message:

    Warning: Cannot modify header information – headers already sent by (output started at /home/content/p3pnexwpnas09_data01/07/2721807/html/wp-content/themes/atelier/functions.php:399) in /home/content/p3pnexwpnas09_data01/07/2721807/html/wp-includes/pluggable.php on line 1207

    I can’t even get into WordPress to fix it. Can you access it on your end?

    Thank you,
    Dawna

    #216568
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Probably at the end of the functions.php you have an empty line of code after the closing php tag.

    Erase it and it will be fine. This can be done only using ftp or editing the file in the file explorer in the cPanel or any Hosting software.

    -Rui

    #216647
    dsirard11
    Member
    Post count: 122

    Okay it’s fixed. Now I’d like to add the suggested code but don’t want anymore issues. I’m adding:

    add_filter( ‘wc_product_enable_dimensions_display’, ‘__return_false’ );

    Do I need any type of closing bracket? Can you clarify this for me?

    Thank you,
    Dawna

    #216702
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please try to add this code at end of functions.php file.
    <?php add_filter( 'wc_product_enable_dimensions_display', '__return_false' ); ?>
    Thanks
    Mohammad

    #217587
    dsirard11
    Member
    Post count: 122

    This worked. However, I’m a bit confused. I added a toggle to the area where the weight would have been listed (and is now hidden) and along with the toggle is a description box. Why is a description box being added in this area? I only want the toggle.

    #217598
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Can you provide the link to the page where the toggle appears?

    -Rui

    #217601
    dsirard11
    Member
    Post count: 122

    http://soakshore.com/product/modern-wash-coffee/

    I want to keep the toggle – but not the description above.

    #217608
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Add the code below to your custom css option

    .woocommerce div.product .woocommerce-tabs {
        display: none;
    }

    -Rui

    #217616
    dsirard11
    Member
    Post count: 122

    Perfect! Thank you!

Viewing 15 posts - 1 through 15 (of 16 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