Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [magento2.2]

General questions about the Magento 2.2.x versions

0
votes
0answers
6 views

None of Custom Payment Module are visible in the Checkout

I'm using magento version 2.2.5. Previously in version 2.1 custom payment methods were visible in checkout. But when deployed in version 2.2.5 none of the custom payment methods are visible. Even ...
0
votes
0answers
6 views

Custom import entity, add custom dropdown in Import Behavior

I have created a custom import. Model is already created and linked. In adminhtml I want to add a dropdown in the 'Import behaviors' only for my custom import. My dropdown will contain all my stores. ...
0
votes
0answers
7 views

How to specify image path relative to module in Knockout HTML view?

I'm making a magento 2, usign 2.2.6, module trying to display certain information at the checkout and I'm stuck when trying to add an image relative to the module path. I'm NOT using PHTML in this ...
0
votes
0answers
4 views

Magento 2 add customer group as Email Template variable

In magento 2 it is possible to create Email Template variables, however, those variables are html or plain text. I'd like to create a variable containing the user group, so i can use this variable to ...
0
votes
1answer
12 views

How can i create a custom page for product listing in magento 2

i have created a module and i got the respone in phtml but dont know how to design it same as listing help me to create a custom page for product listing in magento 2
2
votes
1answer
22 views

Magento227 Maketplace Coding Standard Issue

When I run: phpcs /path/to/module --standard=MEQP2 It gives me the following error PHP Fatal error: Trait 'MEQP\Utils\Helper' not found in /opt/marketplace-eqp/MEQP2/Sniffs/Classes/...
1
vote
1answer
10 views

Deprecated Functionality: crypt() Magento 2.2.6

I am getting following error after installing a new module in application. How can i fix this error. Exception #0 (Exception): Deprecated Functionality: crypt(): Supplied salt is not valid for DES. ...
0
votes
1answer
16 views

Magento 2 - can't change the zip code in order

I have a very strange issue in Magento 2 orders. In some orders the first number in the zip code is removed automatically. For example 07716 will be 7716. So the zero was dropped. I try to edit the ...
1
vote
0answers
5 views

Magento 2.2 - Want to implement blackfire for community edition

I have heard about blackfire php profiler and automated performance tool that can be used in three environments. If i wanted to implement in Magento 2.2 based website using nginx server then is it ...
0
votes
0answers
16 views

Module version in composer.json

I'm running the static tests on one of my modules and on magento version 2.3 it reports an inconsistency: Version must not be specified in the root and package composer JSON files in Git Failed ...
0
votes
0answers
11 views

Installed extensions disappear after a while of itself

