Advertisement
rdusnr

Untitled

Jul 16th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. <?php
  2. /**
  3. * The template for displaying product content in the single-product.php template
  4. *
  5. * This template can be overridden by copying it to yourtheme/woocommerce/content-single-product.php.
  6. *
  7. * HOWEVER, on occasion WooCommerce will need to update template files and you
  8. * (the theme developer) will need to copy the new files to your theme to
  9. * maintain compatibility. We try to do this as little as possible, but it does
  10. * happen. When this occurs the version of the template file will be bumped and
  11. * the readme will list any important changes.
  12. *
  13. * @see https://docs.woocommerce.com/document/template-structure/
  14. * @package WooCommerce/Templates
  15. * @version 3.4.0
  16. */
  17.  
  18. defined( 'ABSPATH' ) || exit;
  19.  
  20. ?>
  21.  
  22. <?php
  23. /**
  24. * Hook: woocommerce_before_single_product.
  25. *
  26. * @hooked wc_print_notices - 10
  27. */
  28. do_action( 'woocommerce_before_single_product' );
  29.  
  30. if ( post_password_required() ) {
  31. echo get_the_password_form(); // WPCS: XSS ok.
  32. return;
  33. }
  34. ?>
  35.  
  36. <div id="product-<?php the_ID(); ?>">
  37. <div class="row">
  38.  
  39. <?php
  40. /**
  41. * Hook: woocommerce_before_single_product_summary.
  42. *
  43. * @hooked woocommerce_show_product_sale_flash - 10
  44. * @hooked woocommerce_show_product_images - 20
  45. */
  46. do_action( 'woocommerce_before_single_product_summary' );
  47. ?>
  48.  
  49. <div class="summary entry-summary col-sm-6">
  50.  
  51. <?php
  52. /**
  53. * Hook: woocommerce_single_product_summary.
  54. *
  55. * @hooked woocommerce_template_single_title - 5
  56. * @hooked woocommerce_template_single_rating - 10
  57. * @hooked woocommerce_template_single_price - 10
  58. * @hooked woocommerce_template_single_excerpt - 20
  59. * @hooked woocommerce_template_single_add_to_cart - 30
  60. * @hooked woocommerce_template_single_meta - 40
  61. * @hooked woocommerce_template_single_sharing - 50
  62. * @hooked WC_Structured_Data::generate_product_data() - 60
  63. */
  64. do_action( 'woocommerce_single_product_summary' );
  65. ?>
  66.  
  67. </div><!-- .summary -->
  68.  
  69. </div>
  70.  
  71. <?php
  72. /**
  73. * Hook: woocommerce_after_single_product_summary.
  74. *
  75. * @hooked woocommerce_output_product_data_tabs - 10
  76. * @hooked woocommerce_upsell_display - 15
  77. * @hooked woocommerce_output_related_products - 20
  78. */
  79. do_action( 'woocommerce_after_single_product_summary' );
  80. ?>
  81.  
  82. </div>
  83.  
  84. <?php do_action( 'woocommerce_after_single_product' ); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement