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
3answers
44 views

Magento2 getting error after removing/deleting custom module

Magento2 getting error after removing custom module. In this module I have created a custom customer attribute. ERROR: Class Test\Test\Model\Customer\Attribute\Source\TestAttribute does not exist [] []...
-1
votes
0answers
11 views

Can we Override trait file with plugin?

I want to make some modifications in the trait file. how can I override trait file in magento2?
0
votes
1answer
12 views

How to force reviews to appear on page load? trigger processReviews

I'm trying to make customer reviews appear on the PDP page without clicking on the reviews button. On reviews tab click, ajax request is being sent to the server and I want to send this request on ...
0
votes
0answers
22 views

How to get the updated customer record in magento 2

I am trying to fetch the customer record which is updated. Customer update implies both customer entity as well as customer's address. I am relying on the updated_at column which technically says that ...
0
votes
1answer
19 views

SiteMap problem after URL change

I changed my domain name after a Magento 2 installation, modified the Magento configuration to put the new URL there but the generated sitemap still shows the link of the products with the old URL. I ...
0
votes
1answer
13 views

Cannot see options Check out as Guest or Login in Magento 2

For the check out in Magento 2.2 , I need to show this option as per image below. However, I can't see it after setting up "check out as a guest" option in the Dashboard. Please let me know ...
0
votes
0answers
10 views

Magento 2 - How to upload image and some post data to REST API (POST)

I'm working with a Magento 2 project that need to upload image and post data using a POST endpoint How can I send image with post array data.If post request sample available then share. Thank you very ...
0
votes
1answer
27 views

Remove particular block from specific store view

We can use following statement to remove the particular block, but this will remove it from all views.: <referenceBlock name="customer-sold" remove="true" /> Is their any ...
0
votes
1answer
60 views

How to get all scheduled changes for a product in Magento commerce?

I have added 2 schedules to a product in Magento as shown below. Below code gives list of all schedules present in our database but there is no sku/product_id relation here. <?php namespace ...
0
votes
0answers
17 views

Magento2: How to show instruction in custom payment method?

I am using magento2.3.1. I have created a custom offline payment method with the help of this tutorial and it's working fine. Now I am adding the custom instruction in this payment method. I have done ...
0
votes
0answers
17 views

How do I change default option in magento 2 admin menu?

I'm trying to remove the prefix name option for customer on checkout page. I know we can disable it in admin menu but is there anyway I can change the default value of Show in Storefront from yes to ...
0
votes
0answers
7 views

Sever slow log showing

how we can stop this proccess in query log script_filename = /abc/abc/public_html//abc/index.php [0x00007f2dd8221e60] array_merge() /abc/abc/public_html/vendor/colinmollenhour/cache-backend-file/File....
0
votes
0answers
11 views

Getting the error in mollie payment method in magento2.4

I'm using the mollie payment in magento2.4.2 in checkout page I'm getting this error Message: Warning: array_key_exists() expects parameter 2 to be array, null given in /vendor/mollie/magento2/Plugin/...
0
votes
0answers
10 views

Error log showing a template file but module not found in my files

My Magento 2.2.6 Website is become very slow when we are adding product or updating product in backend and some time website is crashing . So when i check the log file i have found following error ...
0
votes
0answers
8 views

Magento 2 : get simple product data using config product id mysql query

I need some help with creating a mysql query that fetches a simple product from config product id/sku a simple product with attributes such as id name sku price Any thoughts how this can be achieved ...
0
votes
1answer
14 views

How can i add cookies in pop when user visits it should be viewed only once, after refresh the page should not be seen

