• Resolved Dishang Shah

    (@dsuinfo)


    Hello, developer first of all thanks for deveoping this plugin. i found exactly i was searching. but my customer demand for Labour charges or making charges (Means one of Charges) can be Multiply the entered amount with Gold Weight. For ex. Entered Extra charges in product details as Rs. 500 so it can be multiple with gold weight means 500*1.20=600 + tax amount. also this can be show on woocommerce product page or while checkout
    Hope you will do this.
    thanks

    • This topic was modified 3 years, 7 months ago by Dishang Shah.

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

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

    (@gabriel-reguly)

    Hi dsuinfo,

    Glad to know you like the plugin.

    In order to get help with a customization like your client wants please try to hire a developer.

    Cheers,
    Gabriel

    Thread Starter Dishang Shah

    (@dsuinfo)

    Thanks for your reply but i have made it possible with the help of my friend.
    Now i want to display Spread & Making charges on Product page with Purity and Gold Price.

    It is possible any ready made query you have so i can put in function.php

    Plugin Author Gabriel Reguly

    (@gabriel-reguly)

    Hi dsuinfo,

    Good news that you were able to solve the requirements for your client.

    I would not know about any ready made query for your custom solution.

    Cheers,
    Gabriel

    Thread Starter Dishang Shah

    (@dsuinfo)

    By the way i have display purity, spread and making charges on product page. Now last remaining want to show Today’s gold price so can you let me know in which database value store or its matadata field name. Ex.

    function display_custom_field_value(){
    $value = get_post_meta( get_the_ID(), ‘gold_price_product_spread’, true);
    if(strlen($value) != null && strlen($value) > 0) {
    echo ‘<div class=”woocommerce-price”><b>Making Charges/gm :</b> (?)’.number_format(get_post_meta( get_the_ID(), ‘gold_price_product_spread’, true ),2).'</br><b>Extra Fees : </b>(?) ‘.number_format(get_post_meta( get_the_ID(), ‘gold_price_product_fee’, true ),2).'</br><b>Approx Weight : </b>(gm) ‘.number_format(get_post_meta( get_the_ID(), ‘_weight’, true ),2).'</br><b>Purity Level :</b> ‘.get_post_meta( get_the_ID(), ‘gold_price_karats’, true ).'</div>’;

    }
    }
    add_action(‘woocommerce_single_product_summary’, ‘display_custom_field_value’, 22 );`

    Used this code using snippet and working but now last issue is per product i want to show Today’s gold price for 22 & 24k hope you help for this. Thanks

    Hi dsuinfo (@dsuinfo)
    function display_custom_field_value(){
    $value = get_post_meta( get_the_ID(), ‘gold_price_product_spread’, true);
    if(strlen($value) != null && strlen($value) > 0) {
    echo ‘<div class=”woocommerce-price”><b>Making Charges/gm :</b> (?)’.number_format(get_post_meta( get_the_ID(), ‘gold_price_product_spread’, true ),2).'</br><b>Extra Fees : </b>(?) ‘.number_format(get_post_meta( get_the_ID(), ‘gold_price_product_fee’, true ),2).'</br><b>Approx Weight : </b>(gm) ‘.number_format(get_post_meta( get_the_ID(), ‘_weight’, true ),2).'</br><b>Purity Level :</b> ‘.get_post_meta( get_the_ID(), ‘gold_price_karats’, true ).'</div>’;

    }
    }
    add_action(‘woocommerce_single_product_summary’, ‘display_custom_field_value’, 22 );`

    This code is not working with me can you check this screen shoot https://prnt.sc/13o9h3z

    please guide me.

    Thread Starter Dishang Shah

    (@dsuinfo)

    @sksubir hello this is not correct code. If @gabriel-reguly allow me to share code than i can post here.

    Okay No problem
    Please share me the code to my email ([email protected])

    Thank you

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Can you update this?’ is closed to new replies.