#StackBounty: #magento2 #module #admin #custom How to add phtml file at edit tab of Magento 2 custom module in admin?

Bounty: 50

I have created a custom module. When we click on the admin grid to edit, it opens edit page. In that I am showing tabs. When I click on that tab I need to show template file. If you see the below screen you can get ideaenter image description here

this is my tab file

    <?php
/**
  /**
 * Exinent_Customerids Module 
 *
 * @category    customer
 * @package    
 * @author      pawan
 *
 */

namespace VendorModulenameBlockAdminhtmlCustomeridsEditTab;

/**
 * customerid post edit form main tab
 */
use MagentoBackendBlockTemplateContext;
use MagentoFrameworkRegistry;

class Meat extends MagentoBackendBlockTemplate
{
//    const IBAN_TEMPLATE = 'Exinent_Customerids::test.phtml';
     protected $_template = 'test.phtml';
    protected $_coreRegistry = null;

//   public function __construct(
//        MagentoBackendBlockWidgetContext $context,
//        array $data = []
//    ) {
//        parent::__construct($context, $data);
//    }

//   protected function _prepareLayout()
//    {
//        parent::_prepareLayout();
//        if (!$this->getTemplate()) {
//            $this->setTemplate(static::IBAN_TEMPLATE);
//        }
//
//        return $this;
//    }
}

my layout file

<block class="VendorModulenameBlockAdminhtmlCustomeridsEditTabMeat" name="customerids_customerids_edit_tab_meat"/>
                <arguments>
                    <argument name="config" xsi:type="array">
                        <item name="label" xsi:type="string" translate="true">customerids_customerids_edit_tab_meat</item>
                        <item name="collapsible" xsi:type="boolean">true</item>
                        <item name="opened" xsi:type="boolean">true</item>
                        <item name="sortOrder" xsi:type="string">2</item>
                        <item name="canShow" xsi:type="boolean">true</item>
                        <item name="componentType" xsi:type="string">fieldset</item>
                    </argument>
                </arguments>


Get this bounty!!!

#StackBounty: #magento2 #checkout #shipping-address Home to skip shipping address step during checkout in Magento 2?

Bounty: 50

In case of virtual products, we do not need a shipping step so customer directly goes for payment step during checkout.

I have a simple product and a custom field delivery_type in quote table. delivery_type field’s value is updated on the cart page by selecting what is the delivery type (home/store).

If the value of delivery_type is store shipping step is not required and the customer should see only payment step similar to virtual products at checkout. Can anyone guide me on how I should go about customizing it?

I tried changing the value of field is_virtual to 1 in quote and quote_item table manually but it does not make any difference. I have logged window.checkoutConfig.quoteData.is_virtual which still shows 0.


Get this bounty!!!

#StackBounty: #magento2 #frontend #uicomponent #wishlist Magento2 Wishlist observable subscribe

Bounty: 50

I have this issue with the wishlist observable, I try to use the .subscribe function on it to check when the observable is changed but I keep getting wishlistObs is undefined what am I doing wrong ? this is my latest code, I also tried with this.wishlistObs but is still not working

    define([
    'ko',
    'jquery',
    'uiComponent',
    'Magento_Customer/js/customer-data' ], function (ko, $, Component, customerData) {
    'use strict';
return Component.extend({
            initialize: function (config, node) {
                this._super();

                var wishlistObs = customerData.get('wishlist'),
                    wishlist = wishlistObs(),
                    items = wishlist.items,
                    toWishlist = $('.to-wishlist'),
                    nodeRef = node.getAttribute('data-wishlist-ref'),
                    elmClass = 'wishlist-full';

                wishlistObs.subscribe(function (items) {
                    if (items) {
                        for (var i = 0; i < items.length; i++) {
                            var product = items[i];

                            var existing = $('.to-wishlist[data-wishlist-ref="'+product.product+'"]');

                            if(existing) {
                                if (!existing.hasClass(elmClass)) {
                                    existing.addClass(elmClass);
                                }
                            }

                            if (nodeRef === product.product && node.classList.contains(elmClass) != 'false') {
                                node.className += " " + elmClass;
                            }
                        }
                    }
                })
            }
        }); 
});


Get this bounty!!!