• Hello I want a small help. I want to fetch the details prices whatever i have input in the field and display it in the front end is it possible if yes how? it is really important.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You want fetch woo product price ?

    just add the piece of code into function php

    function msh_woo_price_shortcode_callback() {
        
    
        $html = '';
    
        if(  function_exists( 'wc_get_product' ) ){
             $product = wc_get_product( );
             $html = $product->get_price_html();
        }
        return $html;
    }
    add_shortcode( 'woo_price', 'msh_woo_price_shortcode_callback' );
    
    

    then use short code [woo_price] anywhere on your product front end to display product price

    Thread Starter plusdapper

    (@plusdapper)

    Hey mrshafaq
    Thank you for replying to the query, I don’t want the product price I want the price that is been set the plugin for 24k , 22k, 18k etc and then display it in the front end

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fetching the prices entered (Urgent)’ is closed to new replies.