3 edited body
source | link

Based on this post I could pass some data to the window.checkoutConfig, this is great.

My problem is, that my data is dinamycdynamic and my plugin runs later, when magento collects the paymentmethodspayment methods. I want to add some extra information (shipping date) to my template file.

How can I do this, how can I access data from my plugin?

In my template file:

 <div class="payment-method-title field choice">
    <input type="radio"
           name="payment[method]"
           class="radio"
           data-bind="attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()"/>
    <label data-bind="attr: {'for': getCode()}" class="label"><span data-bind="text: getTitle()"></span></label>
     <!-- 
     I want to put some info here from window.checkoutConfig 
     I just do not know how to pass the data after my plugins run.
     -->

</div>

Based on this post I could pass some data to the window.checkoutConfig, this is great.

My problem is, that my data is dinamyc and my plugin runs later, when magento collects the paymentmethods. I want to add some extra information (shipping date) to my template file.

How can I do this, how can I access data from my plugin?

In my template file:

 <div class="payment-method-title field choice">
    <input type="radio"
           name="payment[method]"
           class="radio"
           data-bind="attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()"/>
    <label data-bind="attr: {'for': getCode()}" class="label"><span data-bind="text: getTitle()"></span></label>
     <!-- 
     I want to put some info here from window.checkoutConfig 
     I just do not know how to pass the data after my plugins run.
     -->

</div>

Based on this post I could pass some data to the window.checkoutConfig, this is great.

My problem is, that my data is dynamic and my plugin runs later when magento collects the payment methods. I want to add some extra information (shipping date) to my template file.

How can I do this, how can I access data from my plugin?

In my template file:

 <div class="payment-method-title field choice">
    <input type="radio"
           name="payment[method]"
           class="radio"
           data-bind="attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()"/>
    <label data-bind="attr: {'for': getCode()}" class="label"><span data-bind="text: getTitle()"></span></label>
     <!-- 
     I want to put some info here from window.checkoutConfig 
     I just do not know how to pass the data after my plugins run.
     -->

</div>
2 spelling mistake
| link

Pass data from plugin to forntendfrontend

1
source | link

Pass data from plugin to forntend

Based on this post I could pass some data to the window.checkoutConfig, this is great.

My problem is, that my data is dinamyc and my plugin runs later, when magento collects the paymentmethods. I want to add some extra information (shipping date) to my template file.

How can I do this, how can I access data from my plugin?

In my template file:

 <div class="payment-method-title field choice">
    <input type="radio"
           name="payment[method]"
           class="radio"
           data-bind="attr: {'id': getCode()}, value: getCode(), checked: isChecked, click: selectPaymentMethod, visible: isRadioButtonVisible()"/>
    <label data-bind="attr: {'for': getCode()}" class="label"><span data-bind="text: getTitle()"></span></label>
     <!-- 
     I want to put some info here from window.checkoutConfig 
     I just do not know how to pass the data after my plugins run.
     -->

</div>