2

When ko render specified template it using current context, which is item in your case. If current item has no property custom_variable_data you will se an error like that one: If you want to call a parent property (minicart property) you can access it using the $parent context like this: <span data-bind="html: $parent.custom_variable_data"></span&...


1

both the following answer you give are good: <dt class="label" data-bind="i18n: option.label"></dt> <dt class="label"><!-- ko i18n: option.label --><!-- /ko --></dt> The i18n attribute in Magento javascript need a string. So the important point to verify is that the value given by option.label is a string and that string ...


1

The data you are looking for 'QTY' on Checkout page. That comes by knockoutJS in Magento 2. Knockout basically bind data to HTML template and serves dynamic content. If you can check "Application" Tab (F12), In Local Storage > Mage-Cache-Storage > Cart (Section Data) driven from Knockout. You can see QTY, Options and all other parameters there. If ...


1

This will be your phtml. <div data-bind='component: "snapPay-integration"'></div> This will be your js binding. var requestid = 234234; ko.components.register('snapPay-integration', { template: '<iframe id="tokenFrame" width="100%" height="40" name="tokenFrame" src="https://stage.snappayglobal.com/Interop/InteropCCAjaxTokenizer/...


Only top voted, non community-wiki answers of a minimum length are eligible