Author Topic: How to add image upload in order form?  (Read 1754 times)

Offline zirzy

  • Posts: 171
How to add image upload in order form?
« 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

freeSbee

  • Guest
Re: How to add image upload in order form?
« Reply #1 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

Offline zirzy

  • Posts: 171
Re: How to add image upload in order form?
« Reply #2 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

freeSbee

  • Guest
Re: How to add image upload in order form?
« Reply #3 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

Offline zirzy

  • Posts: 171
Re: How to add image upload in order form?
« Reply #4 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 

freeSbee

  • Guest
Re: How to add image upload in order form?
« Reply #5 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