Categories
CMS Magento Mastering Development

How to create functional of selecting products on admin category page

I’m trying to create selecting products on category page, I make: ui_component (category_form.xml) <form xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Ui:etc/ui_configuration.xsd”> <fieldset name=”select_products” sortOrder=”40″> <settings> <collapsible>true</collapsible> <label translate=”true”>Select Products</label> </settings> <container name=”select_products_container” sortOrder=”160″> <htmlContent name=”html_content”> <block name=”gallery” class=”Vendor\Module\Block\Adminhtml\Category\AddProducts”/> </htmlContent> </container> </fieldset> </form> AddProduct class: class AddProducts extends \Magento\Backend\Block\Template { /** * Block template * * @var string */ protected $_template […]

Categories
CMS Magento Mastering Development

when iam paasing arugment to helper from controller iam getting error magento 2.3

Iam Getting the below error Recoverable Error: Object of class Magento\Framework\App\ObjectManager could not be converted to string in /var/www/html/development/amt/app/code/vendor/RequestForQuote/Controller/Index/Index.php on line 153 {“exception”:”[object] (Exception(code: 0): Recoverable Error: Object of class Magento\Framework\App\ObjectManager could not be converted to string in /var/www/html/development/amt/app/code/vendor/RequestForQuote/Controller/Index/Index.php on line 153 at /var/www/html/development/amt/vendor/magento/framework/App/ErrorHandler.php:61)”} [] My Controller : <?php namespace Sm\RequestForQuote\Controller\Index; use \Magento\Framework\App\Action\Context; use \Magento\Framework\View\Result\PageFactory; […]

Categories
CMS Magento Mastering Development

when iam paasing arugment to helper from controller iam getting error magento 2.3

Iam Getting the below error Recoverable Error: Object of class Magento\Framework\App\ObjectManager could not be converted to string in /var/www/html/development/amt/app/code/vendor/RequestForQuote/Controller/Index/Index.php on line 153 {“exception”:”[object] (Exception(code: 0): Recoverable Error: Object of class Magento\Framework\App\ObjectManager could not be converted to string in /var/www/html/development/amt/app/code/vendor/RequestForQuote/Controller/Index/Index.php on line 153 at /var/www/html/development/amt/vendor/magento/framework/App/ErrorHandler.php:61)”} [] My Controller : namespace Sm\RequestForQuote\Controller\Index; use \Magento\Framework\App\Action\Context; use \Magento\Framework\View\Result\PageFactory; use […]

Categories
CMS Magento Mastering Development

Product grid checkbox input at sales rule form Magento 2 not working

I’m using Magento 2.3.4 and want to add product grid with checkbox as an input for sales rule form (shopping cart price rule), i follow the instruction to add product grid input from here but when I print the $_POST value the input data does not exist. Here’s my code: app/code/Becom/Freegift/Block/Adminhtml/Products/Edit/Tab/Product.php namespace Becom\Freegift\Block\Adminhtml\Products\Edit\Tab; use Magento\Backend\Block\Widget\Grid; […]

Categories
CMS Magento Mastering Development

Product grid checkbox input at sales rule form Magento 2 not working

I’m using Magento 2.3.4 and want to add product grid with checkbox as an input for sales rule form (shopping cart price rule), i follow the instruction to add product grid input from here but when I print the $_POST value the input data does not exist. Here’s my code: app/code/Becom/Freegift/Block/Adminhtml/Products/Edit/Tab/Product.php namespace Becom\Freegift\Block\Adminhtml\Products\Edit\Tab; use Magento\Backend\Block\Widget\Grid; […]

Categories
CMS Development Magento

My layout handle is not working in email template magento 2.3

I had created the custom email template in that i declared the layout handle email template it is not working what can i do for it. I passed the data from controller but the email is not coming with the data. I create basic module VendorName/ModuleName inside that registration.php,module.xml,route.xml etc. Custom Email Template app\code\VendorName\RequestForQuote\etc\email_templates.xml <?xml […]

Categories
CMS Development Magento

Problem Email without content Magento 2.2.9

Cdr/Logistique/etc/adminhtml/system.xml <system> <tab id=”CDR” translate=”label” sortOrder=”250″> <label>CDR</label> </tab> <section id=”config_logistique” translate=”label” sortOrder=”130″ showInDefault=”1″ showInWebsite=”1″ showInStore=”1″> <class>cdr-logistique</class> <label>Logistique</label> <tab>CDR</tab> <resource>Cdr_Logistique::config</resource> <group id=”general” translate=”label” sortOrder=”10″ showInDefault=”1″ showInWebsite=”1″ showInStore=”1″> <label>General</label> <field id=”enable” translate=”label” type=”select” sortOrder=”1″ showInDefault=”1″ showInWebsite=”1″ showInStore=”1″> <label>Module Enable</label> <source_model>Magento\Config\Model\Config\Source\Yesno</source_model> </field> </group> <group id=”storefront” translate=”label” sortOrder=”11″ showInDefault=”1″ showInWebsite=”1″ showInStore=”1″> <label>Logistique</label> <field id=”COD_ACT” translate=”label” type=”text” sortOrder=”1″ showInDefault=”1″ showInWebsite=”1″ […]

Categories
CMS Development Magento

Magento 2 – Error in overriding constructor of Magento\Ups\Model\Carrier

Exception #0 (Magento\Framework\Exception\RuntimeException): Type Error occurred when creating object: Namespace\Module\Model\Ups\Carrier Namespace\Module\Model\Ups\Carrier.php <?php namespace Namespace\Module\Model\Ups; use Magento\Quote\Model\Quote\Address\RateRequest; use Magento\Framework\Xml\Security; use Magento\Framework\HTTP\AsyncClientInterface; use Magento\Framework\HTTP\ClientFactory; use Magento\Shipping\Model\Rate\Result\ProxyDeferredFactory; use Magento\Shipping\Model\Carrier\CarrierInterface; use Magento\Ups\Helper\Config; class Carrier extends \Magento\Ups\Model\Carrier { protected $_localeFormat; protected $configHelper; private $asyncHttpClient; private $deferredProxyFactory; public function __construct( \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Quote\Model\Quote\Address\RateResult\ErrorFactory $rateErrorFactory, \Psr\Log\LoggerInterface $logger, Security $xmlSecurity, \Magento\Shipping\Model\Simplexml\ElementFactory $xmlElFactory, \Magento\Shipping\Model\Rate\ResultFactory […]