Home Forums WoodMart support forum A previous problem need a solution

A previous problem need a solution

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #28462

    leonidas
    Participant

    Sorry for the inconvenience.This topic was closed 5 days ago.The ticket with the name “contact with a plugin developer”.In this situation, I wanted to add a widget sidebar.Everything worked fine until suddenly I saw the message below.
    Of course, I disabled the code for my site to work:

    function woodmart_header_block_cart() {
    $position = woodmart_get_opt(‘cart_position’);
    $design = woodmart_get_opt(‘shopping_cart’);
    $extra_class = ‘woodmart-cart-icon’;

    if( $position == ‘side’ ) {
    $extra_class .= ‘ cart-widget-opener’;
    }

    if ( woodmart_woocommerce_installed() && $design != ‘disable’ ): ?>

    <div class=”woodmart-shopping-cart woodmart-cart-design-<?php echo esc_attr( $design ); ?> <?php echo esc_attr( $extra_class ); ?>”>
    “>
    <span class=”woodmart-cart-totals”>
    <?php woodmart_cart_count(); ?>
    <span class=”subtotal-divider”>/</span> 
    <?php woodmart_cart_subtotal(); ?>
    </span>

    <?php if ( $position != ‘side’): ?>
    <div class=”dropdown-cart”>
    <?php 

    // Insert cart widget placeholder – code in woocommerce.js will update this on page load
    echo ‘<div class=”widget woocommerce widget_shopping_cart”><div class=”widget_shopping_cart_content”></div></div>’;

      ?> 
    </div>
    <?php endif ?>
    </div>
    <?php endif;
    ?>

    <div class=”panel-icon”><i class=”fa fa-ellipsis-v”></i></div>
            <?php
    }

    What does it mean since I didn’t touch anything?
    Waiting for your reply.

    #28479

    Artem Temos
    Keymaster

    Hi,

    Strange, we don’t see any errors in the code at a first look. Try to copy this function to your child theme again from the parent theme and edit it carefully.

    Regards

    #28519

    leonidas
    Participant

    Found the issue
    Problem solved
    Close the ticket please

    #28532

    Artem Temos
    Keymaster

    Great, we are glad that you have found the solution.

Viewing 4 posts - 1 through 4 (of 4 total)