SHARE
TWEET

Untitled

a guest Jun 20th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <type name="MagentoCheckoutModelDefaultConfigProvider">
  2.         <plugin name="add_product_datails"
  3.          type="NameSpaceModuleNamePluginModelDefaultConfigProvider"/>
  4.     </type>
  5.  
  6.  
  7.  public function afterGetConfig(MagentoCheckoutModelDefaultConfigProvider $subject, $result)
  8. {
  9.       $items = $result['totalsData']['items'];
  10.     foreach ($items as $index => $item) {
  11.    $result['quoteItemData'][$index]['your_mesage_key'] = $yourmessage;
  12. }
  13. }
  14.      
  15. <!-- ko if: (getMessage($parents[1]))-->
  16.         <span class="product-view-approveditem-check-icon">
  17.             <span class="label" data-bind="text: getMessage($parents[1]"></span>
  18.         </span>
  19.     <!-- /ko -->
  20.      
  21. getMessage: function (itemId) {
  22.                 var itemsData = window.checkoutConfig.quoteItemData;
  23.                 var msg= '';
  24.                 itemsData.forEach(function(item) {
  25.                     if (item.item_id == itemId['item_id']) {
  26.                         msg= item.is_show_icon;
  27.                     }
  28.                 });
  29.             return msg;
  30.             },
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top