SHARE
TWEET

Decription after products

bastetmilo Oct 24th, 2018 128 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3.  * The Template for displaying product archives, including the main shop page which is a post type archive
  4.  *
  5.  * This template can be overridden by copying it to yourtheme/woocommerce/archive-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. get_header( 'shop' );
  21.  
  22. /**
  23.  * Hook: woocommerce_before_main_content.
  24.  *
  25.  * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
  26.  * @hooked woocommerce_breadcrumb - 20
  27.  * @hooked WC_Structured_Data::generate_website_data() - 30
  28.  */
  29. do_action( 'woocommerce_before_main_content' );
  30.  
  31. ?>
  32. <header class="woocommerce-products-header">
  33.     <?php if ( apply_filters( 'woocommerce_show_page_title', true ) ) : ?>
  34.         <h1 class="woocommerce-products-header__title page-title"><?php woocommerce_page_title(); ?></h1>
  35.     <?php endif; ?>
  36.  
  37.  
  38. <?php
  39.     /**
  40.      * Hook: woocommerce_archive_description.
  41.      *
  42.      * @hooked woocommerce_taxonomy_archive_description - 10
  43.      * @hooked woocommerce_product_archive_description - 10
  44.      */
  45.    
  46.     ?>
  47.    
  48. </header>
  49. <?php
  50. if ( woocommerce_product_loop() ) {
  51.  
  52.     /**
  53.      * Hook: woocommerce_before_shop_loop.
  54.      *
  55.      * @hooked wc_print_notices - 10
  56.      * @hooked woocommerce_result_count - 20
  57.      * @hooked woocommerce_catalog_ordering - 30
  58.      */
  59.     do_action( 'woocommerce_before_shop_loop' );
  60.  
  61.     woocommerce_product_loop_start();
  62.  
  63.     if ( wc_get_loop_prop( 'total' ) ) {
  64.         while ( have_posts() ) {
  65.             the_post();
  66.  
  67.             /**
  68.              * Hook: woocommerce_shop_loop.
  69.              *
  70.              * @hooked WC_Structured_Data::generate_product_data() - 10
  71.              */
  72.             do_action( 'woocommerce_shop_loop' );
  73.  
  74.             wc_get_template_part( 'content', 'product' );
  75.         }
  76.     }
  77.  
  78.     woocommerce_product_loop_end();
  79.  
  80. do_action( 'woocommerce_archive_description' );
  81.  
  82.     /**
  83.      * Hook: woocommerce_after_shop_loop.
  84.      *
  85.      * @hooked woocommerce_pagination - 10
  86.      */
  87.     do_action( 'woocommerce_after_shop_loop' );
  88. } else {
  89.     /**
  90.      * Hook: woocommerce_no_products_found.
  91.      *
  92.      * @hooked wc_no_products_found - 10
  93.      */
  94.     do_action( 'woocommerce_no_products_found' );
  95. }
  96.  
  97.  
  98.  
  99. /**
  100.  * Hook: woocommerce_after_main_content.
  101.  *
  102.  * @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content)
  103.  */
  104. do_action( 'woocommerce_after_main_content' );
  105.  
  106.  
  107.  
  108. /**
  109.  * Hook: woocommerce_sidebar.
  110.  *
  111.  * @hooked woocommerce_get_sidebar - 10
  112.  */
  113. do_action( 'woocommerce_sidebar' );
  114.  
  115. get_footer( 'shop' );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top