September 2018
Beginner to intermediate
218 pages
4h 27m
English
Our previous chapter touched upon config providers and the window.checkoutConfig object; a mechanism by which we can push our server-side data to our storefront when a page loads. The section mechanism allows us to push data to a browser page upon any named HTTP POST request.
Let's take a quick look at the <MAGENTO_DIR>/module-review/etc/frontend/sections.xml file:
<action name="review/product/post"> <section name="review"/></action>
The definition provided here is to be interpreted as: "any storefront HTTP POST review/product/post request is to trigger a review section load," where review section load means Magento triggering an additional AJAX request following the completion of an observed HTTP POST. ...
Read now
Unlock full access