Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 15325

Denotes questions related to Magento CE and EE 2.1.x

2 votes
1 answer
1k views

Magento 2 - Use vendor library in custom module's helper file

How can I use below vendor library in my custom module's helper file? I want to create an object of this class. /magento2/vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA.php I have tried with below …
Nitz's user avatar
  • 449
0 votes
1 answer
854 views

Magento 2 - Disable product attribute if custom module is disabled

I have created few product attributes in custom module using UpgradeData. Now if I disable my module then I how can I disable the product attributes as well.
Nitz's user avatar
  • 449
1 vote
0 answers
863 views

Magento 2.1 add dynamic row in custom page

I have created dynamic rows in system config as below. <group id="jet_attributes" translate="label" type="text" sortOrder="16" showInDefault="1" showInWebsite="1" showInStore="1"> <label>Attribut …
Nitz's user avatar
  • 449
1 vote
0 answers
262 views

Magento 2 - add condition rule block in custom grid

I want to add condition rule block in my custom grid. I want to use it as a filter and want to search products using condition rules. I used this link as reference.
Nitz's user avatar
  • 449
0 votes
2 answers
2k views

Magento 2 - checkout_cart_save_after item price update issue

I am using event - checkout_cart_save_after to update cart item's price. But Item price is not getting updated. Below is the code. foreach ($observer->getCart()->getQuote()->getAllVisibleItems() as …
Nitz's user avatar
  • 449
0 votes
Accepted

Magento 2 - checkout_cart_save_after item price update issue

It worked with below code - $cart = $observer->getData('cart'); $quote = $cart->getData('quote'); $items = $quote->getAllVisibleItems(); foreach($items as $item) { $item->setCustomPrice(0); …
Nitz's user avatar
  • 449
2 votes
3 answers
787 views

Magento 2 configurable product cart item override issue

I have override two core checkout xml files for overriding default.phtml file in magento 2 as per the ref url - Overriding template not working in Magento 2 But when I add configurable product to my …
Nitz's user avatar
  • 449
2 votes
1 answer
4k views

Magento 2 - Admin form custom validation

I have a custom form in admin. And this is one of my form field $fieldset->addField( 'price_coefficient', 'text', [ 'name' => 'price_coefficient', 'label' …
Nitz's user avatar
  • 449
1 vote
0 answers
869 views

Magento 2 Inventory & price change events

I want to write an observer when Product Inventory & price changes in Magento 2. In Magento 1 I was able to find event :- cataloginventory_stock_item_save_after But In magento 2 I am not able to run …
Nitz's user avatar
  • 449
3 votes
1 answer
981 views

Magento 2 admin split button actions

I have created split button i.e. button with options as below. Created block file namespace Yournamespace\Modulename\Block\Adminhtml\Product; class CustomActionList extends \Magento\Backend\Block\ …
Nitz's user avatar
  • 449
1 vote
0 answers
120 views

Magento 2 - add rule block above grid filter

I have created a product grid and want to add a Rule block above grid content. After so much research I found that function getMassactionBlockHtml() can be used to call Rule block. But the function …
Nitz's user avatar
  • 449
1 vote
0 answers
146 views

Magento 2 include xmlToArrayParser php library and use it in module

I want to include below php library in my custom module https://github.com/Robhub/trocutc/blob/master/incl/xmlToArrayParser.class.php and want to use the same in controller or helper. I have includ …
Nitz's user avatar
  • 449
3 votes
1 answer
2k views

Magento 2 - admin form show textbox on dropdown change

I have a form in admin with dropdown and textbox. I want to show textbox only if dropdown value is set to yes. I have not used UI-component for this. I have tried below code but its not working. < …
Nitz's user avatar
  • 449
3 votes
0 answers
1k views

Magento 2 - Set custom shipping price to quote

I want to set custom shipping price irrespective of customer address. Below is the code. I tried to change it by adding - $cart->setShippingAmount('800'); but its not working. Is there any way to …
Nitz's user avatar
  • 449