
WooСommerce
1
Вклад в тег
<?php if ( WC()->cart->needs_shipping() && WC()->cart->show_shipping() ) : ?>
<?php if ( WC()->cart->needs_shipping() && WC()->cart->show_shipping() ) : ?>
<?php do_action( 'woocommerce_review_order_before_shipping' ); ?>
<?php wc_cart_totals_shipping_html(); ?>
<?php do_action( 'woocommerce_review_order_after_shipping' ); ?>
<?php endif; ?>
<?php foreach ( WC()->cart->get_fees() as $fee ) : ?>
<tr class="fee">
<th><?php echo esc_html( $fee->name ); ?></th>
<td><?php wc_cart_totals_fee_html( $fee ); ?></td>
</tr>
<?php endforeach; ?>
<?php if ( wc_tax_enabled() && ! WC()->cart->display_prices_including_tax() ) : ?>
<?php if ( 'itemized' === get_option( 'woocommerce_tax_total_display' ) ) : ?>
<?php foreach ( WC()->cart->get_tax_totals() as $code => $tax ) : // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited ?>
<tr class="tax-rate tax-rate-<?php echo esc_attr( sanitize_title( $code ) ); ?>">
<th><?php echo esc_html( $tax->label ); ?></th>
<td><?php echo wp_kses_post( $tax->formatted_amount ); ?></td>
</tr>
<?php endforeach; ?>
<?php else : ?>
<tr class="tax-total">
<th><?php echo esc_html( WC()->countries->tax_or_vat() ); ?></th>
<td><?php wc_cart_totals_taxes_total_html(); ?></td>
</tr>
<?php endif; ?>
<?php endif; ?>
<?php
$args = array(
'taxonomy' => 'product_cat',
'hide_empty' => false,
'parent' => 0,
);
$product_categories = get_terms( $args );
$count = count($product_categories);
if ( $count > 0 ){
foreach ( $product_categories as $product_category ) {
$thumbnail_id = get_woocommerce_term_meta( $product_category->term_id, 'thumbnail_id', true );
echo '<div class="my-vid-category">';
echo '<ul class="my-vid">';
echo '<li class="my-entry-block">';
echo '<div class="my-entry-title">';
echo '<a href="' . get_term_link( $product_category ) . '" title="' . $product_category->name . '"><h2>' . $product_category->name . '</h2></a>';
echo '</div>';
echo '<article class="my-type-post">';
echo '<div class="my-entry-cover" style="width: 450px; height: 300px;">';
echo '<a href="' . get_term_link( $product_category ) . '"><img style="background-image: url('. wp_get_attachment_url( $thumbnail_id ) .')!important;" /></a>';
$args = array(
'taxonomy' => 'product_cat',
'hide_empty' => false,
'parent' => $product_category->term_id,
);
$product_categories = get_terms( $args );
$count = count($product_categories);
if ( $count > 0 ){
foreach ( $product_categories as $product_category ) {
echo '<div class="my-parent-title">';
echo '<a href="' . get_term_link( $product_category ) . '" title="' . $product_category->name . '"><h4>' . $product_category->name . '</h4></a>';
echo '</div>';
}}
echo '</div>';
echo '</article>';
echo '<hr>';
echo '</li>';
echo '</ul>';
echo '</div>';
}
}
?>
<script>
jQuery(document).ready(function($) {
var delay = 100; setTimeout(function() {
$('.elementor-tab-title').removeClass('elementor-active');
$('.elementor-tab-content').css('display', 'none'); }, delay);
});
</script>