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
1answer
10 views

Magento 2 - How to change fotorama nav shaft thumbnail image size - for grouped products?

I need to change the size of the small images below the gallery, but only for products of type grouped Normaly you can change the size in the file THEME/etc/view.xml: <?xml version="1.0"?...
0
votes
0answers
10 views

Setup Advance bundling with Basic merging in magento2

I have setup the advance bundling correctly but I also want to setup basic merging with advance bundling. I tried to setup it on default Magento setup but I'm getting lot's of JS error after enable ...
0
votes
1answer
20 views

Validate zip code before placing the order in Magento 2

Without entering real zip code checkout won't allow placing the order. We need this for the UK site. In detail: If the shipping country United Kingdom is selected then the customer need to insert a ...
0
votes
0answers
14 views

Magento 2 - Custom page layout destroys view

I added a new page layout which inherits from the page layout 1column: THEME\Magento_Theme\layouts.xml <?xml version="1.0"?> <layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
0
votes
0answers
14 views

How to integrate third party php library css, js and other static files in Magento 2?

There is a library that has some CSS, js assets. I want to include this library and use its assets in Magento 2. I am prepared to write a module for this, but I don't know where to start. I first went ...
0
votes
1answer
15 views

Magento 2: Sort/Reorder checkout form fields

Is there a way to reorder/sort magento 2 checkout form fields from admin. In admin I just find to display/hide fields for checkout form. I want to sort like ( Move firstname to bottom or move any ...
0
votes
0answers
14 views

Programmatically setting products multi select attribute doesn't work in Magento 2.1

I am trying to be able to create/update a product programatically based on an API call in magento 2.1. I have everything working except for setting our 'Product Brand' multi select attribute. Using ...
0
votes
1answer
21 views

Magento 2 Theme Development Image to spread across home page

I can't figure out to spread a image across a screen. It's in a block, which is then put into the cms home page. Block; <div><img id="intro-img" src="{{media url="images/...
0
votes
1answer
15 views

Display differet price on frontend

I want to display different price on the frontend. I just want to display it don't want to show in add it cart. I have created a product with zero price and I want to show 5$ price for that item. I ...
0
votes
2answers
72 views
+50

How to remove unused js from home page in Magento 2

There are so many js files not used on home page in Magento 2. So, I want to remove it from home page. But, it's not remove still loading on home page. Non used js example : jquery/ui-modules/...
-1
votes
0answers
17 views

How to control the cookies to not to set before the user agreement?

[Magento v2.4.2] I am using amasty 2.5.2 for GDPR complaint. It is very easy to configure in the Backend. The only problem is it sets cookie once the page loaded . I just want to set the essential ...
-1
votes
1answer
15 views

Magento Disable Checkout if condition is false

I'm using Codazon one step checkout. I would like to disable the place order button until the condition is true. How do i achieve this and which controller to edit
0
votes
1answer
19 views

In Store Pickup delivery Method is not working

I Upgrade the Magento Version from 2.3 to 2.4. I integrate the "In store Pickup" Delivery Method. But this is not work .I follow the all steps Given in "https://store.magenest.com/blog/...
0
votes
0answers
14 views

Parse error Unexpected token “match” while accessing magento

I am trying to install magento on MAMP server. I have downloaded magento zip file and extracted it to htdocs directory. Installation is successful. However accessing magento throws parse exception ...
0
votes
0answers
10 views

How to use AED currency in PAYPAL for other currency in Magento2

I have a magento2 store with base currency AED. Paypal doesn't support AED. How to make support for this currency in Magento 2 for Paypal.
0
votes
2answers
28 views

Magento 2 : Disable Sending email when order status change

Is their any way we can stop sending email when order status change from backend magento 2 ? any thoughts appreciated. Thanks
0
votes
1answer
9 views

Custom Grid Date filter format problem on search

I'm trying to format the display and also the datepicker value when selecting the date in Filter for my custom grid. Now the display works fine the only problem is when I filter it, it doesn't work as ...
0
votes
0answers
20 views

Generating bundling js in wrong directory, without vendor_module

I have a custom bundlingjs file for a specific page on magento 2, and I'm trying to run this command: r.js -o pub/static/my_bundling_file.js baseUrl=pub/static/frontend/vendor/theme/locale_tmp dir=pub/...
0
votes
0answers
9 views

Add Grid in widget form magento2

Can i add grid template to custome widget magento2 ? I have an Blog menu in admin panel magento2 and i want to create an custom widget for this menu manage post here, purpose of this widget is i add ...
1
vote
1answer
20 views

Magento 2 Multistore : Disable Customer sharing account between the stores of same website

I have one website with 3 stores. Is it possible that customers of one stores should not be able to loggin to other 2 stores. The customer should not share cart between the stores. Is there an ...
0
votes
0answers
12 views

Warning: Illegal offset type in vendor/magento/module-payment/Model/Info.php

I am trying to save Magento order after successful payment status. But I am getting this issue. We are using headless technology with Magento and Laravel. This is Resolver - public function resolve(...
0
votes
0answers
13 views

Delete products from a single website through CSV

I need to remove some products from a single website, but I need to do it through CSV. I saw this question but it isn't what I need, since I have only read access to the Magento database for my store, ...
0
votes
0answers
12 views

How to clear checkout-data selectedShippingAddress when the checkout page it is refresh by the user

I need to get the default shiping method when the user refresh the checkout page. What I notice is that magento keep the last selected shipping method in the Local Storage: checkout-data ...
0
votes
0answers
9 views

Incorrect table definition after downgrading Magento 2.3.6 code from Commerce to Open Source via composer

After downgrading my Magento 2.3.6 code from the enterprise (Commerce Cloud) edition to the open source version via composer, I'm receiving the following sql error when running the bin/magento setup:...
0
votes
0answers
17 views

Setup Magento2 Docker Config Apple Silicon M1

is there any way to set up a docker compatible environment for Apple M1? Unfortunately Warden doesn't support the new ARM chips for now. are there any viable alternatives to having a working ...
0
votes
1answer
10 views

Magento 2 - Get simple products from grouped product

How can I get all simple products which are assigned to a certain grouped product?
0
votes
0answers
6 views

create extension for composer instalations with lib

Extension with next file structure: http://joxi.ru/Vm6l0vlUvna7WA I need to create a repository for composer installations what i have to do in composer.json? in the result after composer install ...
0
votes
1answer
46 views

Magento 2 Backend: Make orderable qty per source and salable quantity

There's a way to make orderable "Quantity per source" and "Salable quantity" coloumns on backend product list?
0
votes
0answers
6 views

does not extend \Magento\Framework\DataObject custom Model

Here's my code when I try to make the collection with my custom model I have this error In Collection.php line 612: Easysoft\Logistic\Model\Tracking does not extend \Magento\Framework\DataObject app/...
0
votes
1answer
13 views

Is it safe o update row from translation table in magento 2

To update inline translation value without enabling inline translation because its prod environment so Is it safe to update row from "translation" table using update query |key_id | string ...
0
votes
0answers
15 views

how to find class or interface which plugin will work on

hie, i am very very new to Magento development. I am trying to make a plugin for a check out process. One of the steps is to create a di.xml file which indicates the class or interface to be observed. ...
0
votes
2answers
19 views

Magento 2: Send admin email template programmatically

I have created an email template for my custom form as follows: Vendor/Module/etc/email_templates.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
0answers
16 views

How Can i add custom product collection in all category product listing page in magento 2?

i have one category name Deals in that there is no any product present also i have one product attribute name "is_deal_product" yes/no type so if this attribute value yes in any product than ...
0
votes
0answers
12 views

Add new index for search vendor in magento2

How to achieve the new functionality of searching vendors in catalog search?
2
votes
1answer
36 views

Magento 2 Custom template content will not shown in graphql response of CMS page

I have a CMS page in which I want to show the date e.i Current date OR Date after 5 days etc. So for that I have created a template file and call inside the CMS page. It will show content in Front but ...
0
votes
1answer
12 views

How to detect Spam Bot list on magento 2

I've found this module which prevent spam bot on magento 2. But i've a question: i don't know how this spam bot list work. How do we know what's the name of the spam bot and put it in this list so ...
0
votes
2answers
30 views

Sort products by date Magento 2.4.1

$this->_collection->addAttributeToSort('created_at', 'DESC'); // not working $this->_collection->setOrder('created_at', 'DESC'); // not working //$this->_collection->setOrder('...
1
vote
1answer
33 views

Getting array brackets in magento 2 log

I am trying to print the log using logger method in magento 2, while printing i am getting 2 empty array brackets in the log. Can anybody say why it happens like this and how to remove those brackets? ...
0
votes
2answers
29 views

magento2 admin page 404 error

I am Patrick and a super beginner. my Magento2 admin page shows a 404 error(whoops, our bad...). windows 10, xampp 3.2.4, php 7.3.27, magento 2.4.2., phpmyadmin. and I changed apache port 80 to 8888, ...
0
votes
2answers
24 views

How to load all values of particular attributes in magento 2?

In Magento 1.9. We can use below code to load all values of particular attributes $attribute = Mage::getSingleton('eav/config')->getAttribute(Mage_Catalog_Model_Product::ENTITY, 'brand'); if ($...
0
votes
0answers
13 views

How to make textarea product attribute value to use default value for specific store?

I'm using magento 2.4.1 and I tried to set the product textarea attribute to use default value like this for specific store id: $insertAttData['textarea_attribute'] = NULL; $this->productAction->...
0
votes
0answers
12 views

Magento 2 order create programmatically use ideal payment method but not working

I need payment method ideal and PayPal method set programmatically. I have try many ways but still not working. I have tried to cash on delivery it's working fine .but another payment method has try ...
0
votes
0answers
12 views

Magento 2 : Import category product data error

I am facing below error on some category id's when i try to export category product data using below code I need some advice what this code means & ways to fix this. {"0":"Item (...
2
votes
3answers
40 views

Magento 2 : Change Order # Formatting for M2 Orders

I am trying to implement feature that Orders placed on M2 should start with a ' 3 ' instead of a ' 2 ' This will help me with easily identifying new orders while we move test orders to production and ...
0
votes
1answer
23 views

Magento 2: Create a custom order view page

In magento 2 is there any way to create same order view page in custom module? I want to create a custom order view page where I have to display some more data but not want to display on core (order ...
1
vote
0answers
13 views

How to make Magento 2 log timestamp follows locale configuration?

How can i make exception.log, system.log, , debug.log or any other log inside var/log which is generated from magento 2 follows the configuration timestamp, right now it is showing the utc timezon in ...
0
votes
0answers
4 views

Where do scalar extension attributes save to?

Been reading the doc from Magento and i have been using extension attributes for more complex data structures but i'm basically wanting to add a simple scalar attribute <extension_attributes for=&...
0
votes
1answer
22 views

Magento 2 - Is it safe to remove the DEFINER=.. statement from sqldump?

I have a web server that serves Magento2 and a MySQL Server that hosts the database and both of these servers are in a single ubuntu instance. I would like to move the MySQL server to a separate RDS ...
0
votes
0answers
12 views

Module is not sending image correctly

everything good? I am implementing a module, but the js file is not pulling the proper image current js code require(['jquery'], function($) {     'use strict';     const STORE_ID = 111233;     const ...
0
votes
0answers
12 views

Automatic random generation field “username”

I've created in website extra customer field: Username Does anyone have any solution to automatically generate this field with username immediately after registration? I see some like this: https://...