WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Bakery Shop => Topic started by: zirzy on December 09, 2015, 12:36:46 PM

Title: How to add image upload in order form?
Post by: zirzy on December 09, 2015, 12:36:46 PM
Hi

Is there a way to add an extra field (image upload) to the bakery order form? And if yes, is it possible to add multible (1-5) image upload fields?

- zirzy
Title: Re: How to add image upload in order form?
Post by: freeSbee on December 09, 2015, 02:00:24 PM
Hi zirzy

You might want to add your upload fields near the customer message textarea. The path to the HTML template is:
/bakery/templates/pay_methods/title.htm

The posted customer message var $_POST['cust_msg'] is processed at about line 54 of the file:
/bakery/view_summary.php
Here is the place where you could handle and save the uploaded files or include a php script that takes care of it.

Hope this helps!
Christoph
Title: Re: How to add image upload in order form?
Post by: zirzy on December 17, 2015, 09:32:00 AM
Hi freeSbee,

And thanks for reply. Next question, is customer message included in e-Mail messages (for shop Owner and customer) after order? If Not, how can I do it?

zirzy
Title: Re: How to add image upload in order form?
Post by: freeSbee on December 17, 2015, 11:21:35 AM
Hi zirzy

Customize the template of all emails in the Bakery backend. Placeholders use squared brackets, e.g. [CUST_MSG]. A help page at "Payment Methods Settings" > "E-Mail Settings" > "Help" provides a list of keys to all placeholders.
http://www.bakery-shop.ch/#invoice_and_email_templates

Regards Christoph
Title: Re: How to add image upload in order form?
Post by: zirzy on December 17, 2015, 01:38:49 PM
Ok, that works fine. Thanks.

Why is information in order form (name, address etc.) copied/ shown on the other computers browser too? My friend tested this form on hes computer in different location and he saw my order info in order form.. Wierd.. Newer had this kind of thing on Bakery  :-D

zirzy 
Title: Re: How to add image upload in order form?
Post by: freeSbee on December 17, 2015, 01:51:46 PM
Hi zirzy

For logged in customers Bakery tries to retrieve their address data of a previous order to prepopulat the address fields.
http://www.bakery-shop.ch/#customer_address_form

Regards Christoph