How to add a short description to the woocommerce cart page (woocommerce/cart/cart.php) since the_content();
wasn't working at all.
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
I was unable to use the above method but this worked for me
I figured that this could be solve by using:
echo apply_filters('the_content', get_post_field('post_content', $product_id));
This will display the full product description. If you want to display only an excerpt without shortcodes and all, you could use: