Questions tagged [magento2]

General questions about Magento 2, not specific to a minor version. Use this tag to distinguish from Magento 1. If you have issues with a specific version, please use the appropriate 'Magento-2.x' tag instead. Functionalities between Magento 2 minor versions might differ.

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

Magento2 - Webkul Multi Language for Multi Vendor

Is it possible to assign language or store view to each seller in Webkul multi-vendor plugin. The idea is to create a website which is multi vendor and multi language. A vendor upload products in ...
0
votes
1answer
55 views

Magento 2 Custom Product block using SKU in cms page

I want to display custom product block in cms page . I have sku of the products . No how can i display this product in cms page . I know how to display one product using sku . But is it possible to ...
0
votes
4answers
61 views

Select Random Products magento 2.3

I want to display random products on my homepage. I have been using this $collection->clear()->getSelect()->order('rand()');. My aim is the products should be displayed randomly on every page ...
0
votes
0answers
29 views

Magento2 + Need to display Configurable Drop Down option on category page

I need to display the only Size attribute drop-down on a category page listing. Size is a configurable option & Catalog Input Type for Store Owner value is Dropdown. I have enabled Used in ...
0
votes
4answers
29 views

Magento 2 Custom query to display selected product in Custom block

I have some product ids . Currently I can display products in category using {{block . But now I am developing a custom block in app/design/frontend/Alothemes/bencher6/Magento_Theme/templates/myphp/...
0
votes
1answer
31 views

Magento 2 updated_at for products not updated

I am using Magento 2.2 and when a product is updated through the product edit dialogue, it updates the updated_at field. But when the same is updated through the product list view, where multiple ...
0
votes
0answers
21 views

How to show Update Totals button on credit memo page in Magento 2

In credit memo page update total button is not showing after installation of the extension. How to add the update total button in that extension code. Please find the layout and template file in that ...
0
votes
0answers
45 views

Rename Module Name Magento 2

Have you tried Renaming the Vendor/Module name with different cases For instance: Vendor_Module to VENDOR_Module? After renaming the module name I tried to setup:upgrade, but got the below issue, ...
0
votes
0answers
25 views

Magento 2 Adding a text box in header of magento theme infortis-ultimo

Sorry I am a newby on Magento2. I wanted to add a textbox in my header in the area 4 (page header, primary central column) mentionned in the user guide. In a way I have no idea how to do so. I looked ...
0
votes
1answer
31 views

How to create customer without firstname and lastname in Magento 2 Api

I am using magento 2.3.2 version. I need to remove the Firstname and Lastname fields in the new customer creation/ registration API. I referred this link
0
votes
0answers
17 views

Certain option not showing in layered navigation in Magento 2.2.6?

I am running a Magento 2.2.6 store. I have an attribute called max-size. Now when I navigate to a category page, it does not show all possible options represented by the products shown in the category....
0
votes
1answer
28 views

Magento 2 What method should I use instead of deprecated getCollection when fetching data from custom database table?

I created a custom database table and now want to fetch data, but getCollection method is deprecated and I can't find any other method that suits my case. Here's the example of my code: use Magento\...
2
votes
2answers
50 views

Controller URL does not work

I have the problem that i always get the error 404 not found, if I want to get the url of my controller. This is my filestructure: And this is the URL I am trying to get loaded: http://localhost/...
0
votes
1answer
34 views

M2 - Translate newsletter status message

I need to translate this message: {"status":"OK","msg":"Thank you for your subscription."} I've done a search in all the files but I cannot find this string to translate... I have a Ajax ...
0
votes
0answers
23 views

How to add a new checkbox in place of the slider for price filter on Category list page?

I want to change the slider in the price filter to multiple checkboxes of constant interval of 10 e.g, 10,20,30... Can anyone give a hint, how it can be achieved?
0
votes
1answer
29 views

How to update value and label in attribute REST API Magento2

I have an attribute manufacturers, it has a value, I want to select them and change which I need using Rest API I tried sending a request like this http://magengree/rest/V1/products/attributes/...
0
votes
3answers
41 views

converting Data Object to Magento 2 collection not working

I have a function defined in Magento 1 public function getStatusMappingCollection() { if (is_null($this->_statusCollection)) { $this->_plentyStatusCollection = new ...
0
votes
1answer
44 views

Show tool tip for each shipping methods on checkout Magento2

I have installed the matrix rate extension to show shipping method in checkout. Now I am trying to show tool-tip for each shipping methods Currently, I have Standard Delivery, UK delivery, Express ...
0
votes
0answers
35 views

Magento 2 Search Bar error

We are using Magento 2.3.2 and integrated Smile/Elasticsuite for faster search. If we type a search keyword we get suggestions and if we click on the suggestion we see the result, however, if we ...
0
votes
1answer
34 views

Magento 2 : Add validation for tax/Vat number

Can any one tell me how can i add validation for Tax/Vat number field. I want to make it numeric. https://prnt.sc/ouycdv What i have done till now in taxvat.phtml is <input type="number" id="<...
1
vote
0answers
36 views

Magento2 - How to validate image width and height in admin form

I have created a custom module for image upload in magento2 admin form. How to validate the image width and height. Any help on the issue please?
-2
votes
0answers
39 views

How to Import Bundle Product Orders in Magento 2.3

I am New to Magento2 and I have a requirement of importing bundle orders into the system received from the from CSV, where I am able to import simple and configurable but could not make with the ...
0
votes
2answers
87 views

Magento 2 How to Save Data in Two Different Table (Admin Grid Form)

In NewAction.php I am saving data in two different tables both have a different model for new contact it's working well, but while editing existing data it's updating first table row and creating a ...
0
votes
2answers
46 views

How to clean or flush cache programmatically in Magento 2.3?

I have tried DI and Object Manager way to clean or flush cache but its not working for me using DI public function __construct( Context $context, \Magento\Framework\App\Cache\...
0
votes
3answers
35 views

getting null in customer email Magento 2 Custmer session

Edit.php (block) class Edit extends \Magento\Framework\View\Element\Template { protected $request; protected $customerSession; public function __construct( \Magento\...
0
votes
4answers
56 views

How to check configurable product have size option?

If the configurable product has size, I want to add a size guide for it. But how can I check that product have the size or not?
0
votes
0answers
16 views

Calling MAGENTO API 1.9 using HTML and JAVASCRIPT (experts question - problem) HELP

I need someone who knows MAGENTO and everything related to APIs and REST APIS very well I have a website and I want to validate (check if you want) if the email for a certain customer exist or not ...
0
votes
2answers
51 views

Hide payment method if customer has more than one processing order

I'm trying to hide a payment method if a customer has more than one processing order, so I created a module call KgPayMethod and in this module, I added this line on events.xml <event name="...
0
votes
0answers
11 views

Magento 2 option to add text “Tax included ” in product view if price is with tax

Is there an option in Magento 2.2+ to display the text "Tax included" in product view if the value of product includes tax or this requires theme modification? Or some other way to indicate to ...
0
votes
0answers
33 views

Magento 2 All Products pages Redirect to catalog search

I am facing an issue which is I am not able to access any products pages. Either trying to access them directly via product url or product page Or via Search Results Or via Site Navigation every ...
0
votes
1answer
22 views

List all Products and change price, quantity and one custom attribute

We're a very small store and have to sell some of our products online. Magento is our system of choice. Right now we're still using Magento 1. For our shop we have the possibility to list all products ...
0
votes
0answers
10 views

How to save file in directory using ajax post with php in magento 2

I have a Js code in my phtml like below. var data = new FormData(); data.append("data" , "the_text_you_want_to_save"); var xhr = new XMLHttpRequest(); xhr.open( 'post', 'http://mysite/...
0
votes
1answer
13 views

Magento2: How do i generate Remove from cart Url for a product?

I want to cart item remove in minicart using custom URL. Below code in magento1 I want to magento2 code /** * Get item delete url * * @return string */ public function getDeleteUrl() { ...
0
votes
0answers
9 views

Magento2: ability add to cart, but cannot buy product

The product has to attribute Temporary_Unavailable. Need to add functionality: if Temporary_Unavailable = Yes, then customer or guest can add to cart product, but cannot buy (because the product doesn'...
0
votes
1answer
38 views
+50

Magento 2 WebAPI json encode

I'm returning JSON via an endpoint in Magento 2 this bit of JSON looks like the following: $new_json = [ 'component_1' => '[{....}]', 'component_2' => '[{...}]' ]; ...
-2
votes
0answers
19 views

How to remove Last name In Shipping Address [on hold]

I have removed last name in billing field but i also want remove it on shipping address too.
-2
votes
0answers
15 views

Do an extension for zip code in first page and then in header exist? [on hold]

First of all, sorry I am a newby in Magento, so I might not know all the marketplace for Magento. I am actually looking for a way that on my first page the user will be asked for his country and/or ...
0
votes
0answers
12 views

Magento 2 URL Rewrites Very Slow

Setup Dedicated Server Intel Xeon E3-1230 v2 2 Core 16 GB RAM Linux Centos PHP 7.1 APACHE 2.4 I have a site in Magento 2.2.6 which I am trying to do a full URL rewrite of category and products for 1 ...
0
votes
0answers
14 views

Sales email order copy doesn't work

I have a problem with Magento 2, I tried to send a copy of the mail of an order to a mail address, but nobody has received the mail. Furthermore, if I set the address, I can't modify it, which file ...
0
votes
1answer
22 views

Call Function Inside Another In Knockout Js [on hold]

How to call a function inside another function in KnockoutJS Does anyone know how i can call one function inside another function in knockout js?
0
votes
0answers
25 views

Telephone field not getting displayed on front end

I want to display the Telephone field as required on the customer registration form. When it is not getting displayed on the front end. Here are the screenshots. https://prnt.sc/oumqt0 https://prnt.sc/...
0
votes
0answers
26 views

Magento 2 integration with AWS Elasticsearch service

I'm trying to connect my Magento to AWS elasticsearch service but I can't get a successfull connection. Magento is running on an AWS EC2 instance which the IP address is allowed on Elasticsearch ...
0
votes
0answers
22 views

How to fix SyntaxError: JSON.parse: expected ',' or '}' after property value in object in magento 2?

how to fix SyntaxError: JSON.parse: expected ',' or '}' after property value in object in magento 2? function getData(el) { var data = el.getAttribute(dataAttr); el.removeAttribute(dataAttr);...
0
votes
0answers
14 views

Magento 2.3.X: Get custom attributes in conditions model

I created a custom module in which I need to insert a conditions model that also has custom attributes. So I have this model: namespace Vendor\Module\Model; use Magento\Quote\Model\Quote\Address; ...
0
votes
1answer
35 views

How to get RMA details : M2

I want to get RMA returns details by current registry or by order id. How can i load RMA by registry or order id? Any help or hint will be appreciated.
1
vote
2answers
45 views

How to migrate M1 module in M2 - Module Migration

We will go to Magento 2.3 and need to integrate an old Module which handles the Order Exportation for our Fulfillment Service. I'm really new in Magento 2 and try to learn it step-by-step. I have ...
0
votes
0answers
32 views

How can I programmatically add a cart?

I need a solution to create a cart programmatically in my template.phtml or in my Block.php file. I want a new cart with products in it. I get the products dynamically from the REST-API.
1
vote
1answer
30 views

Magento 2: Order Increment Id not working

In our website, magento order increment id is not working as expected. We are getting difference of 3 between every two orders. Like for example,we have order 000005167 and next order we are getting ...
0
votes
0answers
13 views

keep extend Magento_Ui/js/form/element/wysiwyg but remove component dependency

I just want to extend almost content (not duplicate content to second file). And only remove component 'Magento_Variable/variables'. For reason i don't want to use variables in wysiwyg Is there a way ...
0
votes
0answers
28 views

Magento 2 Session is not working with cache on listing page

Session is not working with magento cache. On product listing page, If I change the limit 9 to 15 it's getting applied. And on other listing page it's setting the limit to 15 as expected. If I go back ...