Home › Forums › WoodMart support forum › Show product weight in main product area
Show product weight in main product area
- This topic has 7 replies, 3 voices, and was last updated 3 years, 10 months ago by Elise Noromit.
-
AuthorPosts
-
January 16, 2021 at 3:44 pm #259018
canaryprimeParticipantHi,
I am working with a huge database with several products and their respective data. When i use Woo default template to import via CSV product weight is shown in additional information, as show in my first screenshot(captura3), for example below REF.
I would need to show weight in the main product area as it is essential for the business i am working for and remove that additional information tab. Please see the other screenshot attached
I am looking for a global solution as I need this in all of my products
Many thanks in advance
Attachments:
You must be logged in to view attached files.January 16, 2021 at 8:52 pm #259055
Elise NoromitMemberHello,
This Additional Information tab is the default Woocoommerce functionality and our theme does not influence that.
You can make the full backup of your site as well as the Theme settings export and check the issue on the Storefront theme to get convinced that our theme does not influence.
Best Regards
January 18, 2021 at 1:38 pm #259376
canaryprimeParticipantHi Elise,
Thank you for your reply. Do have any idea or code how I can make this happen? I have been searching but it`s been impossible, I thought it was theme related.
January 18, 2021 at 8:48 pm #259487
Elise NoromitMemberHello,
Do you want to hide the Additonal tab with CSS, if so, please provide the product URL I will provide custom CSS.
Best Regards
January 20, 2021 at 5:11 am #259923
mohitbdParticipantI want to hide the tad, please provide me code.
January 20, 2021 at 10:05 am #259994
Elise NoromitMemberHello,
Please add this code to the Theme Settings > Custom CSS > Global:
.tabs-layout-tabs .tabs li.additional_information_tab{ display:none; }
Best Regards
February 10, 2021 at 6:42 pm #265430
canaryprimeParticipantHi Elise,
That Css is working on desktop but it still showing the additional tab on mobile. Could you help?
Just to contribute the code to show weight is this one:
add_action (‘woocommerce_single_product_summary’, ‘show_weight’, 20);
function show_weight() {
global $product;
$weight_unit = get_option(‘woocommerce_weight_unit’);
$attributes = $product->get_attributes();
if ( $product->has_weight() ) {
print ‘<p>Weight: ‘.$product->get_weight(). $weight_unit . ‘</p>’.PHP_EOL;
}
}February 10, 2021 at 8:15 pm #265446
Elise NoromitMemberHello,
Please add this code to the Theme Settings > Custom CSS > Global:
body .tab-title-additional_information, body .woocommerce-Tabs-panel--additional_information panel{ display:none; }
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register