in using Astra Theme construction WooCommerce Two features deserve special attention when it comes to stores:
![图片[1]-Astra主题WooCommerce技巧:设置默认评论标签与空购物车展示精选商品](https://www.361sale.com/wp-content/uploads/2025/04/20250421141549515-image.png)
Setting the "Comments" tab as the default display item
By default, the product page prioritizes the display of "
Operational Steps:
Go to the backend and open the child theme's functions.php file and add the following code:
add_filter( 'woocommerce_product_tabs', 'woo_reorder_tabs', 98 );
function woo_reorder_tabs( $tabs ) {
$tabs['reviews']['priority'] = 5;
$tabs['descriptions']['priority'] = 10;
return $tabs;
}
![图片[2]-Astra主题WooCommerce技巧:设置默认评论标签与空购物车展示精选商品](https://www.361sale.com/wp-content/uploads/2025/04/20250421141847634-image.png)
Save when you are done and visit any product page again, the default display will be the review content. This approach effectively boosts customer engagement and encourages more reviews.
![图片[3]-Astra主题WooCommerce技巧:设置默认评论标签与空购物车展示精选商品](https://www.361sale.com/wp-content/uploads/2025/04/20250421141900793-image.png)
Empty Cart Display Featured Products
(coll.) fail (a student)cartWhen empty, the page tends to display a message, which is monotonous.
![图片[4]-Astra主题WooCommerce技巧:设置默认评论标签与空购物车展示精选商品](https://www.361sale.com/wp-content/uploads/2025/04/20250421141803203-image.png)
Astra In version 4.1.0, a new feature has been added to support displaying a Featured Product when the shopping cart is empty.
Prerequisite:
Astra Theme and Astra Pro Plugin need to be enabled and the product has "
The setting method is as follows:
- In the product list, click on the star icon next to the item to mark it as Featured
![图片[5]-Astra主题WooCommerce技巧:设置默认评论标签与空购物车展示精选商品](https://www.361sale.com/wp-content/uploads/2025/04/20250421141630862-image.png)
- Go to Appearance Settings and clickmenuCart icon in the column to enter the shopping cart settings interface
- Scroll down to find the "Show Featured Products" option and turn it on.
![图片[6]-Astra主题WooCommerce技巧:设置默认评论标签与空购物车展示精选商品](https://www.361sale.com/wp-content/uploads/2025/04/20250421141732360-image.png)
When enabled, if the shopping cart is empty, the system will display the selected products that have been set; if no selected products have been set, other products will be displayed randomly.
![图片[7]-Astra主题WooCommerce技巧:设置默认评论标签与空购物车展示精选商品](https://www.361sale.com/wp-content/uploads/2025/04/20250421141813893-image.png)
This type of presentation can help retain visitors and prevent the page from being too blank, prompting them to move on to other products.
wrap-up
Showing reviews on product pages builds trust and attracts visitors' attention to the reviews, while showing selected products in an empty cart provides visitors with direction to continue shopping. These two settings work well together to add more interactive details and conversion power to your store.
If you need to add code, it is recommended that you add it to thesubthemeoperation, and make backups to ensure the stability of the website operation. If you use Astra Pro Plugins, which also unlock additional tie-in features, further enhance the overall e-commerce page's usability and content performance.
Latest Articles
Link to this article:https://www.361sale.com/en/51012/The article is copyrighted and must be reproduced with attribution.


















![表情[wozuimei]-光子波动网 | WordPress教程、Elementor教程与故障修复](https://www.361sale.com/wp-content/themes/zibll/img/smilies/wozuimei.gif)
![表情[baoquan]-光子波动网 | WordPress教程、Elementor教程与故障修复](https://www.361sale.com/wp-content/themes/zibll/img/smilies/baoquan.gif)

No comments