Place the following code in your meta.php
template file immediately after the lines where it prints the categories and tags. Please note, the standard practice is that you shall copy the meta.php
template file to your theme folder. So to override meta.php
, copy: woocommerce/templates/single-product/meta.php from plugin folder to yourtheme/woocommerce/templates/single-product/meta.php
<?php
global $product;
$downloads = $product->get_files();
foreach( $downloads as $key => $each_download ) {
$info = pathinfo($each_download["file"]);
$ext = $info['extension'];
$formats .= $ext . ", ";
}
echo '<p> Formats: '. $formats .'</p>';
?>
Related Posts:
- How to get current product category ID in product archive page
- WooCommerce prices location in DB
- WP/WooCommerce REST API cart/checkout/order [closed]
- Fatal Error when installing woocommerce despite upgrading
- Adding an action within a function that is being called by add_filter
- Hide Add to Cart Button
- How to modify “[Product] has been added to your cart” in WooCommerce?
- woocommerce fail to replace template string in email title [closed]
- Why do Woocommerce templates use hooks rather than get_template_part
- Change font size in products listing pages in woocommerce
- Display WooCommerce only in stock sizes product attribute on shop page
- Remove “Choose An Option” on Product Variation & Auto Select Instead
- check if current url/page equals checkout page [closed]
- How to stop a Gutenberg Block from firing multiple GET Requests?
- Woocommerce Product Price Inserted programmatically doesn’t get displayed In Single Product Page
- How to Order by random on a SQL query
- Move add to cart in Woocommerce
- WooCommerce customer account multiple emails
- WooCommerce Product Page css
- Get the name of all the Items of cart in current session
- Change WordPress Site Title and Tagline and WooCommerce settings using ACF [closed]
- Using a filter with multiple parameters and $this
- Remove Dashboard button from menu in my account page – WooCommerce
- Update html tag class values based on Woocommerce product attribute dropdown selection [closed]
- Woocommerce: custom loop in product tabs breaks reviews tab
- Category Tree In WooCommerce Product API
- How to delete 1000s of duplicated images in WordPress?
- Woocommerce Product Import Automation
- Get posts from subcategory by parent category slug
- how to get jetpack’s infinite scroll to work with woocommerce?
- WooCommerce orderby template disappears and not longer works on search page
- Woocommerce variations as a list [closed]
- wp_set_object_terms being undone
- Check if page is a woocommerce attribute
- DELETE WooCommerce Order data from database
- How do I update every title of a certain category with a phrase
- Change max number of products on shop pages
- WooCommerce: One term for Many Product Attributes
- CF7 Ajax isn’t working when called inside WooCommerce “woocommerce_before_add_to_cart_button” hook [closed]
- How to dequeue script on woocommerce product?
- Hide inventory message on product page based on available stock quantity
- How to output woocommerce products to a page, style and modify the html structure
- Else: Show Message Outside of Product Loop
- Clients with empty username are not receiving request new password email
- how can i add an additional action into woocommerce admin order page through my plugin?
- Variation Swatches for WooCommerce – too many variations
- How to make an edit to an already published post back to Draft
- Display data when category is empty
- Disable woocommerce PLACE ORDER button if user selected products that are not available for international delivery
- Remove sale signs from site in branded? [closed]
- Create a regular post for every WooCommerce order
- How to integrate e-transfers with checkout in WooCommerce
- Manual Admin Orders search for billing_company
- Use woocmmerce function on theme and override them
- Hooks For Design variation in woo commerce single product page
- Snippet to copy product affiliate link to a custom field
- Woocommerce Checkout Page Total Price Inside Google Pay Script
- How to hide order action button after changing order status to completed
- Access custom meta_data in processing order email
- How to get rid of variations with unspecified attributes
- Deregister dequeue JS scripts except on 1 product page
- Change password notification email
- How to show price update date in product single page?
- Woocommerce Rest API: woocommerce_product_invalid_image_id
- How do I disable “Flat Rate” radio button and remain with other shipping method in woocommerce
- How to add woocommerce product price filter widget to other page
- How to get users data from wordpress woocomerce database to display
- Simple thing esc_url query
- Woocommerce on Subdirectory
- Change WooCommerce state and city checkout fields to dropdowns related to the chosen country
- How to apply a custom coupon to a WooCommerce Subscription recurring amount?
- How to send an automatic email to a custom field in Woocommerce order meta 2 weeks after a product is bought
- Woocommerce cart table too wide [closed]
- WooCommerce: How can I add a certain product to the cart and redirect to the cart from a non-shop page?
- Make Woocommerce breadcrumbs show up using functions.php file
- Alter the cost of products using phpmyadmin sql query
- How does one allow any customer to process any order in store on woocommerce?
- WooCommerce CSV Image URL Creates Additional Images in Media Folder
- Custom changes performed on WP + WooCom site on maintenance subdomain. How to perform a migration to a main domain?
- Update products with curl (bash)
- How to put a date range in a virtual/downloadable product? [closed]
- Woocommerce Child Category Permalink Structure Change
- Allow customer to choose an optional free/paid product to add to their order (and reduce stock reduced & record sale)
- How to restrict type/size of file uploads in any plugin?
- In woocommerce some products have empty options, but how to check this
- Stop the “upload file size” error from printing [closed]
- Changing sale price programmatically, but it’s not shown on front-end
- How to disable the “Upgrade or Downgrade” button in “My account” of WooCommerce Subscriptions
- WooCommerce – Inconsistent Indexing of Orders
- How to show woocommerce login / registration form in modal
- How to remove slug from Product category URL in Woocommerce
- Removing ‘woocommerce-no-js’ class from body
- url rewrite doesn’t load woocommerce product
- registration_errors not working
- Translate Woocommerce tab
- Woocommerce -> gallery images per variation without a plugin? [closed]
- Why is my WordPress admin not working
- Create bookings after subscription renewal
- Change variants URL
- Hook for Woocommerce checkout fields