Home Forums WoodMart support forum E-mail bug displaying the price of goods in the newsletter

E-mail bug displaying the price of goods in the newsletter

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #560000

    radchuk2012
    Participant

    Greetings!
    Letters began to arrive with texts like “286,60 ₴ Оригінальна ціна: 286,60 ₴.250,70 ₴Поточна ціна: 250,70 ₴.шт”.
    Excessive information in the price text is misleading and looks like a bug.
    I think this needs to be fixed.
    It should look something like this “286,60 ₴ 250,70 ₴ шт”.
    Thank you, best regards!

    Attachments:
    You must be logged in to view attached files.
    #560210

    Luke Nielsen
    Keymaster

    Hello,

    Copy this file to the child theme wp-content/themes/woodmart/woocommerce/emails/back-in-stock.php and make changes per your needs.

    If you have any additional questions, let me know.

    Kind Regards

    #560229

    radchuk2012
    Participant

    Hello!
    I don’t see in the lines of the file how it is possible to display the necessary parameters for the price in the variables contained in it:
    <?php esc_html_e( ‘Price’, ‘woodmart’ ); ?>
    <?php echo wp_kses( $product->get_price_html(), true ); ?>
    If possible, please give an example.

    #560690

    Luke Nielsen
    Keymaster

    Hello,

    Please replace this <?php echo wp_kses( $product->get_price_html(), true ); ?> line to this one <?php echo wp_kses( wc_price( wc_get_price_to_display( $product ) ), true ); ?>

    In the next update in will be fixed.

    Kind Regards

    #561240

    radchuk2012
    Participant

    Hello,
    Your row code helped, thanks!
    The topic is closed.
    “In the next update in will be fixed.” – It will be great.

    #561608

    Luke Nielsen
    Keymaster

    Hello,

    You are welcome! If you do not mind, can you please leave a 5 stars rating for our theme by going here: http://themeforest.net/downloads It will allow us to release more updates and provide dedicated support in the future. It would encourage our work a lot.

    Have a good day!

    Kind Regards

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘E-mail bug displaying the price of goods in the newsletter’ is closed to new replies.