magento2: Magent 2.3.X custom payment method check box missing terms and conditions

I am using a custom payment method when making payment in Magento, but the check boxes for terms and conditions are missing, even if I have enabled it from the backend. The Magento payment method shows the check box, but in the custom payment, it is not displayed.enter the description of the image here

In the default payment method, show
enter the description of the image here

magento2 – Download sample for custom import

Hi, I'm trying to add a custom import functionality for my module, but this error appears:

Fatal error: Uncaught Error: Call to a member function getUrl() on null in E:xampphtdocsm2vendormagentoframeworkViewElementAbstractBlock.php:775 Stack trace: #0 E:xampphtdocsm2vendormagentomodule-backendBlockWidgetTabs.php(141): MagentoFrameworkViewElementAbstractBlock->getUrl() #1 (internal function): MagentoBackendBlockWidgetTabs->addTab('importpincode', 'netsmartz_pinco...') #2 E:xampphtdocsm2vendormagentoframeworkViewLayoutGeneratorBlock.php(298): call_user_func_array(Array, Array) #3 E:xampphtdocsm2vendormagentoframeworkViewLayoutGeneratorBlock.php(169): MagentoFrameworkViewLayoutGeneratorBlock->generateAction(Object(NetsmartzPincodeCheckerBlockAdminhtmlImportpincodeEditTabs), 'addTab', Array) #4 E:xampphtdocsm2vendormagentoframeworkViewLayoutGeneratorPool.php(81): MagentoFrameworkViewLayoutGeneratorBlock->process(Object(MagentoFrameworkViewLayoutReaderContext), Object(MagentoFrameworkViewLayoutGeneratorContext)) #5 E:xampphtdocsm2ve in E:xampphtdocsm2vendormagentoframeworkViewElementAbstractBlock.php on line 775

Here is my code: –

_assetRepo = $assetRepo;
    }
    /**
     * Prepare form
     *
     * @return $this
     */
    protected function _prepareForm()

    {

        $path = $this->_assetRepo->getUrl("vendor_module::importsample/sample.csv");

        $form = $this->_formFactory->create();
        $objectManager = MagentoFrameworkAppObjectManager::getInstance();
        $storemanager = $objectManager->create('MagentoStoreModelStoreManagerInterface');

        $fieldset = $form->addFieldset(
            'base_fieldset',
            (
                'legend' => __('Import Pincodes'),
                'class'  => 'fieldset-wide'
            )
        );

        $importdata_script  = $fieldset->addField(
            'file',
            'file',
            (
                'name'  => 'file',
                'label' => __('Upload File'),
                'title' => __('Upload File'),
                'required' => true,
            )
        );

        $importdata_script->setAfterElementHtml("
        Download Sample File
        ");

        $this->setForm($form);
        return parent::_prepareForm();
    }

    /**
     * Prepare label for tab
     *
     * @return string
     */
    public function getTabLabel()
    {
        return __('Import Pincodes');
    }

    /**
     * Prepare title for tab
     *
     * @return string
     */
    public function getTabTitle()
    {
        return $this->getTabLabel();
    }

    /**
     * Can show tab in tabs
     *
     * @return boolean
     */
    public function canShowTab()
    {
        return true;
    }

    /**
     * Tab is hidden
     *
     * @return boolean
     */
    public function isHidden()
    {
        return false;
    }
}

any help on this will be great

Magento2: Remove the product from the cart after 10 minutes

I want to increase the guest cart session. Please let me know how it is possible.

magento2 – Product page not found after the migration from Magento 1.9.3.8 to Magento 2.3.4

After successfully migrating from Magento 1.9.3.8 to Magento 2.3.4, I tried to verify the category page, first it doesn't show any products, then I deactivated the MSI modules and then it shows the products in the category. After that I tried to click on one of the products on the category page, but it shows:

enter the description of the image here

I already tried truncating the following tables, then ran reindex:

report_event
session
customer_visitor
catalog_url_rewrite_product_category

but nothing works, I already tried to disable the url category and then reindex, but nothing works.

Here is my view of database tables:

enter the description of the image here

magento2 – Question going from Magento 1.x to 2.x: what to do with the extensions

I move from Magento 1.x to 2.x, I have many custom build extensions that my business depends on; Without them I can't work …

obviously, when we are going to migrate to 2.x, these extensions will stop working …

Is there any possibility to fix these extensions with little recoding? Or should they be completely rewritten to work?

Is there a third-party support that makes these extensions work in the new Magento?

please help

magento2 – Resizing images in Magento 2 does not work properly

The images of my products have a size of 600 x 600 px. In the view.xml file I have configured:


      300
      366

But the images I get on the category page are 300 x 300 px, not 300 x 366 px.
Any help would be appreciated!

magento2: define an event in select with event observer

My template is in src/app/design/frontend/MySite/default/Magento_Checkout/templates/cart/item/default.phtml

There is a selection and in this selection I am adding an event.