Birjitsinh Zala
  • Member for 4 years, 9 months
  • Last seen more than a week ago
  • Ahmedabad, Gujarat, India
How to create multiple customer attributes in magento 2?
Accepted answer
5 votes

Hii @Devidas Please try this code $setup->startSetup(); $customerSetup = $this->customerSetupFactory->create(['setup' => $setup]); $attributesInfo = [ 'vat_id' => [ ...

View answer
Magento 2 can I have 2 front names for a module?
Accepted answer
5 votes

Define two routes in routes.xml <route frontName="name1" id="name1"> <module name="Vendor_Module"/> </route> <route frontName="name2" id="name2"> ...

View answer
Magento 2: How to remove input option from grid filter
Accepted answer
3 votes

Please remove filter tag from your ui_component grid from your column. <item name="filter" xsi:type="string">text</item> remove this tag For example: OLDER: <column name="...

View answer
how to get main product image url in phtml file?
3 votes

use Magento\Catalog\Helper\Image; /** * Catalog Image Helper * * @var Image */ protected $imageHelper; public function __construct( Image $...

View answer
how to set custom template in custom block file in magento 2
3 votes

You can set template by call in your xml like: <block class="Magedelight\EWallet\Block\Customer\Addmoney" name="customer_add_money" as="customer.add.money" template="Magedelight_EWallet::customer/...

View answer
Front controller reached 100 router match iterations
3 votes

This issue come because Mach condition check infinite the solution is public function match(\Magento\Framework\App\RequestInterface $request) { if($request->getModuleName() == 'search'){ ...

View answer
Magento 2: Plugin is not working on server while it's working fine on localhost
Accepted answer
2 votes

Why are you make plugin for observer? You can use plugin for this : vendor/magento/module-sales/Model/Order/Email/Sender/OrderSender.php OR Verify the status of order!!! If invoice automatically ...

View answer
Get customer name from customer id using object manager
2 votes

/** * @var \Magento\Customer\Model\Customer $customers */ protected $_customers; public function __construct(\Magento\Customer\Model\Customer $customers) { $this->_customers = $...

View answer
How to add a date picker recursively in magento2 admin form
Accepted answer
2 votes

<script> require([ "jquery", "mage/calendar" ], function($){ $('body').on('focus',".field", function(){ $(".field").calendar({ changeYear:...

View answer
Payment method are not shown in admin magento 2
Accepted answer
2 votes

Please remove space before the xml TAG. check below code. <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:...

View answer
upgrade magento 2.1.13 to 2.3.0
2 votes

Make you sure your php version compatible with 2.3.0 then you will move the next step. https://devdocs.magento.com/guides/v2.3/install-gde/system-requirements-tech.html

View answer
How to call static block into a phtml file Magento 2
2 votes

You can try this: <?php echo $block->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('block_identifier')->toHtml();?> This is another option: {{block class="...

View answer
How to get Simple product Customizable Options in a phtml file
2 votes

/** @var CheckoutSession */ protected $checkoutSession; /** * @param CheckoutSession $checkoutSession */ public function __construct(Magento\Checkout\Model\Session $checkoutSession) { $this->...

View answer
Magento 2 : Dynamic PDF and image attachement with order email
2 votes

You can add attechement by preference also then add to etc/di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:...

View answer
Get current category name for new product and best seller widget
2 votes

Try This <?php $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $category = $objectManager->get('Magento\Framework\Registry')->registry('current_category');//...

View answer
Magento 2 - Custom Attribute Filter - addFieldToFilter
1 votes

Hi @chirs use below code for the filter. use addAttributeToFilter Instead of addFieldToFilter $collection->addAttributeToFilter('engine_store_show_on_homepage', ['eq' => 1]);

View answer
Magento 2: Custom success page
1 votes

Modify the below file in your module app/code/Vendor/Module/View/frontend/layout/checkout_onepage_success.xml <?xml version="1.0"?> <body> <referenceContainer name="content"> ...

View answer
Add custom discount and show it on Cart and checkout in Magento 2
1 votes

Try with sales.xml in you module etc folder <?xml version="1.0"?> <!-- /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ --> <config ...

View answer
How to make the Video Autoplay in cms block? Magento 2.2
Accepted answer
1 votes

If you want to add in cms block try below example: <iframe width="420" height="315" src="http://www.youtube.com/embed/ oHg5SJYRHA0?autoplay=1" frameborder="0" allowfullscreen></iframe>

View answer
Magento 2.3 - How to send associative as a response using custom rest API?
1 votes

First create this interface in your app/code/Vendor/Module/Api/Data /** * Interface which represents associative array item. */ interface AssociativeArrayItemInterface { /** * Get ...

View answer
Facing issue while using php bin/magento sampledata:deploy
1 votes

Please try below step one by one: 1. Make sure you have use proper key: use publickey as username: use privatekey as password: Ensure the credetials are correct 2.Revert the entry from composer.json ...

View answer
How can add link in Header link Before the Welcome Message in magento 2
1 votes

Add this code in default.xml <referenceBlock name="header.links"> <block class="Magento\Customer\Block\Account\RegisterLink" name="register-link-new" after="-"> ...

View answer
Magento 2: A field shows me duplicate values
1 votes

return $this->groupCollectionFactory->toOptionArray(); Hi please check this method is overwrite from \Magento\Eav\Model\Entity\Attribute\Source\AbstractSource

View answer
Redirecting from block not working
Accepted answer
1 votes

protected $_responseFactory; protected $url; public function __construct( \Magento\Framework\App\ResponseFactory $responseFactory, ) { $this->_responseFactory = $...

View answer
Get product attribute programatically
1 votes

get VAlue <?php /* @escapeNotVerified */ echo $_product->getResource()->getAttribute('c_address')->getFron‌​tend()->getValue($_p‌​roduct); ?> LABEL $address =$_product->...

View answer
best way to add data to block from code
1 votes

Create Helloworld.php <?php namespace Vendor\Module\Block; class Helloworld extends \Magento\Framework\View\Element\Template { public function getTitle() { return 'Magento'; } ...

View answer
Magento 2.3 - Move billing address below shipping address in checkout
0 votes

You can use the Js for that! map: { '*': { "Magento_Checkout/js/model/shipping-save-processor/default":"Magento_ShippingChange/js/shipping-save-processor" } } Then ...

View answer
How to add customer Attribute inside custom tab section insted of "Account Information" in magento 2?
0 votes

Please try this:app/code/Vendor/Module/view/base/ui_component/customer_form.xml <?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...

View answer
Magento2: Particular Customer to restrict Multiple Website access
0 votes

You can manage customer per website by below configuration. Navigate to:Stores -> Configuration -> Customers -> Customer Configuration -> Account sharing option -> Share Customer Accounts

View answer
Set inline edit disable for certain field
0 votes

Remove this tag from that column where you want to disable editor. <editor> <editorType>date</editorType> </editor>

View answer