Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Gabriel Reguly

    (@gabriel-reguly)

    Hiya,

    Glad to know you like the plugin.

    Which gold price would you like to display?

    For 24k? Or 22k?

    Best option is to hire a developer: https://omniwp.com.br/hire-a-developer/

    Cheers,
    Gabriel

    Thread Starter mahmouddawod

    (@mahmouddawod)

    thanks for replay
    for 24k and 22K

    Plugin Author Gabriel Reguly

    (@gabriel-reguly)

    Ok, so gold prices are stored at options table, like:

    
    $karats = get_option( 'woocommerce_gold_price_options' );
    if ( ! $karats ) {
    	$karats = array( '24k' => 0, '22k' => 0, '18k' => 0, '14k' => 0 );
    }
    
    

    So for 24k price, one would display wc_price( $karats['24k'] ) inside the widget.

    Hope this helps.

    Cheers,
    Gabriel

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘how can display gold price in Widget in top website’ is closed to new replies.