• Resolved Kristián Filo

    (@kristianfilo)


    Hi, I’ve noticed the prices in Your bid column in notifications e-mails are not corrently formatted. For example in customer bid notification e-mail, Your bid columns has the value of: 75

    I’ve checked the place-bid.php email template, the value is stored in $auction_bid_value variable, which is defined with the correct wc_price() format, but then immediately reset without the formatting like this (lines 26-27):

    $auction_bid_value = wc_price($product->get_uwa_current_bid());
    $auction_bid_value = $product->get_uwa_current_bid();

    You probably needed that price unformatted for possible calculations if the auction is ‘silent‘ or ‘proxy‘, but for simple auctions the price stays unformatted in emails.

    I know I can just override those templates, but I would like to eliminate needless issues if those templates get updated in the future.

    Could you please look at this? Thank you very much.

Viewing 2 replies - 1 through 2 (of 2 total)
  • hi @kristianfilo,

    It looks like you are using the Ultimate WooCommerce Auction Pro plugin on your site. Please change the plugin code like below.

    Go to auction plugin -> templates -> woocommerce -> emails -> placed-bid.php
    Go to auction plugin -> templates -> woocommerce -> emails -> placed-bid-admin.php

    From
    $auction_bid_value = wc_price($product->get_uwa_current_bid());
    $auction_bid_value = $product->get_uwa_current_bid();

    To
    $auction_bid_value = wc_price($product->get_uwa_current_bid());

    It will fix this issue. Please review the below attachment.
    https://ibb.co/VY64gBD

    We will add this change in the next release of the plugin update.

    If you are a PRO customer then please use this contact form for your query as this forum is meant only for free plugin queries.

    Thank You

    Thread Starter Kristián Filo

    (@kristianfilo)

    Hi @payalrajyaguru

    yes, I’ve already done it, but thanks anyway, looking forward for the next release when this is resolved permanently.

    Yes, I am using PRO version, I will use the contact form on your Docs page in the future.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Price not formatted in notification emails’ is closed to new replies.