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 7 years, 6 months ago by J. Davis.
- AuthorPosts
- January 27, 2017 at 5:35 am #461322Martin DvořákGuest
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,
MartinJanuary 31, 2017 at 1:53 pm #463759J. DavisKeymasterHi 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 functionmprm_checkout_delivery_address
and add your own to add more fields.
Best regards,
JohnFebruary 1, 2017 at 9:06 am #464456Martin DvořákGuestYes, 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.pngFebruary 1, 2017 at 3:25 pm #464678J. DavisKeymasterHi Martin,
There is address field at your screenshot. Please take a look http://prntscr.com/e35zu3
Best regards,
JohnFebruary 10, 2017 at 9:39 am #471873Martin DvořákGuestYes, 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/e6vudgIt’s the last line.
Martin
February 10, 2017 at 2:37 pm #472028J. DavisKeymasterHello Martin,
Make sure youadded template tag {billing_address} at Emails>Purchase Receipt> http://prntscr.com/e6kth9
Best regards,
JohnApril 25, 2017 at 5:56 pm #511792Ian CharlesGuestStrangely 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
April 28, 2017 at 4:00 pm #513469J. DavisKeymasterHi Ian,
Could you email us describing your issue more detailed?
Best regards,
JohnApril 28, 2017 at 4:03 pm #513471J. DavisKeymasterHi,
I’m sorry it will be available with new version of plugin. We’ll notify you when its is available.
Best regards,
John - AuthorPosts
- You must be logged in to reply to this topic.