• Resolved loopforever

    (@loopforever)


    Hello ,
    I’m working on an email template: /emails/customer-processing-order.php.
    I got the other data I wanted. However, in this file, I am not getting the total discount amount. So, Regular price – Sale Price. I used the definitions below. But it returns zero value. Can you help me ?

    echo $total_discount = $order->get_total_discount(); 
    echo $discount_total = $order->get_discount_total();

    echo $discount_price = $order->get_discount_to_display();`

    Update, also, i didn’t get “date complete”.
    echo $order_date = $order->get_date_completed();

    How can i display thumbnail in this template ?

    • This topic was modified 3 years, 10 months ago by loopforever.
    • This topic was modified 3 years, 10 months ago by loopforever.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Hi there ??

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Cheers.

    Thread Starter loopforever

    (@loopforever)

    Sorry but you are copying and pasting the same thing. I have already looked at these sources, many sources and came here.

    • This reply was modified 3 years, 10 months ago by loopforever.
    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    At the moment, there’s no default option for that in WooCommerce, and setting that as the default would require quite a bit of additional coding. Please kindly note that this requires some custom coding – which goes beyond the scope of support we are able to provide in this forum.

    If you do require more help with the actual coding, we’d recommend you hire a developer who can take a look at this, quote you for their services, and help you add this feature to your site. We’d recommend getting in touch with a web developer or one of the customization experts listed at https://woocommerce.com/customizations/.

    Cheers.

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Since it’s been a while since we last heard back from you, I’m going to mark this thread resolved.

    Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.

    Cheers! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Get Total Discount’ is closed to new replies.