Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@zuk3975
Copy link
Contributor

@zuk3975 zuk3975 commented May 6, 2021

Questions Answers
Description? Adds page reference in devdocs for Sell -> Orders -> Orders -> Add new order page
Fixed ticket?

@zuk3975 zuk3975 changed the title [WIP] Order create page reference Order create page reference May 10, 2021
Copy link
Contributor

@matks matks left a 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.
Copy link
Contributor

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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`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.

@matks
Copy link
Contributor

matks commented May 10, 2021

Thank you @zuk3975

@matks matks merged commit 0ca0181 into PrestaShop:master May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants