New answers tagged

1

You can use https://packagist.org/ to allow your module to install by composer. It is pretty easy you can read more using this link https://packagist.org/about If it will help us then you can up vote and accept this as useful.


0

You can use a backend_model in your config.xml node: <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd"> <default> <your> <path> <field backend_model="Vendor\Module\Model\Config&...


0

Magento 2 Dynamic Sale Category extension allows you to display all the products set up for sale using special prices automatically under offers or sale category of your site without manual intervention. It supports pagination and layered navigation with filters just like another normal category. Display all the products set up for sale using special prices ...


2

Yes, You can use the npm package in your Magento custom module. I used @imgix/js-core. It is a JavaScript library for generating image URLs with srcset. I followed the below steps for using the @imgix/js-core npm package in my custom module. Step1: Go to your web directory in your module. app/code/Vendor/Module/view/adminhtml/web Step2: Run the below ...


0

You must create dataprovider like that app/code/[Namespace]/[Module]/Model/DataProvider with code <?php namespace [Namespace]\[Module]\Model; class DataProvider extends \Magento\Framework\View\Element\UiComponent\DataProvider\DataProvider { public function getData() { return []; } } and use it in your ui_component layout app/...


0

step 1 (install lib) composer require setasign/fpdf:1.8.1 && composer require setasign/fpdi:2.0 && composer require knplabs/knp-snappy && composer require h4cc/wkhtmltopdf-amd64 "0.12.4" step 2 <?php namespace vendor\module\Helper\DPD; require_once(BP.'/vendor/setasign/fpdf/fpdf.php'); require_once(BP.'/vendor/setasign/...


0

The problem is due to the ordering of repositories - we're using satis to as a private package server. For some reason, satis says that the dev-master branch is available, but wouldn't correctly provide it (it works for tags, though). By changing the file so that the git repo is listed ahead of satis, it works: { "repositories": [ { ...


0

Example\Track\Controller\Order\Index.php <?php /** * Copyright © magento2. */ namespace Example\Track\Controller\Order; use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface; use Magento\Sales\Controller\OrderInterface; use Magento\Framework\App\Action\Context; use Magento\Framework\View\Result\PageFactory; class Index ...


Top 50 recent answers are included