-
Notifications
You must be signed in to change notification settings - Fork 536
Order create page reference #981
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
matks
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love it! added some suggestions but it can be merged as it's already great
|
|
||
| # Add new order | ||
|
|
||
| Page can be reached by going to `Sell -> Orders -> Orders -> Add new order`. It allows to create a new order for a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Page can be reached by going to `Sell -> Orders -> Orders -> Add new order`. It allows to create a new order for a | |
| Page can be reached by going to `Sell -> Orders -> Orders -> Add new order`. It allows Back Office user to create a new order for a |
|
|
||
| ## Page specifics | ||
|
|
||
| This page is very specific compared to other BO pages, it has kind of a flow - each block depends on previous block selections, that's why **most of it depends on javascript**. Unfortunately it also has limited extension capabilities - there are no common services as form or grid builders, therefore no hooks that could help module developers to modify the display. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
| Use the search to find desired customer by `email` or `name` or `create a new one` by pressing `Add new customer`. Customer search is performed using `ajax` by calling [CustomerController::searchAction](https://github.com/PrestaShop/PrestaShop/blob/develop/src/PrestaShopBundle/Controller/Admin/Sell/Customer/CustomerController.php). Javascript code can be found in [customer-manager.js](https://github.com/PrestaShop/PrestaShop/blob/develop/admin-dev/themes/new-theme/js/pages/order/create/customer-manager.js) | ||
|
|
||
| {{% notice %}} | ||
| `Add new customer` button opens the same form from `Customers -> Customers -> Add new customer` loaded in an iframe. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| `Add new customer` button opens the same form from `Customers -> Customers -> Add new customer` loaded in an iframe. | |
| `Add new customer` button opens the same form from `Customers -> Customers -> Add new customer` loaded in an iframe. The iframe content is rendered using the Lite Display mode of the Back Office. |
|
Thank you @zuk3975 |
Sell -> Orders -> Orders -> Add new orderpage