Ajay Gehlod
  • Member for 3 years, 1 month
  • Last seen this week
  • Coral Springs, FL, USA
Magento 2 remove Gift Cards Cart Summary
1 votes

To remove the Gift Card Message block from the cart page I tried the layout block remove instructions but it throughs me a JS error in the console for missing gift-message component. I found the ...

View answer
How to get orders items data from particular order?
Accepted answer
0 votes

Please try this: foreach ($order->getAllItems() as $item) { $options = $item->getProductOptions(); if (isset($options['options']) && !empty($options['options'])) { ...

View answer
Magento 2.2: Unable to unserialize value?
29 votes

In my case, I patched as follows to unserialize a serialized string: File: /vendor/magento/framework/Serialize/Serializer/Json.php Find: public function unserialize($string) { $result = ...

View answer
Magento 2: Checkout afterplace order plugin not working
2 votes

Magento doesn't recommend you to use the Plugins to perform the custom operation(sending data to third-party). Plugins are used to modify input arguments to a method or the output of a method only. ...

View answer
Magento 2 product images always returning the placeholder image
2 votes

Flush Catalog Image Cache and regenerate new cache images by running below Magento CLI command. php bin/magento cache:images/resize

View answer
How to add the option value for the product attribute in magento2
Accepted answer
2 votes

I guess you would like to render the Manufacturer options in the attribute dropdown from a custom Manufacturer table? If yes, You have to write the UpgradeData schema for your module and update the ...

View answer
How to determine if a customer is new in Magento when using afterSave (or other) Plugin?
Accepted answer
3 votes

Whenever a customer registered through the frontend form Magento trigger the customer_register_success event: File: vendor/magento/module-customer/Controller/Account/CreatePost.php $this->...

View answer
Magento2.2.6 Admin Session Timeout Not Working
1 votes

You should also try it by changing the following PHP INI varibles: session.gc_divisor = 100 session.gc_probability = 1 For more details check: http://php.net/manual/en/session.configuration.php#ini....

View answer
How can I manage admin form via template in Magento2?
1 votes

I guess you are doing something wrong. You are rendering admin form using the custom template by calling $this->setTemplate('myphtml.phtml'); and you are passing form data to $form->setValues($...

View answer
Order Items Collection in Order Detail Page
Accepted answer
3 votes

Check the assigned block to render the order items defined in layout file vendor\magento\module-sales\view\adminhtml\layout\sales_order_view.xml <block class="Magento\Sales\Block\Adminhtml\Order\...

View answer
Magento2: How to change layout product detail
2 votes

You should go through the Magento frontend dev guide. It will give you an idea to customize frontend layouts and Magento2 custom HTML container is the best option to customize the layout without ...

View answer
whenever i do any change in xml file i need to remove pub/static folder then it works
1 votes

Make sure your XML change doesn't contain any static content related changes like adding/removing CSS or JS file.

View answer
Magento 2 : Search For Admin Menu Items
1 votes

The global search box in admin header can be used to find any record in the database. The results can include customers, pages, products, orders, or any related attribute and as a Magento developer, ...

View answer
Magento 2 custom customer attribute data not saved
1 votes

Check to make sure that the attribute is in the customer_form_attribute table. Additionally, check that the is_system attribute value is set to 0. Also, you have assigned that attribute to "...

View answer
Call custom phtml on success page without override
3 votes

If you would like to utilize/access the current $order object in your block/html file, without overriding original order success block/template. Here is the complete solution: registration.php <?...

View answer
CRON with settings from multiple stores
1 votes

Simply Inject the StoresConfig class in your Cron model class constructor, and read store config values with getStoresConfigByPath($path) for all stores. This will return the config values with the ...

View answer