• My problem is that when you go to the wishlist page, the product doesn’t show the price it says FREE!

    Thanks.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hello there,
    hope you are doing well! ??

    I have been trying to access to your site to check what is happening but it’s in “coming soon” mode.

    Could you give us more information about the issue to try to replicate it, please?

    Have a nice day!

    carolinasv

    (@carolinasv)

    Hi,

    I have the same problem. When i have the price empty (because I set the product as upcoming product with a label and I need to leave the price empty) it shows the price on wishlist page as FREE!.

    I’d like to show the space empty or have SOON!

    Now I have the price column hided because of this.

    THanks

    mpantogi

    (@mpantogi)

    Hi,

    I have the same issue, but only for grouped products i get ‘Free’

    My problem appears suddenly someday. Maybe i have updated the plugin. It shows me a text ”free” in grouped products in wishlist view,
    it doesn’t show me the price as it did before.
    Also, i have found, from where the issue came, i provide you the lines of the code in wishlist-view.php.

    <?php if( $show_price ) : ?>
    <td class=”product-price”>
    <?php
    $base_product = $product->is_type( ‘variable’ ) ? $product->get_variation_regular_price( ‘max’ ) : $product->get_price();
    echo $base_product ? $product->get_price_html() : apply_filters( ‘yith_free_text’, __( ‘Free!’, ‘yith-woocommerce-wishlist’ ) );
    ?>
    </td>
    <?php endif ?>

    Is any other filter, which i can use and get the grouped prices and not the text ”Free”?

    mpantogi

    (@mpantogi)

    I found the solution,Please delete or comment the above lines in wishlist-view.php, and add the below code:

    <?php if( $show_price ) : ?>
    <td class=”product-price”>
    <?php
    if( is_a( $product, ‘WC_Product_Bundle’ ) ){
    if( $product->min_price != $product->max_price ){
    echo sprintf( ‘%s – %s’, wc_price( $product->min_price ), wc_price( $product->max_price ) );
    }
    else{
    echo wc_price( $product->min_price );
    }
    }
    elseif( $product->price != ‘0’ ) {
    echo $product->get_price_html();
    }
    else {
    echo apply_filters( ‘yith_free_text’, __( ‘Free!’, ‘yith-woocommerce-wishlist’’ ) );
    }
    ?>
    </td>
    <?php endif ?>

    carolinasv

    (@carolinasv)

    Hi @mpantogi

    Is this a solution for your case? Or it would work with my problem too?

    Thanks

    mpantogi

    (@mpantogi)

    in your case you can find the word ‘FREE’ in wishlist-view.php and change it to have SOON.That’s only.

    carolinasv

    (@carolinasv)

    @mpantogi in which folder is that file? I can’t find it :/

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Product shows free in wishlist’ is closed to new replies.