Delivery address fields not available – cannot put address to emails

Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Restaurant Menu Delivery address fields not available – cannot put address to emails

  • This topic has 8 replies, 2 voices, and was last updated 5 years ago by J. Davis.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #461322
    Martin Dvořák
    Guest

    Hi,

    I just installed mp-restaurant-menu, all set up but I have some troubles.

    In the process of completing the order, there are fileds for customer info, but the fileds for the address are missing. I tried to use the fields in mprm_additional_information_fields but these fields cannot be added to the emails in the emails settings as they have no shot codes for it.

    So,

    1. is it possible to add the address fields for the customers to fill?
    2. is it possible to add short codes for the additional info fields?

    The same for phone number – no short code.

    Thanks,
    Martin

    #463759
    J. Davis
    Keymaster

    Hi Martin,

    1. Yes, you can Enable Shipping in Checkout Settings of the plugin http://prntscr.com/e2oarg Then you will get address form on the checkout page.

    2. You can try to remove this function mprm_checkout_delivery_address and add your own to add more fields.

    Best regards,
    John

    #464456
    Martin Dvořák
    Guest

    Yes, I have the shipping enabled but still the address fields are not displayed at the checkout page.
    I would like to use the built in address fields, but I cannot, as they are not being displayed for the customer at the checkout.

    See the screens:

    https://ibin.co/3AsOI8y0AhY9.png
    https://ibin.co/3AsORVgzErvV.png

    #464678
    J. Davis
    Keymaster

    Hi Martin,

    There is address field at your screenshot. Please take a look http://prntscr.com/e35zu3

    Best regards,
    John

    #471873
    Martin Dvořák
    Guest

    Yes, but this address field is not the address in the plugin, because in the code you have separate variables for street, town, postcode etc.

    The address field in the screenshot is in this code:
    checkout-restaurant-menu-functions.php

    /**
    * Delivery address default
    */
    function mprm_checkout_delivery_address() {
    if (mprm_get_option(‘shipping_address’)): ?>
    <p id=”mprm-address-wrap”>
    <label for=”shipping_address” class=”mprm-label”>
    <?php _e(‘Adresa doručení:’, ‘mp-restaurant-menu’); ?>
    </label>
    <input type=”text” name=”shipping_address” value=”” class=”medium-text” placeholder=”<?php _e(‘Zadejte adresu doručení’, ‘mp-restaurant-menu’); ?>”/>
    </p>
    <?php endif;
    }

    While the other separated address fields are e.g. here:
    order-billing-address.php

    <p>
    <strong class=”order-data-address-line”><?php _e(‘Street Address Line 1:’, ‘mp-restaurant-menu’); ?><br/>
    <input type=”text” name=”mprm-order-address[0][line1]” value=”<?php echo esc_attr($address[‘line1’]); ?>” class=”medium-text”/>
    </p>
    <p>
    <strong class=”order-data-address-line”><?php _e(‘Street Address Line 2:’, ‘mp-restaurant-menu’); ?><br/>
    <input type=”text” name=”mprm-order-address[0][line2]” value=”<?php echo esc_attr($address[‘line2’]); ?>” class=”medium-text”/>
    </p>

    </div>
    <div class=”mprm-columns mprm-four”>
    <p>
    <strong class=”order-data-address-line”><?php echo _x(‘City:’, ‘Address City’, ‘mp-restaurant-menu’); ?><br/>
    <input type=”text” name=”mprm-order-address[0][city]” value=”<?php echo esc_attr($address[‘city’]); ?>” class=”medium-text”/>

    </p>
    <p>
    <strong class=”order-data-address-line”><?php echo _x(‘Zip / Postal Code:’, ‘Zip / Postal code of address’, ‘mp-restaurant-menu’); ?><br/>
    <input type=”text” name=”mprm-order-address[0][zip]” value=”<?php echo esc_attr($address[‘zip’]); ?>” class=”medium-text”/>

    </p>

    The address field in the screenshot is not affected by the settings from the first screenshot and also this address does not appear in the order confirmation email.

    See the screenshot of one of the confirmation emails:
    http://prnt.sc/e6vudg

    It’s the last line.

    Martin

    #472028
    J. Davis
    Keymaster

    Hello Martin,

    Make sure youadded template tag {billing_address} at Emails>Purchase Receipt> http://prntscr.com/e6kth9

    Best regards,
    John

    #511792
    Ian Charles
    Guest

    Strangely I’m having the same issue.

    I have added the line: – Send to: {billing_address} to the new sales notification email yet the delivery address does not show in the email I get.

    Any advice would be most welcome.

    Thanks,

    Ian

    #513469
    J. Davis
    Keymaster

    Hi Ian,

    Could you email us describing your issue more detailed?

    Best regards,
    John

    #513471
    J. Davis
    Keymaster

    Hi,

    I’m sorry it will be available with new version of plugin. We’ll notify you when its is available.

    Best regards,
    John

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.