Permalink
Switch branches/tags
add/ajax-unit-tests add/fb-in-obw add/skip-activate-if-connected-to-jetpack add/twentyseventeen-support add/wc-admin-taxonomy-instance/21883 add/19748-filter-orders-between-dates add/21139-2 add/21925 add/21955 add/21964 add/21992 cart-session-class concept/edit-product-ui discount-calculation feature-13189 feature/api-keys-crud feature/coupontables feature/display-menu feature/import-merges feature/pages-gutenberg-support feature/product-category-select feature/products-block feature/rest-api-products-per-low-level feature/rest-api-v3-reports feature/rest-api-v3 feature/variation-search feature/20773 feature/20777 feature/21122 fix-12955 fix-13671 fix-13677 fix-15563 fix-helper-multilicense fix/add-payment-method.js-formatting fix/array-combine-tests fix/checkout-box fix/defend-cod-notices fix/deprecated-edit_form_after_title fix/formatted_address_upper fix/gatewayesc fix/includes fix/jetpack-activation-setup-wizard fix/jetpack-tos-acceptance fix/long-table-names fix/meta-notice fix/missing-drag-handles fix/no-js-login-checkout fix/refund-hash-reload/22115 fix/rest-api-orderby-slug fix/slow-updater fix/sync-datastore-with-db-layer fix/system-status-failing-test fix/tax-rate-non-numeric fix/theme-compat fix/wildcard fix/wizard-class fix/14317 fix/14985 fix/15274 fix/15617 fix/16496-extension-permissions fix/17047 fix/17582 fix/17969 fix/17970 fix/18023 fix/18736-show-product-id fix/18995 fix/19036-order-date fix/19418 fix/19429 fix/19765-missing-coupon-box-checkout fix/19815-hook-sniffer-excluding-some-dynamic-hooks fix/19831 fix/19889 fix/19959 fix/20133-string-parsing fix/20133 fix/20157 fix/20252 fix/20372 fix/20658 fix/20759 fix/20797 fix/20937-v0.1 fix/20937-v0.2 fix/20963 fix/20997 fix/21100 fix/21144 fix/21145 fix/21203 fix/21269 fix/21429 fix/21548-2 fix/21552 fix/21656 fix/21663 fix/21687 fix/21735 fix/21758 fix/21834 fix/22089 fix/22200 fix/22201 fix/22208 gh-pages hyperlinks-mention-of-woocommerce-in-email-footer improve/cart-tests master payment-request-api pr/20669 product-data-store products-block-specific-select prototype/statstable refactor/form-handler release/3.2 release/3.3 release/3.4 release/3.5 renovate/eslint-5.x renovate/pin-dependencies revert-17396-fix/17379 tests/coupon-rounding-issue try/core-personal-data-exporter try/hosted-nux try/new-wizard-shipping-page tweak/associative-array-gdpr-registration tweak/coupon-hide-logic tweak/remove-logger-interface-dependency tweak/rounding-precision-totals ui/gallery-markup update-chromedriver update/abstract-privacy-class update/changelog update/conditional-functions-phpcs update/data-store-meta-input update/dynamic-placeholders update/extras-obw-tab update/gdpr-checkout update/humanize-emails update/improve-layered-nav-performance update/order-functions-phpcs update/pre-commit update/releasereadme update/setup-wizard-activate-step-when-jetpack-connected update/setup-wizard-paypal-currency-check update/setup-wizard-smart-defaults-with-jetpack-backup update/stylelint-config update/update-routine update/wc-tracker-data update/widget-functions-phpcs update/woo-services-presentation update/15780-locking-mechinism update/17555 update/19176 update/20991 update/21978 wip/shopify-mappings
Nothing to show
Find file Copy path
75 lines (67 sloc) 2.2 KB
<?php
/**
* The template for displaying product content in the single-product.php template
*
* This template can be overridden by copying it to yourtheme/woocommerce/content-single-product.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
* the readme will list any important changes.
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce/Templates
* @version 3.4.0
*/
defined( 'ABSPATH' ) || exit;
/**
* Hook: woocommerce_before_single_product.
*
* @hooked wc_print_notices - 10
*/
do_action( 'woocommerce_before_single_product' );
if ( post_password_required() ) {
echo get_the_password_form(); // WPCS: XSS ok.
return;
}
?>
<div id="product-<?php the_ID(); ?>" <?php wc_product_class(); ?>>
<?php
/**
* Hook: woocommerce_before_single_product_summary.
*
* @hooked woocommerce_show_product_sale_flash - 10
* @hooked woocommerce_show_product_images - 20
*/
do_action( 'woocommerce_before_single_product_summary' );
?>
<div class="summary entry-summary">
<?php
/**
* Hook: woocommerce_single_product_summary.
*
* @hooked woocommerce_template_single_title - 5
* @hooked woocommerce_template_single_rating - 10
* @hooked woocommerce_template_single_price - 10
* @hooked woocommerce_template_single_excerpt - 20
* @hooked woocommerce_template_single_add_to_cart - 30
* @hooked woocommerce_template_single_meta - 40
* @hooked woocommerce_template_single_sharing - 50
* @hooked WC_Structured_Data::generate_product_data() - 60
*/
do_action( 'woocommerce_single_product_summary' );
?>
</div>
<?php
/**
* Hook: woocommerce_after_single_product_summary.
*
* @hooked woocommerce_output_product_data_tabs - 10
* @hooked woocommerce_upsell_display - 15
* @hooked woocommerce_output_related_products - 20
*/
do_action( 'woocommerce_after_single_product_summary' );
?>
</div>
<?php do_action( 'woocommerce_after_single_product' ); ?>