Categories
CMS Magento Mastering Development

How to set data for my extension attribute Magento 2.3

I can’t set the value for my extension attribute , how to set the value for extension attribute using json array swagger. And i can’t show the data in the order grid. My Module that created for extension attribute Sm\OrderFeedback\etc\di.xml <?xml version=”1.0″?> <!– File: app/code/Sm/OrderFeedback/etc/di.xml –> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:ObjectManager/etc/config.xsd”> <type name=”Magento\Sales\Api\OrderRepositoryInterface”> <plugin name=”sm_orderfeedback_add_order_extension_attribute” type=”Sm\OrderFeedback\Plugin\OrderRepositoryPlugin” /> […]

Categories
CMS Magento Mastering Development

How to add Custom Registeration field from admin

Hi i have a form in admin and i want that when select the type this values should reflect on an appropriate selected form but am not able to do so can anyone guide me here is a screenshot InstallSchema.php <?php /** * @category Eecom * @package Eecom_CustomCustomerAttribute */ namespace Eecom\CustomCustomerAttribute\Setup; use Magento\Framework\Setup\InstallSchemaInterface; use Magento\Framework\Setup\ModuleContextInterface; […]

Categories
CMS Magento Mastering Development

How to add Custom Registeration field from admin

Hi i have a form in admin and i want that when select the type this values should reflect on an appropriate selected form but am not able to do so can anyone guide me here is a screenshot InstallSchema.php <?php /** * @category Eecom * @package Eecom_CustomCustomerAttribute */ namespace Eecom\CustomCustomerAttribute\Setup; use Magento\Framework\Setup\InstallSchemaInterface; use Magento\Framework\Setup\ModuleContextInterface; […]

Categories
CMS Magento Mastering Development

Checkout custom shipping address field – set as required

I have created a custom module that adds a text field in shipping address. It’s workin ok but I’d like to make it required. How can I do that? I tried adding ‘required-entry’ => true at validation parameter, in file Plugin/Checkout/LayoutProcessor.php but it didn’t work. Here are the module files: Mymodules/FieldCheckout/registration.php <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, ‘Mymodules_FieldCheckout’, […]

Categories
CMS Development Magento

Magento2:In admin form after save image couldn’t save into database and directory

enter code`Install schema.php namespace Magik\Helloworld\Setup; use Magento\Framework\Setup\InstallSchemaInterface; use Magento\Framework\Setup\ModuleContextInterface; use Magento\Framework\Setup\SchemaSetupInterface; use Magento\Framework\DB\Ddl\Table; class InstallSchema implements InstallSchemaInterface { public function install(SchemaSetupInterface $setup, ModuleContextInterface $context) { $installer = $setup; $installer->startSetup(); // Get tutorial_simplenews table $tableName = $installer->getTable(‘magik_helloworld_slider’); // Check if the table already exists if ($installer->getConnection()->isTableExists($tableName) != true) { // Create tutorial_simplenews table $table = $installer->getConnection() […]

Categories
CMS Development Magento

Magento2:In admin form after save image couldn’t save into database and directory

enter code`Install schema.php namespace Magik\Helloworld\Setup; use Magento\Framework\Setup\InstallSchemaInterface; use Magento\Framework\Setup\ModuleContextInterface; use Magento\Framework\Setup\SchemaSetupInterface; use Magento\Framework\DB\Ddl\Table; class InstallSchema implements InstallSchemaInterface { public function install(SchemaSetupInterface $setup, ModuleContextInterface $context) { $installer = $setup; $installer->startSetup(); // Get tutorial_simplenews table $tableName = $installer->getTable(‘magik_helloworld_slider’); // Check if the table already exists if ($installer->getConnection()->isTableExists($tableName) != true) { // Create tutorial_simplenews table $table = $installer->getConnection() […]

Categories
CMS Development Magento

Magento2:In admin form after save image couldn’t save into database and directory

enter code`Install schema.php namespace Magik\Helloworld\Setup; use Magento\Framework\Setup\InstallSchemaInterface; use Magento\Framework\Setup\ModuleContextInterface; use Magento\Framework\Setup\SchemaSetupInterface; use Magento\Framework\DB\Ddl\Table; class InstallSchema implements InstallSchemaInterface { public function install(SchemaSetupInterface $setup, ModuleContextInterface $context) { $installer = $setup; $installer->startSetup(); // Get tutorial_simplenews table $tableName = $installer->getTable(‘magik_helloworld_slider’); // Check if the table already exists if ($installer->getConnection()->isTableExists($tableName) != true) { // Create tutorial_simplenews table $table = $installer->getConnection() […]

Categories
CMS Development Magento

Getting custom table data in customer dashboard for specific customer

Block file <?php namespace vendor/module/Block; use Magento\Framework\View\Element\Template; class Postform extends Template { protected $_connection; const CONFIG_CAPTCHA_PUBLIC_KEY = ‘quickrfq/google_options/googlepublickey’; const CONFIG_CAPTCHA_THEME = ‘quickrfq/google_options/theme’; const CONFIG_CAPTCHA_ENABLE = ‘quickrfq/google_options/captchastatus’; const CONFIG_FILE_EXT_UPLOAD = ‘quickrfq/upload/allow’; protected $scopeConfig; public function __construct( \Magento\Framework\View\Element\Template\Context $context, \Magento\Framework\App\ResourceConnection $resource ) { $this->scopeConfig = $context->getScopeConfig(); $this->_connection = $resource->getConnection(); parent::__construct($context); } public function getTableData() { $myTable = […]

Categories
CMS Development Magento

Getting custom table data in customer dashboard for specific customer

Block file <?php namespace vendor/module/Block; use Magento\Framework\View\Element\Template; class Postform extends Template { protected $_connection; const CONFIG_CAPTCHA_PUBLIC_KEY = ‘quickrfq/google_options/googlepublickey’; const CONFIG_CAPTCHA_THEME = ‘quickrfq/google_options/theme’; const CONFIG_CAPTCHA_ENABLE = ‘quickrfq/google_options/captchastatus’; const CONFIG_FILE_EXT_UPLOAD = ‘quickrfq/upload/allow’; protected $scopeConfig; public function __construct( \Magento\Framework\View\Element\Template\Context $context, \Magento\Framework\App\ResourceConnection $resource ) { $this->scopeConfig = $context->getScopeConfig(); $this->_connection = $resource->getConnection(); parent::__construct($context); } public function getTableData() { $myTable = […]

Categories
Development

PySpark sql write dataFrame that has a json column to mysql JDBC

I am trying to bulk write a DataFrame to mysql JDBC database. I am using databricks/pyspark.sql to write the DataFrames to the table. This table has a column that accepts json data(binary data). I did transform the json object to a StructType with following structure: json object structure and conversion to dataframe: schema_dict = {‘fields’: […]