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
12 views

THREE is not defined at GLTFLoader.js:13

My requirejs-config.js file is : - define('three', ['Learning_Js/js/three/three.min'], function (THREE) { window.THREE = THREE; return THREE; }); define('GLTFLoader', ['Learning_Js/js/...
0
votes
1answer
17 views

Magento 2 $transport->sendMessage() - where I can get the function body

In : \vendor\magento\module-contact\Model\Mail.php::$transport->sendMessage(); Where I can get the function sendMessage() body? Mail is not sending from my magento.
0
votes
2answers
28 views

magento 2 how to get product id from admin

In my requirement, I need product id from the admin product edit page on how to achieve this in Magento 2. I have tried $productId = $this->request->getParam('id'); but it is empty Model File:- ...
0
votes
0answers
13 views

Magento 2 add block parameter in widget

Like Magento default widget Catalog Product Link or Category link defined in the following file vendor/magento/module-catalog/etc/widget.xml How can I add a block and phtml as a parameter chooser ...
2
votes
2answers
27 views

How to Edit Layout Update Xml for CMS Page in Magento 2?

I just migrated from Magento 1.9.3.4 to Magento 2.3.4, I noticed some of the page content is missing when I accessed the page that was created from cms page. Then I look at the cms page edit page, ...
0
votes
0answers
16 views

Magento2 customer registration

When customer registration in magento2 based on the address I want to change the store. example if customer is from India registering in A store but based on his country he will be registered in ...
0
votes
0answers
14 views

Data Migration - EAV Step error - SQL syntax error

Magento v 2.3.5-p1; data Migration Tool v2.3.5 I created a custom module for setting up the config.xml for migration. The migration for settings went ok. At the data migration I encountered the ...
0
votes
0answers
5 views

Magento 2 - PayPal no choice for different billing & shipping address

somehow Paypal acts strange. When checking out for our clients on Magento 2.3.X, they cannot chose different billing and shipping adresses. For all other payment methods that works. See here. For ...
0
votes
2answers
13 views

Can't read new product attribute in template

I added a new attribute to a product. The attribute is named "is_brand_new". The product shows in the catalog product view in the upselling and related slider. But the new attribute is not in the ...
0
votes
1answer
8 views

Do Magento2 support braintree payment method with google pay and apple pay

How can i configured Apply pay and Google pay with magento2 using braintree
0
votes
1answer
17 views

How to disable the authorization form on the checkout page using xml

How to disable the authorization form which is located on the checkout and appears if the user is not authorized. Need to disable completely or in the second step
0
votes
0answers
12 views

Magento2 checkout order summary how to change item name to simple product name instead of configurable product?

I have tried by reffering below answers, but it work on first step, not working in checkout payment step, If anyone has any clue on this, At last my requirement is to change item name at all place in ...
0
votes
0answers
8 views

How can I change menu font with custom font?

How can I change menu font with a custom font? The font is already installed in my child theme and I can use it on home page with <style>font-family: 'BPG Arial Caps'; </style> But how ...
0
votes
0answers
8 views

How to display popup to confirm before add to cart in Magento 2?

I want to show a popup when a user first click on the button "add to cart". The popup will show please choose the inventory source. Example in my stock have inventory source INS-1 and INS-2. The user ...
0
votes
0answers
7 views

Magento2 custom emails going to spam

I have developed a custom email templates, But those emails are going to spam, How can i stop the emails are going to spam. Help me great, Thanks
0
votes
2answers
36 views

magento 2 extension attribute value is coming null

I an creating a customer address attribute using this code <?php namespace Ansh\CustomAddressAttribute\Setup; use Magento\Customer\Model\Customer; use Magento\Customer\Setup\CustomerSetup; use ...
0
votes
1answer
18 views

How to get multiselect attribute value of a product in magento 2

I have created multiselect custom attribute for product. See https://prnt.sc/sp7wgn I want to display the selected option value on frontend using phtml file. How can i do that??
0
votes
0answers
27 views

composer create-project magento-community problem

I'm trying install latest version magento community. Preconditions OS: CentOS Linux release 7.8.2003 PHP: 7.3.18 Steps to reproduce composer create-project --repository-url=https://repo....
0
votes
0answers
18 views

Magento 2: Import store configuration using csv

I want to import the configurations using CSV in Store -> Config under my module. After importing, it should set in the store config fields. How can I achieve that? I have referred this link ...
0
votes
0answers
13 views

How to display customizable option in magento 2 product page

I have added custom options for products referring https://docs.magento.com/user-guide/catalog/settings-advanced-custom-options.html How can i display these options on product page in magento 2? Any ...
0
votes
0answers
13 views

Rest API Requests are too slow

We are using the third party vendor for stock & product management. They are updating the custom attributes in Magento 2 using Rest API calls. for example: PUT index.php/rest/all/V1/products/{...
0
votes
1answer
24 views

InstallScripts vs db_schema for new EAV attribute

I'm in the process of adding new fields to my registration page. I know that we're now supposed to use db_schema instead of InstallScripts, but how can I make sure that they're seen as customer ...
0
votes
0answers
16 views

Magento 2 - Call form to Create new Customer in Adminhtml

I am trying to create a custom module where my company needs the ability to create a new customer from Adminhtml without leaving the page. I figured loading the form into a modal with ajax would be ...
0
votes
0answers
11 views

Display product crossell in the product detail page

I want to display the Crossell of the specific product. So basically I added 5 product for the crossell of my product. But the weird thing is the Crossell is displaying even in other products ...
0
votes
2answers
17 views

Position customAttributes on address-renderer

I am using an Address Fields Manager module. The problem is that in the sidebar in the resume they are all seen together (address-renderer/ default.html) and I need to divide them: <each args="...
0
votes
1answer
19 views

Magento 2.3.3 Mini Cart Disable Checkout Button When A Product = $0.00

I want to disable the checkout button from the mini cart when an (or any) item is added that has $0.00 as a price. I have copied the minicart.phtml file from: /var/www/html/vendor/magento/module-...
0
votes
1answer
29 views

Best method to use helper in any template

It seems to be impossible to use a helper in the template Magento_Catalog\templates\product\list\items.phtml. I have tried it via argument injection: app\design\frontend\company\base\Magento_Catalog\...
0
votes
1answer
16 views

how to get the local time for the orders?

i have a problem with time zone , when i make an order , the time for this command ('created_at') is not the local time , it returns the UTC time and not local time so for that i find the solution ...
0
votes
0answers
16 views

Purchase order invoice status Unpaid

Does anyone know how to set purchase order invoices automatically to "Unpaid" in Magento 2? Right now they are automatically marked as paid, but they should really be marked to Unpaid, and then set ...
0
votes
0answers
12 views

Sharing a wish list button is missing in my wish list magento 2

On the my wishlist page, I am not able to see the Share wish list button in the Magento 2 frontend. Previously it worked but now that button is not appearing suddenly. Help me.
0
votes
1answer
19 views

How to add Custom Block between `product.info.media` and `product.info.details` on Product page in Magento 2.3.3?

Here is my code of catalog_product_view.xml - <referenceContainer name="content"> <container after="product.info.media" name='custom-pro-review-section' htmlTag="div" htmlClass="...
0
votes
0answers
11 views

Send an email after order is cancelled and delivered,shipped

Need to send the following email when Order is canceled Order is been shipped Orders delivered
0
votes
0answers
17 views

Magento 2.3.5 - Dynamically add month-year, storename and store country to meta title / description

I'm trying to dynamically add the current month, year, store name and store location (country) separately to the meta title/description as follows Offers for {{month}} {{year}} in {{storename}} {{...
0
votes
0answers
10 views

Circular dependency: CustomerGroupPlugin depends on Model\Authorization\CustomerSessionUserContext

Circular dependency: Magento\SharedCatalog\Plugin\Source\CustomerGroupPlugin depends on Magento\Customer\Model\Authorization\CustomerSessionUserContext and vice versa. {"report_id":"...
0
votes
1answer
17 views

After shifting the website to another server. Products are showing out of stock

After shifting the website to another server. Products are showing out of stock I found the error while uploading the database file. CREATE ALGORITHM=UNDEFINED DEFINER=`user`@`localhost` SQL ...
0
votes
1answer
14 views

Data Migration Tool [Connection refused] from AWS to Local dockerized enviroment

I'm trying to migrate my Magento 1 data from a DB located in AWS, to a Magento 2 in a local dockerized enviroment. When I run bin/magento migrate:settings -a -r -vvv app/code/Mymodules/Migration/etc/...
0
votes
0answers
19 views

Magento 2.3.5 - Change Website, Store and Store View ID's

I have a multi website and store setup. Currently the website, store and store view IDs are not in sequence, that is, 1,2,3,4 etc, some numbers seem to have been skipped, also I'd like to order the ...
0
votes
0answers
10 views

Magento 2 Catalog Price Rule issue

php bin/magento indexer:status When I add a new catalog price rule from admin. The offer price could not be reflected in the front-end. then I check the indexing options. all indexing are UPDATE ON ...
0
votes
2answers
38 views

Why Magento core modules is inside vendor folder?

I know i should not modify any code inside vendor folder. And the vendor folder should be ignored in the git server. But what if i need to make some small changes for the core module of my Magento ...
0
votes
0answers
10 views

After shifting the website to another server. Products are showing out of stock

All product showing out of stock. I found the error while uploading the database file. CREATE ALGORITHM=UNDEFINED DEFINER=`user`@`localhost` SQL SECURITY INVOKER VIEW `inventory_stock_1` AS ...
0
votes
0answers
14 views

Extending Error handler using plugin method is not working

I need to save errors in my database. So I am trying to extend Error Handler in my custom module using plugin method. But it is not working. Here is my code di.xml <?xml version="1.0"?> <...
0
votes
0answers
7 views

Making dynamic page from custom attribute

I am trying to generate the dynamic creator page for each creator name and its product. I have custom attribute called "creator", and drop down list of different author names. Each author is assigned ...
0
votes
3answers
31 views

How to use for loop in PHTML page

How to use for loop in phtml page i want to use the for loop in phtml page to complete my functionality <php? for(i=1;1<=3;i++): //My code endfor: ?> I used as above code.
0
votes
1answer
10 views

How to add created at and updated at column and update it on values save?

I want to add created_at and updated_at columns in a custom table and update both columns on saving the data.
0
votes
0answers
12 views

Magento 2 Recently viewed products not showing old price to Configurable product

Magento 2 Recently viewed products not showing old prices to Configurable products. To simple product showing the old price.
0
votes
0answers
18 views

Magento2: Hide Layered Navigation when go to category have no product?

I am newbie in Magento 2, I configured the Magento 2 layered Navigation and did everything to set layered navigation for categories and price. When I go to one category , Layered Navigation display ...
0
votes
1answer
32 views

How can I save all field data using customer_save_before event. I was able to receive all field data but I could not save it

I want to save all user input field data in uppercase in the database. I was able to receive all field data but I could not save it. Please guide me how to do it. This is event file <?xml version=...
0
votes
0answers
8 views

Magento 2.3.X pagination not working properly on page with more than 300 products

I have a strange problem. The pagination "Show XYZ per page" does not work on a particular page. I can click the dropdown and say show 36 per page and ...?product_list_limit=36 gets added to the URL ...
1
vote
1answer
13 views

How to get customer balance (ee version store credit) in getCustomerDataObject?

I have a observer have the following similar code like this, i want to get the changed balance /** @var \Magento\Customer\Model\Data\Customer $customer */ $customer = $observer->getEvent()...
0
votes
0answers
7 views

Custom font not loaded in Magento 2

I have new custom font that i want to add, before i already had a custom font which is PT Serif now i want to add new font PT Serif Pro, i tried to add it like this: app/design/frontend/Vendor/theme/...

1
3 4
5
6 7
791