WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • How to add image upload in order form?
  • Print
Pages: [1]   Go Down

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

Offline zirzy

  • Posts: 178
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
Logged

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
Logged

Offline zirzy

  • Posts: 178
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
Logged

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
Logged

Offline zirzy

  • Posts: 178
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 
Logged

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
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • How to add image upload in order form?
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2