Skip to main content
edited body
Source Link
Amit Bera
  • 77.7k
  • 20
  • 124
  • 239

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>

Pass data from plugin to forntendfrontend

Source Link
vaso123
  • 223
  • 1
  • 11

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>