Files
Landing/wp-content/themes/upstudy/woocommerce/content-product.php
T

32 lines
1.1 KiB
PHP
Raw Normal View History

2026-04-23 04:33:43 +03:30
<?php
/**
* The template for displaying product content within loops
*
* This template can be overridden by copying it to yourtheme/woocommerce/content-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 10.1.2
*/
defined( 'ABSPATH' ) || exit;
global $product;
// Ensure visibility.
if ( empty( $product ) || ! $product->is_visible() ) :
return;
endif;
$woo_desktop_cols = 12/Upstudy::setting( 'woo_shop_columns' );
$product_col_class = 'upstudy-single-product-item upstudy-col-lg-' . esc_attr( $woo_desktop_cols ) . ' upstudy-col-md-4 upstudy-col-sm-6';
?>
<div <?php wc_product_class( $product_col_class ); ?>>
<?php wc_get_template( 'tpl-part/layout.php' ); ?>
</div>