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
-3
votes
0answers
20 views

How I can get Api visa for free [closed]

how I can link Magento to Visa Api key to create a powerful web shop I am newbie please if can provide a detailed guide in spanish
0
votes
1answer
38 views

Overriding GetDirectoryTree.php - preference not working

Having issues overriding Magento\MediaGalleryUi\Model\Directories\GetDirectoryTree.php. It is related to a current Media Gallery bug that causes Folders not to display (https://github.com/magento/...
0
votes
0answers
15 views

What cron job modify the vendor

Which cron job may modify the code in the vendor/magento folder? My magento version is community 2.3. And the only task into crontab is "php bin/magento cron:run". I have neither configured &...
0
votes
0answers
6 views

additionalOptions labels not updating on store view (language) switch

If you add an item to the shopping cart and then switch to another store view, the additionalOptions labels are not translated. They stay in the language from where the item was added to the cart. Is ...
0
votes
0answers
7 views

Custom Options Accordion only working for alternate options

Good afternoon! I have today wrapped our product custom options inside an accordion to reduce the height of the block for products with multiple categories of options, however the accordion sections ...
0
votes
1answer
15 views

magento2 What is the purpose of email_catalog table

I am getting some errors while importing products in admin Error code is (attached screen-shot) General system exception happened Additional data: SQLSTATE[23000]: Integrity constraint ...
0
votes
0answers
13 views

cognito in magento 2

I have read all the documents dev doc of Magento from adobe. I understand that we can describe the dependencies in composer.json for each module. but I want to use Cognito as well with the existing ...
0
votes
2answers
22 views

Error validating module $_GET $_POST, $_REQUEST

I have errors validating my module in Marketplace Magento 2.4 Direct use of $_GET Superglobal detected. Direct use of $_POST Superglobal detected. Direct use of $_REQUEST Superglobal detected. how ...
0
votes
0answers
21 views

how to regenrate every product url with category path magento 2

Hey there i have been searching for solution of my issue i have multiple product slider widget in diffrent cms pages but the url of that prodcucts are http://127.0.0.1/kisna/new-prodcut.html and on ...
0
votes
0answers
8 views

Marketplace submission fails but with no errors in it

I try to submit a module to the marketplace but it fails. When I want to see the reason it fails, I get no relevant JSON back. What can I do? The JSON returned is: {"tool":"phpcs",&...
0
votes
0answers
13 views

After translating to Spanish magento 2 the header disappeared and the footer appears some bugs

I made a language change in magento, but after doing it, I changed the theme completely, the header disappeared, the reporting bugs appeared in the footer and the responsibe tab disappeared Footer
0
votes
1answer
33 views

Display a static block in Homepage listing all categories

I'd like to display a static block in my CMS Homepage which lists all 1 level categories. How should I do?
0
votes
0answers
13 views

Magento 2.3 - Why observer triggers multiple times on 'newsletter_subscriber_save_after' event?

I am trying to send email when customer subscribes/unsubscribes from newsletter, however, my observer is triggering three times for some odd reason. Any ideas why or how to prevent it? The following ...
0
votes
0answers
11 views

How to get columns header of csv in custom import module

Hi I created custom module for import data by helping module ( https://github.com/Smile-SA/magento2-module-custom-entity-import-export) In this case I need to get csv header names. I tried several ...
0
votes
0answers
8 views

ImageUpload field missing on edit : Uncaught TypeError: Cannot create property 'previewType' on string

I have a custom ImageUploader Issue : When I try to create a new Object, the image field appears and works fine. Image send to my media dir and the name saved in database. But, when I try to edit the ...
0
votes
0answers
10 views

How to set header on transportbuilder magento 2

transparent png's get a black background in email template issue. How to set header on transport builder magento 2 header('Content-Type: image/jpeg'); header("Cache-Control: no-store, no-cache, ...
0
votes
1answer
14 views

magneto 2 migration tool installation error

time of installing migration tool in magento2.2.7 getting error "vertex/sdk 1.0.0 requires ext-soap * -> the requested PHP extension soap is missing from your system". But soap is already ...
0
votes
1answer
22 views

How to GetData of attribute value in child

I am trying to get attribute value "barcode" for child product in magento2. Below code working for cofigurable parent product. $_product = $this->getProduct(); $_barcattr = $_product->...
0
votes
2answers
32 views

Where to look to get Magento Quality Patches as .patch or .txt file?

I am having issue of cron job resulting in error due to process a large number of items. I've checked logs but it fails without any log in cron_schedule table. After searching for some time I found a ...
0
votes
0answers
13 views

How to Dynamically Schedule CRON Job in Magento 2?

The CRON job feature that Magento 2 brings in, lets the store owner schedule particular activities to be executed at a particular time. With the help of CRON job, the store owners can set a specific ...
0
votes
1answer
29 views

How to override _getHtml() function form topmenu.php file in Magento 2

I want to override _getHtml() function from topmenu.php file using block. So Please help me THANKS.
0
votes
0answers
8 views

How to generate qr code for specific product in magento 2?

I want to add one column in product listing grid which will be containing qr code for every products and by scanning that qr code it will be redirecting us to that specific product. Since I am new to ...
0
votes
0answers
11 views

Mage2/ImageMagick - PNG images way bigger after caching than the original (and already optimized) ones

For my shop (magento 2.3.6), I use 1000 x 1000 png images for product pages. I display them at 500 x 500 but because of retina display users, I tend to make then two times bigger for better quality. I ...
0
votes
0answers
19 views

Magento 2 : How to set special price as final price

I would like to setup the special price as a final price. In the current scenario, what happens, if the price columns is lesser than the special price, the price is taken as selling price. WHY There ...
0
votes
1answer
33 views

How to Block Customers by their Address in Magento 2?

I want a feature in which user will be blocked by their Address. Like I will add the address in block list of Magento Admin and then user will not be able to purchase anything if I add their address ...
1
vote
1answer
58 views

Magento2 Getting error while downloading module via composer

Magento2 I have created a custom module & uploaded on package list so that anyone can download the module via composer. For downloading the module we are using the following command. sudo ...
1
vote
1answer
34 views

Magento 2 : How to Import Custom Module's Less file in Custom Theme

I am creating custom theme without parent. Now, I want to add custom less file inside Magento_Theme folder. File path : app/design/frontend/VendorName/ThemeName/Magento_Theme/web/css/source/_mycustom....
0
votes
1answer
27 views

How far can one get using magento with no coding experience?

I've been searching since yesterday and can find no information on this question. I'm planning an ecommerce store. At first I just want to keep it as simple as possible. I have 3 partners who are able-...
0
votes
0answers
22 views

Magento 2.3x Multi-Vendor Marketplace, The Vendor Panel is showing a blank white page

I had upgraded the PHP version from 7.1 to 7.2 and also the Magento2 version from 2.2 to 2.3x community version, since then the Vendor panel is not loading and is just showing a blank page. If I ...
0
votes
0answers
22 views

Magento 2 order status after payment completed

So i have this problem where in rare occasions a order is placed and the order status instantly goes "Completed" when it should go "Proccessing". Products are not digital and bank ...
0
votes
2answers
16 views

Payflow and Magento2.4.2 paypal/transparent/redirect 404 error

Is it samesite cookies that could be causing this issue? In issues Chrome:inspect/ it has 10 complaints. Here is the first one, then in another window there are 9 -9 cookies 1 request 1 cookie Name ...
1
vote
1answer
27 views

Magento 2 Vue storefront [search] Can not connect the vue-storefront-api / ElasticSearch instance!

While running npm run dev then after I am getting errors like [search] Can not connect the vue-storefront-api / ElasticSearch instance! Error: FetchError in request to ES: FetchError: request to ...
0
votes
0answers
9 views

Magento 2 not requesting styles-m.css and styles-l.css

This question is already asked here but it didn't get any suitable answer and it's already 2 years old. I did 2 Magento installs, 1 for 2.4.2 and other for 2.4.1 and neither of them asks for styles-m....
0
votes
0answers
19 views

Adding Table Based Shipping Method

We are new to the shipping methods and have a question about using table rates We have a test site at https://southernrecords.co.uk We set the Table Rates up with Price V Destination We have created a ...
0
votes
0answers
20 views

Magento 2 override resource model collection not working

I want to override Magento Reports module and it's not working. here's my code : di.xml <preference for="Magento\Reports\Model\ResourceModel\Report\Collection" type="SZK\Shamsi\Model\...
0
votes
1answer
28 views

How to trigger discount amount calculation in checkout page?

To offer different discounts based on the selected payment method, I have created two Cart Price Rules (one for each payment method) to apply the "Percent of product price discount" action. ...
1
vote
1answer
15 views

How to add .well-known/change-password in Magento?

I would like to add the lasted best practices to my Magento 2.4 and help users change passwords easily by adding a well-known URL for changing passwords. Technology Reference: https://web.dev/change-...
1
vote
0answers
16 views

How to show all images in configurable product before user has selected an option

It is very comfortable to the user navigate between all images product before select an option, but its confusing show all images when user has an option selected. I'm looking for a way to show all ...
0
votes
0answers
18 views

Move custom attribute values from 'More Information' tab content

I have lots of custom product attributes which are assigned to various attribute sets, depending on the product category. These display fine under the 'More Information' tab regardless of which ...
2
votes
0answers
15 views

How to use Youtube Player API with jQuery in in Magento 2?

I'm using Magento 2.4 and i'm trying to use Youtube player API with jQuery in Magento 2 .phtml file like this first: <script> require(['jquery'], function($){ var tag = document....
0
votes
0answers
16 views

Magento 2.3.5 - Getting site stop when disable Infortis_Cgen module

I am getting error of Invalid template file: 'assets/wrapper/combined.phtml' in module: 'Infortis_Cgen'. Actually I want to disable this module due to issue in Recaptcha on Login and Registration form ...
0
votes
0answers
11 views

Magento 2 programmatically create cart rule with specific category condition

I want to add a new cart rule programmatically with condition to allow only specific category. I found the code here to add rule programmatically and its working fine, but how to add the category ...
0
votes
0answers
4 views

Magento 2: Print arabic invoice pdf character problem

I have a problem with Arabic font, when I get short_description in invoice pdf the breakpoint of the letters is not correct. Text before transfer to pdf invoice All Purpose Flour AL BAKER آرد همه ...
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 ...