SHARE
TWEET

Untitled

a guest Jun 18th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.     $objectManager = MagentoFrameworkAppObjectManager::getInstance();
  3.     $product = $objectManager->get('MagentoFrameworkRegistry')->registry('current_product');//get current product
  4. ?>
  5.  
  6. <!--get product sku-->      <?php $current_sku = $product->getSku(); ?>            
  7. <div class="field required">
  8.                     <label class="label" for="amfaq-title">
  9.                         <?= $block->escapeHtml(__('Your question:')); ?>
  10.                     </label>
  11.                     <div class="control">
  12.                         <textarea name="title"
  13.                                   id="amfaq-title"
  14.                                   title="<?= $block->escapeHtml(__('Question')); ?>"
  15.                                   class="required-entry input-text"
  16.                                   cols="5"
  17.                                   rows="3"
  18.                                   data-bind="value: title"
  19.                                   placeholder="<?= $block->escapeHtml(__('Type your question here ...')) .'('. $current_sku .')' ;?>"></textarea>
  20.                     </div>
  21.                 </div>
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