• Resolved qtwrk

    (@qtwrk)


    Hi, is there any filter or plugin that can add product’s price in here as my screenshot ?

    • This topic was modified 1 year, 4 months ago by qtwrk.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @qtwrk

    is there any filter or plugin that can add product’s price in here as my screenshot ?

    From what I understand, you’re on the hunt for a filter or plugin that will allow you to add a product’s price just like you want. Unfortunately, I didn’t see the screenshot you mentioned in your message. To help you more effectively, could you give me more information about the feature you’re trying to add?

    I’d love to know where you want the product’s price to show up – is it on the product page, in the shopping cart, or somewhere else? If you could also describe the design or layout you’re picturing, that would be fantastic.

    If you have a screenshot that shows what you’re looking for, please remember to include it in your next message. Screenshots can make things a lot clearer, so they’re a big help in understanding what you need. We suggest using https://snipboard.io to share screenshots – just follow the directions on the page, then paste the URL in your response.

    Once I have all this information, I’ll be able to point you toward the right plugin or filter or suggest a different solution if needed.

    Thanks so much for getting in touch. I’m looking forward to helping you further.

    Thread Starter qtwrk

    (@qtwrk)

    anyway , I figured this out , just post here in case someone else sees this post

    add_filter('woocommerce_json_search_found_products', function($products) {
        foreach ($products as $product_id => $product_name) {
            $product = wc_get_product($product_id);
            if ($product) {
                $price = $product->get_price();
                $product_name .= ' – ' . wc_price($price);
                $products[$product_id] = $product_name;
            }
        }
        return $products;
    });

    Hi @qtwrk

    anyway , I figured this out , just post here in case someone else sees this post

    I’m thrilled to see that you’ve figured it out! It’s wonderful that you’re sharing this solution here, as it could be of help to others who might encounter the same issue in the future.

    I’ll go ahead and mark this thread as resolved. However, if you ever have more questions or issues in the future, don’t hesitate to kick off a new topic.

    Have a fantastic day!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘display price when add product to existing order’ is closed to new replies.