14

Here i give your answer please follow bellow steps your_grid.xml <actionsColumn name="actions" class="[vendor]\[module]\Ui\Component\Listing\Column\Actions"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <item name="indexField" xsi:type="string">id</item> &...


12

The full list of options for the collapsible widget can be seen on the dev docs here. Finding the code Navigate to vendor/magento/module-checkout/view/frontend/web/template/summary/cart-items.html and look at line 8 (on 2.1.1 at least), it should look like so: <div class="block items-in-cart" data-bind="mageInit: {'collapsible':{'openedState': 'active'}...


10

You can Use js mixin :) like : Vendor/Module/view/requirejs-config.js with content: var config = { 'config': { 'mixins': { 'Magento_Checkout/js/view/summary/cart-items': { 'Vendor_Module/js/view/summary/cart-items-mixin': true } } ...


9

When you define your fields datatype and filter as select. Magento will automatically display your column filter as dropdown. <column name="type"> <argument name="data" xsi:type="array"> <item name="options" xsi:type="object">Namespace\Modulename\Model\Config\Source\Departments</item> <item ...


6

Its very simplesystem > configuration > general > countries option > allowed countries. Just select the country you want.


6

You have to add mixin for shipping-rates-validation-rules Add mixins in requirejs-config.js app/code/Vendor/ShippingModule/view/frontend/requirejs-config.js var config = { config: { mixins: { 'Magento_Checkout/js/model/shipping-rates-validation-rules': { 'Vendor_ShippingModule/js/model/shipping-rates-validation-rules-...


5

Use Plugins to override the above block. di.xml <?xml version="1.0" encoding="UTF-8"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <type name="Magento\Catalog\Block\Product\View\Options\Type\Select"> <plugin name="...


4

Here is a tutorial http://www.atwix.com/magento/inline-editing-in-magento-backend-grids/ It suggests you override the column renderers Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Input to allow inline editing, it will save the data as each control is edited rather than at the end with a save button.


3

Replace addtocart.phtml with below code, File PATH: app/design/frontend/{Vendor}/{themename}/Magento_Catalog/templates/product/view/addtocart.phtml <?php /** * Copyright © 2016 Magento. All rights reserved. * See COPYING.txt for license details. */ // @codingStandardsIgnoreFile /** @var $block \Magento\Catalog\Block\Product\View */ ?> <?php $...


3

Adding the list of States in India to Magento I have tested this and worked for me on my server. Please open your php my admin and run following: INSERT INTO directory_country_region VALUES (NULL , "IN", "Andaman and Nicobar","Andaman and Nicobar"), (NULL , "IN", "Andhra Pradesh","Andhra Pradesh"), (NULL , "IN", "Arunachal Pradesh","Arunachal Pradesh"), (...


3

Baconl's answer will technically work. However, it is not the preferred solution to accomplishing this task. If you move the file to local, you are overwriting the entire core file. If anything ever changes in that file during an upgrade, you lose those changes because of a small edit in one function. The function that adds the delete mass action has ...


3

<?php $orders = Mage::getResourceModel('sales/order_collection') ->addFieldToSelect('*') ->addFieldToFilter('customer_id',Mage::getSingleton('customer/session')->getCustomer()->getId()) ->setOrder('created_at', 'desc'); ?> <select > <option value="">None</option> <?...


3

You can use custom jquery to select first option automatically, when there is a single option, like below in phtml file : <script> require(['jquery', 'jquery/ui'], function($){ if(jQuery('.super-attribute-select option').length == 1){ jQuery('.super-attribute-select option:first').attr('selected','selected'); } }); </script>


3

you need to override configurable.js file in your theme app/design/frontend/Vendor/Theme/Magento_ConfigurableProduct/web/js/configurable.js /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ /** * @api */ define([ 'jquery', 'underscore', 'mage/template', 'mage/translate', 'priceUtils', ...


3

Please add this code <div class="block-customer-login"> <div class="block-content" aria-labelledby="block-customer-login-heading"> <form class="form form-login" action="<?= $block->escapeUrl($block->getPostActionUrl()) ?>" method="post" id="login-form" data-mage-...


2

you can add comma separated in option it like below <?php $values='a,b,c,d,e'; $array=explode(',',$values); ?> <select multiple name="option[]"> <?php foreach($array as $value) { ?> <option value="<?php echo $value ?>"><?php echo $value ?></option> <?php } ?> </select>


2

Create a select box for Brands like : <select id="brand_select"> <option value="">MY BRAND</option> <option value="12">Apple</option> <option value="123">Nokia</option> <option value="655">HTC</option> ...... <option value="BRAND_ID">BRAND_NAME</option> ..... </...


2

Here is the code to display all the categories in a select dropdown, you may have to make some modifications depending on what you need: <select id="category" name="category"> <?php $rootCat = Mage::app()->getStore()->getRootCategoryId(); $categories = explode(',',Mage::getModel('catalog/category')->load($rootCat)->getChildren()); ...


2

Try this: Create Following file in your module file path : app/code/Vendor/Module/view/frontend/layout/checkout_index_index.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="../../../../../../../lib/internal/Magento/Framework/View/Layout/etc/page_configuration.xsd"...


2

You can achieve this from admin panel. There is no need of writing any code. Go to Admin Panel : Stores->Configuration->Sales->tax->Default Tax Destination Calculation. There you can select whatever countries or state you want to be showed.


2

Try following way: <field name="status"> <argument name="data" xsi:type="array"> <item name="options" xsi:type="object">Lime\Confirmation\Model\Status</item> <item name="config" xsi:type="array"> <item name="label" xsi:type="string" translate="true">Status</item> <item name="dataType" xsi:...


2

download from https://select2.github.io/ extract zip file and upload below files to your skin folder select2-4.0.3\dist\js\select2.full.min.js skin/frontend/your-package/your_theme/js/select2/select2.full.min.js select2-4.0.3\dist\css\select2.min.css skin/frontend/your-package/your_theme/css/select2/select2.min.css now edit local.xml app/design/...


2

I didn't used Data Provider <?php namespace Vendor\Module\Model\Sales; use Vendor\Module\Model\ResourceModel\Sales\CollectionFactory; use Magento\Framework\App\Request\DataPersistorInterface; /** * Class DataProvider */ class DataProvider extends \Magento\Ui\DataProvider\AbstractDataProvider { /** * @var \Magento\Cms\Model\ResourceModel\...


2

You can check here : Store / Configuration / Catalog / Catalog / Category Top Navigation / Maximal Depth On my website the value is set on 0 and it works fine


2

vendor/magento/module-customer/view/adminhtml/ui_component open customer_address_form.xml and remove below code from line number.194 <formElements> <select> <settings> <options class="Magento\Directory\Model\ResourceModel\Country\Collection"/> </settings> </select> </formElements&...


1

It is not clear which dropdown you are talking about in your question. But I can see a select element which you had been talking about in your question. So please replace this part of code : <select name="qty" id="qty" class="simulate-change"> <?php for ($i=1; $i < 10; $i++): ?> <option value="<?php echo $i; ?...


1

Hello @Rizwan replace below code to your toOptionArray() public function _getCategoryCollection($level) { $collection = $this->_categoryCollectionFactory->create(); $collection->addAttributeToSelect('*')->addIsActiveFilter()->addLevelFilter($level); return $collection; } public function toOptionArray(){ $arr = $this->...


1

Create custom.php in root folder and place below code. Run custom.php through command line because it will take time to run. <?php error_reporting(E_ALL | E_STRICT); ini_set('display_errors', 1); ini_set('max_execution_time', 0); ini_set("memory_limit","-1"); require_once('app/Mage.php'); umask(0); Mage::app()->setCurrentStore(Mage::getModel('core/...


1

You will require to use Ajax functionality for this. <div id="result"><select name="menu1" id="menu1"> <option value="">Select your choice...</option> <option value="https://free.greenhouse.com/tree/list/cucumber">Cucumber</option> <option value="https://free.greenhouse.com/tree/list/tulasi">Tulasi</option> &...


Only top voted, non community-wiki answers of a minimum length are eligible