Home › Forums › WoodMart support forum › Move Product Description
Move Product Description
- This topic has 5 replies, 2 voices, and was last updated 1 month ago by Aizaz Imtiaz Awan.
-
AuthorPosts
-
December 11, 2024 at 1:55 am #621399
trendodigitalParticipantHi,
I want to move the product description below the “Add to Cart” button in WooCommerce.
I have looked into the Woodmart WooComemerce templates, but couldn’t find any information there.
Any ideas?
Regards,
KristiyanAttachments:
You must be logged in to view attached files.December 11, 2024 at 12:37 pm #621542
Aizaz Imtiaz AwanKeymasterHello,
For this, you have to use the custom layout for the single product page and you can easily move the short description under the Add to cart button, please read more details here:
https://xtemos.com/docs-topic/single-product-page-builder/Best Regards.
December 11, 2024 at 8:18 pm #621706
trendodigitalParticipantHi,
Thank you for the provided information.
Which one will be the WooCommerce template file if I would like to reorder only the short description?
Regards,
KristiyanDecember 12, 2024 at 11:37 am #621800
Aizaz Imtiaz AwanKeymasterHello,
Do you want to make changes in the theme PHP files?
I think it is not a good idea, while the theme give you the feature to create your own single product page with theme builder.
https://xtemos.com/docs-topic/single-product-page-builder/Or the other solution is to use the below snippet code in the child theme’s functions.php file:
// Move short description below Add to Cart button remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 ); add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 30 );
Best Regards.
December 12, 2024 at 7:55 pm #622000
trendodigitalParticipantHi Aizaz,
Thank you for the suggestion on using Single Product Page Builder, but if we enable it we have to design the product page from zero which is not what the client wants.
Thank you for the code snippet as well. It did a great job of moving the short description.
Do you have any ideas on how to make the short description collapsible and have a text button “expand | collapse”? The point is to limit it to a certain number of words/characters. Code snippets will also do the job.
I, somewhere in the settings, saw an Upsell integration in WoodMart but can’t find it. Is there such an option? The goal is to add an option “Combine with” where a preselected product will be chosen and the visitor can click on it or a checkbox next to it and add it to the order. Please, check the attachment.
Regards,
KristiyanAttachments:
You must be logged in to view attached files.December 13, 2024 at 3:12 pm #622223
Aizaz Imtiaz AwanKeymasterHello,
1. You can set the excerpt length to the short description but it is not possible to add the button with the text button “expand | collapse”. Please use the code below to set the excerpt length to the short description:
function custom_product_excerpt_length( $short_description ) { return wp_trim_words( $short_description, 20 ); // Adjust 20 to your desired word count } add_filter( 'woocommerce_short_description', 'custom_product_excerpt_length' );
2. You can find the settings related to the upsells in Theme Settings >> Single Product >> Relaetd and Upsells: https://ibb.co/5k6WP9w
Please find here more details about setting up and displaying related, cross-sale and up-sale products: https://docs.woocommerce.com/document/related-products-up-sells-and-cross-sells/
Best Regards.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register