define([ "jquery", 'Magento_Ui/js/modal/modal' ], function($,modal){ return function storeswitcher(config, element) { var modaloption = { type: 'popup', modalClass: 'modal-popup', responsive:...
0
votes
1answer
14 views

Magento 2 : Reindexing error

sudo php bin/magento indexer:reindex catalogsearch_fulltext Gives error Catalog Search index process unknown error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'e.media_gallery' in 'field ...
0
votes
1answer
23 views

Why a disabled module throws error in magento compilation?

I have a module "A" that depends on another module "B". The dependency is defined in composer.json and in the <sequence> node. But this shouldn't be relevant. However, I'm ...
0
votes
0answers
10 views

Magento 2 only flat rate shipping method is working. Table rate and flat rate not working

I have a magento 2 installation on a server and I tried to get the table rate shipping method in. However it is not working it shows: "Sorry, no quotes are available for this order at this time ...
0
votes
1answer
18 views

How to verify from CLI that Magento was installed successfully?

I'm running the setup:install command in an automation script to perform the initial Magento installation. How to determine in another script (POSIX sh) that the previous run of this command has been ...
0
votes
2answers
16 views

How to add a full width area in the homepage with 2 columns with right bar?

I'd like to add a full-width area (in order to insert a block) in my Magento homepage which is now set to 2 columns with right bar layout. Should I add a new section before the main content? How? Or ...
0
votes
0answers
12 views

Magento 2 how to update cart price is modified?

I have a form, and when I submit the first time it adds a product with a custom price, that works fine, then I go to the checkout without problem, but when i hit the back button on browser and change ...
0
votes
0answers
18 views

error in responsive menu

In the first load of the page, the menu appears as follows: Does anyone know why this happens? (I already read the magento documentation on responsive handling but I have not found any solution)
0
votes
0answers
10 views

How to set custom billing address in magento 2

vendor/magento/module-checkout/view/frontend/web/js/model/checkout-data-resolver.js if (quote.billingAddress()) { selectBillingAddress(quote.billingAddress()); // here i get billing address value ...
0
votes
0answers
9 views

How can I show Magento data in Power BI?

I want to integrate Power BI with Magento to show case all Magento data in Power BI reports. How I can connect directly with using any 3rd party add-ins or extensions.
0
votes
0answers
14 views

How to add product name in parent category in magento 2

i have one parent category like name is :- "test". So i want to show product name in test sub-category.Like this structure. Test - main category - Tops - product name
0
votes
0answers
7 views

Magento 2 Target Rule constantly invalidating in EE

I am using Magento EE - 2.3.1 version with Varnish and my debug.log file is full with the below log report.DEBUG: cache_invalidate: {"method":"GET","url":"<...
0
votes
0answers
8 views

Magento2: How to create global configuration of a custom product attribute?

I am using Magento 2.3.1. I have created a custom product attribute using data patch, attributed created successfully and I am able to save value in this. Now I want to create global option for this ...
1
vote
0answers
20 views

Magento 2 : Get product name using mysql query

I am using Magento ver. 2.4.2 Is their any way we can get product attributes by id using mysql query ? I also need some custom attributes for product in same query THE BELOW SQL QUERY WORKS BUT GET ...
0
votes
0answers
17 views

Invalid template file in a payment gateway

I installed a payment gateway extension, and when placing an order with that specific payment gateway. I cannot view the order in the admin panel, when I click on the order number to view it, I get ...
0
votes
2answers
30 views

magento installation 2.4.2 404 whoops my bad

php bin/magento setup:install --base-url="http://localhost:8054/magento241/" --db-host="localhost" --db-name="magento" --db-user="root" --db-password="&...
2
votes
1answer
28 views

Magento 2 : How to bulk update product atributes?

I am trying to update bulk product attributes where i need to update attribute to "allow in search". Any way to achieve it ?
1
vote
0answers
7 views

Replace thumbnail with small image in Admin Catalog Products

I'd like to display "small image" in place of "thumbnail image" for each product in magento administration Catalog > Products. I tried editing file /vendor/magento/module-...
0
votes
1answer
14 views

Collection DataProvider - Strange behavior

I've been killing for hours and no result. I don't understand this strange behavior, can anyone please explain this to me? It's unbelievable ... Thanks for All!!! $this->collection = $Collection; $...
1
vote
1answer
13 views

Custom module Cron job on specific time not working

I've written a custom module and the module has to run every Wednesday at 07:10. I've written a cron job and in the schedule. Below is the code added in crontab.xml <?xml version="1.0"?&...
0
votes
2answers
38 views

I want to create custom mini cart in magento2

I want to create custom cart Like this And show my custom table products in this custom cart.
0
votes
1answer
11 views

I have confusion take of sales_sequence_profile table in Magento 2

Can anyone explain where what's the use of this table or where it will work? Thanks
0
votes
1answer
13 views

Paypal (payflow) returnurl change Magento 2.4

I have 2 websites both using same magento 2.4.2 platform and template. I use Payflow Pro for payment checkout. One appears to be operating correctly. But the other hangs when waiting for Paypal ...
0
votes
0answers
19 views

target.extend(mixin) is not working in magento2.4

target.extend(mixin) is not working in my code. I tried multiple changes but those are not working define([ 'jquery', 'jquery/ui', 'ko', 'Magento_Checkout/js/model/step-navigator' ], ...
0
votes
1answer
19 views

Getting error on extending in Custom Module vendor/magento/module-shipping/view/adminhtml/templates/order/tracking/view.phtml file in Magento 2.4

On extending the file vendor/magento/module-shipping/view/adminhtml/templates/order/tracking/view.phtml File in Magento 2.4 getting error like 1 exception(s): Exception #0 (Exception): Warning: ...
0
votes
0answers
14 views

Cart Price Rules - Discard Subsequent rules with Exceptions

should sound weird, but is there a way to allow another rule to work though discard subsequent rules is set to Yes. I tried giving Priority 1 to my current rule, and priority 0 to the other rule, they ...
0
votes
0answers
17 views

Magento 2 : From where the total discount from cart is returned

I need to know from where the total discount after all validation & calculation is returned for a cart ? I need to get total discount for a cart/quote.
0
votes
1answer
15 views

How can I set customer company , city and state information in register success email in Magento 2

how can I set customer company , city and state information in transport mail template when customer register successfully. I try this one but they not working. <p class="greeting">{{...
0
votes
0answers
14 views

Magento 2: How can I add Customer group wise minimum quantity in specific products?

How can I add customer group wise minimum quantity in product page? enter image description here
0
votes
0answers
17 views

Magento2 not saving custom order field

I have added an extra field to my quote and order model to capture some extra raw data. All works fine and the data is nicely persisted. # dbschema.xml <?xml version="1.0" ?> <...
0
votes
0answers
11 views

Billing address missing when payment page get refreshed

billing address is getting missed i want to store billing address data in local storage and then fetch data\ /** Checkout adapter for customer data storage @api */ define([ 'jquery', '...
1
vote
2answers
42 views

What is javascript minification and bundling of files in Magento?

What is javascript minification and bundling of files in Magento? Should I enable javascript minfication and bundling for my Magento 2 website ?
0
votes
1answer
11 views

Unit Test for getOrderByIncrementId question

I've started with writing and figure out unit testing in Magento 2. I want to write a test case for getting an order by the increment id. This is my function which I want to write a test for: /** * @...
0
votes
0answers
9 views

Yotpo system log error

I have 2 errors in system.log that repeat every time. From what i saw they don't affect functionality of the site but I want to resolve them: [2021-07-13 07:07:38] main.INFO: Broken reference: the '...
0
votes
0answers
16 views

Magento 2 admin : After login need to redirect on requested page instead of admin Dashboard

If I navigate to below url http://127.0.0.1/magento/admin_128cny/sales/order/view/order_id/7/key/79d036813774ed13be5fcc65e3c334c466256557b29ced5d1ecb6c6647c423fd/ it redirects to admin login page, ...