Good day! In Magento2 version 2.2.7, installed extensions will disappear after a while of itself. These are different modules like: honl/magento2-nl-nl (Translation to Dutch) myparcelnl/magento (...
1
vote
0answers
9 views

Magento 2 How to Customize Checkout with adding login and signup page

I have worked on a Magento 2.2.6 version. I want the Horizontal Checkout please see the following screenshot. I also want the first step login and signup. Thanks in advance
0
votes
2answers
22 views

Multiple use of `getConnection()` in a single block and impact performance issues

I found a module someone created and looked into the code. I found that this person was making a lot connection as such in a single block: public function checkStoreExists($storeID){ $connection =...
0
votes
0answers
6 views

Bundled Items not going out of stock when a component is out of stock

What needs to be set for a bundle product to go out of stock if one of it's components goes out of stock? Right now I have a bundle product with manage stock set to yes. Ship together. Input type ...
1
vote
1answer
17 views

How to mention the magento version compatibility in composer.json

I am creating a module in Magento 2. Now I am writing composer.json. Here I write supporting PHP version "require": { "php": "~5.6.0|^7.0.0", }, How do I write my module will be supported by ...
0
votes
1answer
32 views

Area code not set: Area code must be set before starting a session. While doing upgrade to 2.2

I am upgrading my Magento 2.1.9 to 2.2.7 using these following commands composer require magento/product-community-edition 2.2.7 --no-update composer update Then when i'm doing php bin/magento setup:...
2
votes
1answer
214 views

Check if a payment method is online or offline

Is there a way to check from the payment model instance (or anywhere else) if a payment method is offline or online? Is there such a flag, or method? I'm not talking about a specific method, I'm ...
0
votes
0answers
12 views

Getting “DDL statements are not allowed in transactions ” error when re-index programmatically in magento 2.2.X

I am working on Magento 2.2.6. As per requirement I need to do re-index on sales_order_save_after event. It is working well in Magento 2.1.X but I am getting following error on Magento 2.2.X. ...
1
vote
0answers
13 views

How to set default sort order for custom listing uicomponent to use multiple columns

I created a custom admin grid using a lising uicomponent. I want the initial sort order to sort by 2 columns. This does the trick in the grid's Collection class for the initial page load of the grid: ...
0
votes
0answers
24 views

Not Showing Sidebar WordPress Menu Widget on all the Blog Pages - FishPig WordPress + Magento2 Integration [closed]

I've installed FishPig WordPress + Magento2 Integration extension successfully according to this guide. https://fishpig.co.uk/magento/wordpress-integration/installation/ (Magento 2.2.7, WordPress 4....
0
votes
1answer
20 views

skip function execution using before plugin

I'm overriding the controller Magento\User\Controller\Adminhtml\User\Validate::execute() using before-plugin so I can perform some checks before magento validate using this function. If certain ...
0
votes
0answers
13 views

Magento 2 - How to remove phone number validation in adminhtml

Magento 2 I want to remove phone number validation in customer addresses in admin panel --- Screenshot for your reference ----
0
votes
2answers
33 views

Unknown directory type while generate file in custom folder : Magento 2

I am generating packing slip of an order. its directly generate successfully in Media directory. but we need to generate inside "packingslip" folder. (media/packingslip). While we change directory ...
0
votes
0answers
30 views

Magento 2.2 Display Product Custom Attribute in products in Home Page

I have custom attribute called "hasgift" and its Boolean (yes, No), and trying to display it's value in products tab Module in homepage. But Its Only Give Me (No) Vaue. I have Used Same Code in ...
0
votes
0answers
58 views

Magento 2.2.6: Error after upgrading to Magento 2.3.0

Just updated from M2.2.6 to M2.3.0, everything seemed to go without a hitch, but after loading the front-end of the website I'm seeing the following error: Exception #0 (BadMethodCallException): ...
0
votes
0answers
9 views

How to set Billingaddress during sales_order_place_before programmatically

I need all orders to have the same billing address (its because the store is used company internal) but the shipping address may vary. My thought was to set the Billing Address programatically during ...
0
votes
0answers
41 views

Decode HTML Knockout JS - Minicart

I use HTML Code inside Custom Options. The Radio Option titles are for example <p class="style1">Option1</p> This way I can style my custom options in css, instead just plain text. ...
0
votes
1answer
25 views

How to dispaly data in table for form field in Admin edit form?

In my custom module I am saving data from front and it will display in the admin something like inquiry. In admin side edit form I have to display some products data in table. For example customer ...
0
votes
0answers
17 views

Magento 2 Get Seller's address from the Item/Product that is added to your cart

For example in order to get total qty in the cart, the following code can be used: $quote->getItemsQty(); For example, in order to get product details in the cart, the following code can be used: ...
0
votes
1answer
37 views

Magento 2 - Transactional email templates

How I can get Sales Representative Contact Email in a transactional email templates? I try to add something like this but the href is not display: <li style="background: black; color:white;"> ...
0
votes
0answers
10 views

currency symbol not showing in pdf invoice (Magento 2.2)

The currency symbol isn't showing. how can i resolve this issues
0
votes
1answer
42 views

Magento 2.2.1 - Disable Add to Cart for Specific Products

I need to figure out a way to disable the "Add to Cart" button on specific products. I found this link, but it creates a full attribute set which I don't want to do. How can you add an attribute and ...
0
votes
0answers
18 views

How to add radio button in ui modifier

I want to add radio button using ui modifier return [ 'arguments' => [ 'data' => [ 'config' => [ 'label' => __('...
0
votes
0answers
34 views

How to add radio button in custom option in magento2

I want to add radio button in custom option . I refer this link Magento2 adding radio buttons in customoptions. But not working. If anything i want to chage it. Thanks.
0
votes
1answer
26 views

How to use PWA Studio in magento 2.1.X or 2.2 versions?

I'm supposed to develop Magento as PWA but unfortunately, I couldn't use 2.3 versions in my server. I'm impressed by this pwa studio theme https://magento-venia.now.sh\ I couldn't get any guidance.
0
votes
1answer
25 views

What new tables need to be created when building module for custom attributes?

Magento 2.2 -- I am trying to build a module that would allow for custom attributes to be created in the admin panel. At this point, I'm stuck on what tables need to be created to allow for that ...
0
votes
1answer
19 views

Magento 2.2.3 hide Sort By Price when customer not logged in

I am using Magento 2.2.3 and need to hide the Sort By Price on category page in toolbar if the customer is not logged in. Can someone please elaborate how this can be done.
0
votes
0answers
25 views

Magento 2 system variable for “Order Created at” for email templates

What is the email template system variable for "Order Created at" for Magento ver. 2.2.6? Using the variable name: {{var order.getCreatedAtFormated('long')}} doesn't work for me. This is a variable ...
0
votes
0answers
21 views

Upload image in custom option

I want to add the file uploaded in custom option (adminend). In CustomOption modifier: return [ 'arguments' => [ 'data' => [ 'config' => [ ...
3
votes
2answers
42 views

Magento2.2.x How to remove a field filter from collection?

I am loading a collection: $model = $this->_objectManager->create('Test\Demo\Model\Book'); $collection = $model->getCollection(); $data = [regionCode => 111,regionCode=>222]; foreach ($...
0
votes
1answer
44 views

You cannot define a correlation name 'tdv' more than once [] [] , magento 2

I have create custom admin FORM and use 2 product attributes as field select option but in getting error. "You cannot define a correlation name 'tdv' more than once" If i have use single attribute ...
3
votes
2answers
34 views

Change Discount Label in PDF Invoice in magento 2

In Magento-2 I generate PDF invoice and successfully edit the layout of PDF. There is one More thing to change the label of Discount Current Label is Discount(Coupon Code) want change in Discount(...
1
vote
2answers
28 views

Magento 2 : How to set the Title of Page in Admin Grid using UI_COMPONENT

I have created a custom module using UI_COMPONENT. Everything worked properly, but unable to set the Page Title. Index layout file: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/...
0
votes
0answers
56 views

How to Solve Check Component Dependency Error during Magento Upgrade?

I want to update magento-2.1.12 to magento-2.2.7 using Web Setup Wizard. We faced this error Check Component Dependency(We found conflicting component dependencies.). How to solve this error? Please ...
0
votes
0answers
11 views

How to add swatches in custom option in magento2

I want to change the radio button into swatches for custom option in magento2 How to do it Thanks.
0
votes
1answer
34 views

Can not Place Order, Is it Migrate JS Error at Magento 2.2.7 Error?

I have installed Magento ver. 2.2.7 for A MarketPlace Site also Purchased MarketPlace Extension and Installed it Successfully. Before Order Place was working, But Now click on Order Place Button, The ...
0
votes
3answers
35 views

How to add css in header in magento2

I want to include the css for product view page In catalog_product_view layout: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:...
1
vote
1answer
23 views

How to inline edit magento 2 product collection using ui-components(grid)?

Suppose i want to edit some rows in product's grid collection.
0
votes
0answers
5 views

Magento2.2.x how to set admin Filter functionality on custom page on frontend grid?

I have created a custom page and I want to set admin filter functionality on a custom grid on the frontend. Admin Filter - look the first image. Frontend grid - want admin type filter above on grid ...
1
vote
2answers
48 views

Override block in magento2

I want to override getCustomizedOptionValue function in Magento\Sales\Block\Adminhtml\Items\Column\DefaultColumn In etc\adminhtml\di.xml: <preference for="Magento\Sales\Block\Adminhtml\Items\...