What's happen if you want add custom data with specific pyament method , by example add custom input text which will show on check of payment method , ok let's start.
First create your schema file inside Ibnab/Additional/Setup/InstallSchema.php :
Inside views folder you will find folder layouts contain 2 floder of themes by example if you go to vendor/oro/commerce/src/Oro/Bundle/CMSBundle/Resources/views/layouts , you will find 2 theme blank and default as basic theme .
Inside everyone of it we have folders which named by (oro_frontend_root = home page or global declaration) (oro_cms_frontend_page_view = cms page view ) .
OroCommerce give you the ability to customize your header by combining many components and bundles like layout service management and other , first go to file : vendor/oro/customer-portal/src/Oro/Bundle/CommerceMenuBundle/Resources/views/layouts/blank/page/top_nav.yml
you need observe that is inside blank basic theme (the big parent of default and custom and other theme) the content is :
The checkout page contain standard fields , in many cases the site owner needs to hide some fields for specific reason , the system give you the ability to hide some fields directy from xml , you can add checkout_index_index.xml (copy same structure or just what you want from this path vendor/magento/module-checkout/view/frontend/layout/checkout_index_index.xml) to you theme or your custom extension and start hiding some fields .Read more
Magento 2 have a good system for organize the blocks by layouts, In Magento 2 that is more flexible . You can play by many ways .
We want show how the developers can play with all the puzzle (layout block template and structure), the framwork Magento 2 have a component called View ("vendor/magento/framework/View"), it have almost all needed class for manage the frontend view in back and font office ,
you can inject the class Magento\Framework\View\Layout by factory for get instance of layout class . let's imagine your contruct in plugin by example is
Magento choose to use some interaction client as service (click) , for example when you try to place order you get url like rest//V1/guest-carts/:cartId/payment-information , ok but how you can see where is point this url ? Is a module controller action url ? Wrong is a service .Read more
Orocommerce is new b2b ecommerce system , this system will need customizable themes , and the frontend developer need know how use color picker field for give the ability to user for customizing the theme from admin panel ,
Ok orocommerce is built on top of oro platform , and the platform propose you a lot of form type , you can find all in path vendor/oro/platform/src/Oro/Bundle/FormBundle/Form/Type/ .
One of them is OroSimpleColorPickerType and OroSimpleColorChoiceType . Let's try using simple example of how you can use OroSimpleColorPickerType .
Infos About Payment Expressions
For flexible display and use of payment methods or shipping methods , you need explore and know how the rule expressions is working ,
rules expression give you the ability to change the behavoir of payment methods , yeah : “ for example the Check/Money Order it will be availible just with some conditions and other not , if the customer have less than 4 items don't give him the option of Check/Money Order“ , with expression you can find solutions for complex cases “ what's about b2b ? ” ,
Orocommerce give you this big tool , for example in other system like magento you don't have by default “ you need add an extenssion for that like owebia shipping , but is just related to expression for shipping !!!! ”
The search use 3 request name in magento 2 :
'quick_search_container' when you search from the small field text in the top
'advanced_search_container' when you use the advanced search page
'catalog_view_container' when you entre to category page or use filter in category page it's work by default
inside class Magento\Framework\Search\Search the function search(SearchCriteriaInterface $searchCriteria) build a request with class Magento\Framework\Search\Request\Builder; it's start by puched in object $this->requestBuilder the query name example 'quick_search_container'Read more
For customize behavior of search you need know the mechanism of how Magento 2 stock and collect infos and how used it, Now in Magento 2 we have in database catalogsearch_fulltext_scope1 and catalogsearch_fulltext_scope2 related to how many scope you have let's imagine you have 2 store one for English and other for Arabic , the system create 2 scope . And stock the map of search inside this tables , bot how ? Yeah let's go and see the structure of table ,this table have 3columns entity_id and atrribute_id and data_indexRead more
In WooCommerce the rest api is used to get data from orders , products , customers..
but how you can customize or add add other api route to get (fields and value) , ok it's exist many techniques
first work directly on the core for example inside