We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Editing merchant notify email in the new Verge3D Plugin

Home Forums Programming Editing merchant notify email in the new Verge3D Plugin

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #56263
    Mariusz
    Customer

    Hi! I would like to edit the text of an email that is received by the merchant when a new order is placed. I was able to do it with the old Verge3D Plugin, but I don’t know how to do it in the new version released in 2022. :)

    While placing a new order, the user can select its country from a dropdown menu. I would like to inform the merchant about this choice in the email body, but make it invisible to the user. What kind of command should I use in the Email Content tab in the plugin, to make it work? I know I can add the customer name with %c and the order number with %n. But how to add country information?

    I’m attaching my dropdown code and the plugin screenshot for reference.

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

    Hi Mariusz,
    You can enable billing address in the plugin settings (General tab) and then modify order form (order_form.php) to convert Country input to selector as well as disable all other fields (Address 1,2….).

    Verge3D’s Tech Chief
    FB | Twitter | VK

    #56402
    Mariusz
    Customer

    Thank you Alexander, it worked! :good:

    I enabled the “Billing address” in the plugin settings, and added this to order_email_body.php:

    <p><?php
                if ($to == $order['user_email']) {
                    echo 'Text for the customer goes here.';
                } else {
                    echo 'Customer name: '.$order['user_name']. "<br>" .
                         'Customer email: '.$order['user_email']. "<br>" .
                         'Customer country: '.$order['user_country']. "<br>" .
                         'Order ID: '.$order_id. "<br>" .
                         'Date: '.date('j M Y');
                }
            ?></p>
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.