Jump to content

Setting up a warehouse


Recommended Posts

  • Hi,
  • I am trying to set up a warehouse. Upon clicking Stock - Warehouses - Add new
  • and adding all relevant details i continue to get the following error :
  • The fields are pretty bog standard without special characters etc.
  • could someone pls help ..absolutely new to prestashop
  • ***************************
  • 2 errors
    • mobile phone is required.
    • The address is not correct. Check if all required fields are filled.

    [*]****************************

    [*]-----controller=adminwarehouses&submitAddwarehouse=1 (is the url)

 

 

Server information

 

Server information: Linux #1 SMP Tue Jan 31 15:43:27 EST 2012 x86_64

Server software version: Apache

PHP version: 5.2.17

Memory limit: 128M

Max execution time: 30

Database information

 

MySQL version: 5.5.28-log

MySQL engine: InnoDB

Tables prefix: psty_

Store information

 

Prestashop version: 1.5.2.0

Shop URL:

Current theme in use: PRS040088

Mail configuration

 

Mail method: You are using your own SMTP parameters.

SMTP server:

SMTP user: Defined

SMTP password: Defined

Encryption: ssl

Port: 465

Your information

 

Your web browser: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11

Edited by ravibluesky (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 2 months later...

I was found a quick fix for that error in Prestashop 1.5.3.1, open the file: AdminAddressesController.php you could find it at: /controllers/admin/

 

seek for this code:

array(
 'type' => 'text',
 'label' => $this->l('Home phone'),
 'name' => 'phone',
 'size' => 33,
 'required' => false,
),
array(
 'type' => 'textarea',
 'label' => $this->l('Other'),
 'name' => 'other',
 'cols' => 36,
 'rows' => 4,
 'required' => false,
 'hint' => $this->l('Forbidden characters:').' <>;=#{}<span class="hint-pointer"> </span>'
),

 

and change it to this (phone field between):

array(
 'type' => 'text',
 'label' => $this->l('Home phone'),
 'name' => 'phone',
 'size' => 33,
 'required' => false,
),
array(
'type' => 'text',
'label' => $this->l('Mobile phone'),
'name' => 'phone_mobile',
'size' => 33,
'required' => false,
'desc' => sprintf($this->l('You must register at least one phone number %s'), '<sup>*</sup>')
),
array(
 'type' => 'textarea',
 'label' => $this->l('Other'),
 'name' => 'other',
 'cols' => 36,
 'rows' => 4,
 'required' => false,
 'hint' => $this->l('Forbidden characters:').' <>;=#{}<span class="hint-pointer"> </span>'
),

Edited by jonfres (see edit history)
Link to comment
Share on other sites

  • 3 months later...

To solve your problem ravibluesky you must edit the file AdminWarehousesController.php on /controllers/admin/

 

and add the lines:

 

array(

'type' => 'text',

'label' => $this->l('Mobile phone'),

'name' => 'phone_mobile',

'size' => 33,

'required' => false,

'desc' => sprintf($this->l('You must register at least one phone number %s'), '<sup>*</sup>')

),

 

just below the code

 

array(

'type' => 'text',

'label' => $this->l('Phone:'),

'name' => 'phone',

'size' => 15,

'maxlength' => 16,

'desc' => $this->l('Phone number for this warehouse')

),

 

 

With this code i fixed the same error as you have.

 

Cya.

 

Prestashop long life

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...