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
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
15 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
18 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
9 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
16 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
13 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
9 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
36 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
6 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
30 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
17 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
30 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/...
0
votes
0answers
16 views

How to populate Purchase Order Number with a random rumber?

Magento 2.3.x Purchase Order used as a payment method requieres a purchase order number. Some of our customers don't have that number, so we need to pre-populate this input field with a random content ...
0
votes
0answers
13 views

Uncaught Error: Call to undefined method - Magento 2.3.2 - PicPay

[26-May-2020 21:47:11 UTC] PHP Fatal error: Uncaught Error: Call to undefined method Magento\Payment\Gateway\Data\Order\OrderAdapter::getCustomerIsGuest() in /home/extre146/public_html/atividades/app/...
0
votes
0answers
5 views

Field Action for Column component

Can someone explain me what I should put instead of "TARGET_NAME" and "ACTION_NAME", I can't find any example in Magento 2 source code. <column name="column_with_action"> <argument name="...
0
votes
1answer
13 views

Disabling Magento_CatalogStaging creates a staging duplicate query issue for a record that doesn't exist

I am attempting to disable Catalog Staging without starting over. I ran this command bin/magento mo:d Magento_CatalogStaging Magento_CatalogImportExportStaging Magento_BundleStaging ...
-1
votes
1answer
20 views

How to query products without weight in magento 2?

I have been able to SQL query my products that have weight in Magento 2 select * from catalog_product_entity_decimal where attribute_id=80 and value is not null However, when I try to look up ...
0
votes
0answers
12 views

UI component admin action edit button AND Exception #0 (Magento\Framework\Exception\NoSuchEntityException): Requested data doesn't exist

Hi, i'm new at magento 2 and have a question. How to do the "Alterar Pontos" button, do the same action as "edit column" ? the "Alterar Pontos" button is creating a new object. i just want to edit ...
0
votes
2answers
27 views

Magento downgrade 2.3 to 2.2

Is it possible to downgrade Magento from 2.3.4 to 2.2.1? Which command should I use?
0
votes
0answers
9 views

Find URL and redirect script from Magento

I got the following script (end of the question), which works but doesn't help about what I need. What need is IF someone goes to http://soro.in/abc-toys/special-needs/chewies/chewigem-multi-...
0
votes
0answers
8 views

Test American cards are not working in Magento 2 with paypal payments pro

Other cards like VISA, Mastercard are working well. But I can't test with American cards. It shows Transaction has declined error and Declined: 15005-This transaction cannot be processed. Help me to ...
1
vote
3answers
25 views

Grid collection issue after migrating magento 2.3.0 to 2.3.4

I had to upgrade magento 2.3.0 to magento 2.3.4 on the project I am working for. I had the following issue that I don't really understand : system.log : [2020-05-26 10:15:46] report.ERROR: Type ...
0
votes
1answer
50 views
+50

Duplicate block content

I would like to duplicate the filters block content on layered category pages. I'm using this code : <referenceContainer name="category.product.list.additional"> <action method="append"&...
0
votes
0answers
14 views

Magento2-Refused to load image

Refused to load the image 'http://s3-us-west-2.amazonaws.com/s.cdpn.io/1376484/stacy.jpg' because it violates the following Content Security Policy directive:
0
votes
1answer
27 views

Magento 2.3.5 - Data Migration - Products out of Stock Criteria (Configurable Products mostly)

Another issue regarding data migration from Magento 1.7.0.2 to Magento 2.3.5. Question: What are the conditions for products to display 'out of stock' in Magento 2? I am clearly missing something! ...
0
votes
1answer
18 views

Magento 2 - How to change phone form type

In Magento 2, I want to change input telephone type to number only in all forms. I succeed this change in checkout page by following this post : https://community.magento.com/t5/Magento-2-x-...
0
votes
1answer
18 views

'getFormattedPrice' undefined on checkout

I need to get a list under each product in the form: - Unit price - Amount - Amount based on price and quantity Rewrite template: vendor/magento/module-checkout/view/frontend/web/template/summary/...
0
votes
2answers
22 views

Requirejs not finding third party file

I'm trying to include Firebase in my website, so I decided to include the dependencies through requirejs. Thing is requirejs can't find my files for some reason. What I first tried was to load the ...
0
votes
1answer
14 views

add a session.gc_maxlifetime in .htaccess file

i want to add the session.gc_maxlifetime inside the .htaccess file but I can't find which .htaccess file and how to put it inside , is the code below correct <IfVersion < 2.3> php_value ...
0
votes
1answer
13 views

Add product to quote, if he has zero stock qty

How i can add product (for example with 10 qty) to quote if this product has 0 stock qty.
0
votes
1answer
16 views

Magento 2 - How to display recently viewed products in customer account sidebar?

Can anyone tell me how can I show a recently viewed product section in the customer account sidebar? Any help would be appreciated. Thanks in advance..!
0
votes
0answers
13 views

Magento 2, export data from magento 2 into a csv file using PHP

I need to export data from magento 2 into a csv file. Data needs to be like this: You see, i want to know what customer ordered what and how much. [Customer];<Id>=10447;<KDemail>=kerstin....
0
votes
0answers
11 views

Uncaught SyntaxError: missing ) after argument list for all js files magento2

I have a fresh installation of magento 2.3.3. I want to move m2.2.7 database from to this installation instead of upgrade because there are many other issues in 2.2.7. I moved the db and extensions ...
0
votes
1answer
20 views

Shipment emails not sent for new orders after upgrade to 2.3.5 - can still send for old orders without errors

When I press "Send tracking information" in Magento admin panel for a shipment there is no email sent and Magento displays the tracking info in the browser. For old orders were shipments were created ...
0
votes
0answers
13 views

Magento 2 Customer Scope Global VS Magento\Directory\Model\AllowedCountries

I have created many different Stores and set Allow Countries to each store. when using Magento\Directory\Model\AllowedCountries, $getAllowedCountries = $this->allowedCountries->...
0
votes
0answers
10 views

Eway Payment Gateway Not work in Magento 2.3.0

I am facing error {"error":"Error happened when getting access code, please try again later"} AND http://cityflowersales.com/rest/default/V1/carts/mine/payment-information 400 as I am using eway 3.0.5 ...
1
vote
0answers
23 views

Magento 2 : how to add color swatches on list page

Is it possible to add color swatches on the list page and color dropdown on the product view(detail) page?. Please check below image, I added color attribute as a dropdown: So by default on the ...
0
votes
0answers
14 views

How to bring Catalog page default sidebar to Product Detail Page

I'm using Codazon Fastest Theme (food-drink) variant. I have enabled layout="2columns-left" in /app/design/frontend/Codazon/fastest/food_drink/Magento_Catalog/layout/catalog_product_view.xml Now all ...
0
votes
0answers
6 views

Magento Undefined Less Variables After Upgrage

I upgraded from magento 2.2.9 to 2.3.5 and now I am getting this error. I looked in my custom theme and there is no file /app/var/view_preprocessed/pub/static/frontend/Corra/graphik/en_US/css/source/...