• Resolved Simo2606

    (@simo2606)


    Hello,

    I hope you could help me with this problem.
    I have a free product added to the cart automatically when the user purchases two other products. This free product has a price of €0. In the cart and checkout, before the last update, I saw the word “free” in subtotal instead of the price, now in the subtotal part I see € 0,00 (strikethrough text) €0.00. How can I show the text “free gift” again in cart and checkout subtotal instead of the price?

    I have this code, but it works only for “price” column in cart:

    
    add_filter( 'woocommerce_cart_item_price', 'change_cart_item_price_html', 10, 3 );
    function change_cart_item_price_html( $price_html, $cart_item, $cart_item_key ) {
        if( $cart_item['data']->get_price() == 0 ) 
            return '<span class="woocommerce-Price-amount amount">'.__("Omaggio", "woocommerce").'</span>';
        }
        return $price_html;
    }
    

    Thank you very much

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Simo2606

    (@simo2606)

    I think I found the problem, the price for BOGO product is shown when using Elementor Plugin for cart and checkout pages… not necessarily the Elementor widget for building the cart and checkout, but also just Elementor to build the page, then inserting the shortcode to show the cart and checkout. Please, could you help me to fix this?

    Thread Starter Simo2606

    (@simo2606)

    I looked further into it, also using your test site, and I saw that the price remains visible using the simple woocommerce shortcode for cart and checkout, beyond Elementor. So the problem is not related to Elementor or other plugins.

    Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi @simo2606,

    Greetings from WebToffee Support!

    Thank you for providing us with the details about the issue you’re encountering.

    However, we are a bit confused about the requirement you are trying to achieve. By default, the Smart Coupon for WooCommerce plugin displays the price of free products in the cart table by striking through the original price. In the cart and checkout summary, the coupon amount is displayed as the price of the free product.

    To assist you further, could you please provide us with the following information:

    1. The version of the Smart Coupon For WooCommerce plugin you are currently using. Please clarify whether you have experienced a sudden change in the display after the last plugin update, version 1.6.1.
    2. Verify whether there were any code snippets or modifications that you implemented to achieve this requirement initially, since the plugin doesn’t provide the feature you have described out-of-the-box, that had stopped functioning after the plugin update.
    3. Screenshots of all tabs of the coupon edit page for the BOGO coupon you have created and the screenshots of the cart and checkout pages once the coupon is applied. This will give us a better understanding regarding the coupon configuration and settings.

    Once we have a better understanding of your specific situation, we’ll be able to provide you with further assistance.

    Thank you for your patience, and we look forward to resolving this issue for you.

    Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi?@simo2606,

    We haven’t heard back from you for a while. As this thread has been inactive for some time, we are marking it as resolved.

    If you require any further assistance, please reach out to us using a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘BOGO subtotal issue’ is closed to new replies.