Timeline for What does the Magento 2 ko scope: 'minicart_content' reference?
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 29, 2016 at 12:06 | comment | added | Aaron Allen |
I don't actually have the code you posted in my installation (perhaps you're using an older version?) but in my installation it works like this: the subtotal <span> comes from Magento_Directory/Model/Currency.php in the formatPrecision method. The html string returned by this method ends up in the cart section of the CustomerData object (Magento_Customer/view/frontend/web/js/customer-data.js ) and is printed out in Magento_Checkout/view/frontend/web/template/minicart/subtotal/totals.html .
|
|
Dec 28, 2016 at 14:15 | vote | accept | Jason Horvath | ||
Dec 28, 2016 at 14:14 | comment | added | Jason Horvath |
Thank you, would the <span/> tag encapsulating the subtotal in the output happen to be coming from Magento_Checkout/view/base/web/js/price-box.js ?
|
|
Dec 28, 2016 at 0:11 | history | answered | Aaron Allen | CC BY-SA 3.0 |