How is it possible that the Magento core is Deprecated?

It’s been a month since I received the assignment to create a simple redirect payment method, while I had no previous experience in Magento, so obviously, I am trying to find the latest documentation to do this as close to “best practices” as possible.

I have failed to find an up to date documentation, so I decided to “check how the others do it” as it has been suggested to me both here in /r/magento and in the magento stackExchange, so I did just that.

Welp…. The core Magento “Bank Transfer” and the rest of the core implemented payment methods are already deprecated.

How do you **realistically* write good code in Magento?

submitted by /u/AlkaKr
[link] [comments]

I need some help

I accidentally deleted import and export profile on Magento

if I created new in will connect to database automatically or not. I didn’t have full access to see that it can restore from delete profile. So, I really don’t know what to do, right now I create new with the same setting of old profile but didn’t sure it will import and export.

I really need help, Thank you.

submitted by /u/DealResident4715
[link] [comments]

“Uncaught Error: Class ‘MagentoSetupMvcBootstrapInitParamListener’ not found” error on fresh install

Hi all

!

I am working on a website migration, so I did a new CI/CD pipeline, which uses compsoer to install magento2 and merge it with custom pub directory. The problem I have, is, when I do the php bin/magento setup:install command, I receive following error :

PHP Fatal error: Uncaught Error: Class 'MagentoSetupMvcBootstrapInitParamListener' not found in /htdocs/releases/20231116163606/setup/config/application.config.php:29

Stack trace:

#0 /htdocs/releases/20231116163606/vendor/magento/framework/Console/Cli.php(78): require()

#1 /htdocs/releases/20231116163606/bin/magento(22): MagentoFrameworkConsoleCli->__construct()

#2 {main}

thrown in /htdocs/releases/20231116163606/setup/config/application.config.php on line 29

I have been reading forums for hours and I do not manage to get out of this. Magento project-community-edition version 2.4.2.

I did try removing my setup / vendor folders and then doing again the composer install or update, but this doesn’t change anything. I tried going on 2.4.6 version, still same error.

I did try removing these folders bin dev generated lib phpserver setup var vendor and still same errors.

Note, this is the only magento website we have in my org, so I’m really not familiar with it.

Does anyone have an idea? Thanks

submitted by /u/antomaa12
[link] [comments]

Redirect payment method documentation.

I don’t need to mention the lack of Magento documentation so here’s what I need to do and I am having trouble implementing it.

  1. Register a payment configuration page in the Admin (Done)
  2. Register a new payment method in the Front
  3. User clicks Place Order, I make a request afterPlaceOrder and get a code from the external payment service to associate with current Magento order for later reference
  4. Redirect user to external url
  5. When payment succeeds/fails they are redirected to the callback URL (Done)
  6. Create a callback url to handle order status logic (Done)

I am having massive issues finding how to register a simple payment method that only redirects and nothing else. Everything I’ve found so far, including the official code examples and the documentation are outdated (Doc 1) | (Doc 2)

How does one actually learn how to do stuff in Magento?

submitted by /u/AlkaKr
[link] [comments]

Bulk edit prices with advanced pricing for quantity discounts?

Hey all! I am begging the souls of reddit to help me save hundreds of hours of tedious work.

For context, I work at a trophy shop that uses Magento for our ecommerce website. We are in the process of updating the price of all our medals. We have hundreds of styles of medals, and each style comes in multiple sports/reasons/places – so it’s thousands of individual listings to change. The pricing on these is one price for a single item, then there’s breaks for 10, 50, 100, etc.

I am looking for a way to bulk edit pricing because each style of medal costs the same, so rather than going into 20 or so products that all have the same price breaks and repeating it over and over, there must be a way to select multiple products and update the pricing at once?! I know from the Products page I can select multiple items, then Update Attributes, and price is one attribute I can alter for multiple at once, but it’s ONLY the single piece price, it doesn’t have the option for advanced pricing with the quantity discounts.

I cannot be the only one who needs this functionality, so I figure I must be missing something. I have NO formal Magento training, just what I’ve taught myself from good old google, but I’m basically solely responsible for maintaining this website. Being able to change prices like this would save me so much work. :}

submitted by /u/gabiz0rs
[link] [comments]

Problems with execution after installing Magento2 Open Source to localhost

Hello,
I have the installation of Magento2 Open Source on localhost Windows 10, version 2.4.6 (currently in composer installation)
https://experienceleague.adobe.com/docs/commerce-operations/configuration-guide/setup/initialization.html?lang=en
made (XAMPP, OpenSearch, everything fresh/up to date), additions and process see below (*).
Unfortunately, access to the standard/admin (/admin_xyz was generated) is not possible.
127.0.0.1 is only assigned to localhost (in hosts).
http://127.0.0.1/magento2 delivers “404”, http://127.0.0.1/magento2/pub/ delivers a start page with text, amaong other things “CMS homepage content goes here.”, only completely unformatted.
In the console, “Laden fehlgeschlagen für” “http://127.0.0.1/magento2/static/version1700649929/frontend/magento/de_de/mage/requirejs/mixins.js“,
http://127.0.1/magento2/static/version1700649929/frontend/magento/luma/de/requirejsjs-config.js“, etc.
The “static” directory is completely missing.
* Process of the installation:
Adjust PHP.ini settings at XAMPP:
https://experienceleague.adobe.com/docs/commerce-operations/installation-guides/prerequisites/php-settings.html?lang=en
pcre.jit=0
Max_inPut_time=1800
memory_limit=4G
max_execution_time=18000
Username=public key and password=private key are stored.
C:XAMPPApacheConfhttpd.conf
Loadmodule rewrite_Module modules/mod_rewrite.so activated
Find all Occurrences of *allowoverride none *and change to *allowoverride all *
C:XAMPPhtdocsOpenSearchbinOpenSearch.bat execute and let them actively (like autostart?)
C:XAMPPphpmyadminconfig.inc.php: Password set
Composer Create-Project-Repository-URL=https: //repo.magento.com/ magento/project-community edition C:XAMPPhtdocsmagento2
C:XAMPPhtdocsMagento2VendorMagentoframeworkviewelementtemplatefilevalidator.php, line 138:
$ realpath=$ this-> FileDriver-> Trealpath ($ path);
=>
$ realpath=str_replace (‘\’, ‘/’, $ this-> filedriver-> TroLalpath ($ path));
C:XAMPPhtdocsMagento2VendorMagentoframeworkimageadaptergd2.php, line 96:
if ($ url && iset ($ url [‘scheme’]) &&! In_array ($ url [‘scheme’], $ allowed_schemes)) {
return false;
}
=>
if ($ url && iset ($ url [‘scheme’]) &&! In_array ($ url [‘scheme’], $ allowed_schemes) &&! File_exists ($ filename)) {
return false;
}
php bin/magento setup:install –base-url=http://127.0.0.1/magento2/ –db-host=localhost –db-name=magento2 –db-user=root –db-password=adminxy –admin-firstname=admin –admin-lastname=admin –admin-email=[email protected] –admin-user=admin –admin-password=adminxy –language=de_DE –currency=EUR –timezone=Europe/Berlin –use-rewrites=1 –search-engine=opensearch –opensearch-host=127.0.0.1 –opensearch-port=9200 –opensearch-index-prefix=magento –opensearch-timeout=15
php bin/magento indexer:reindex
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
Of course, searched intensively, but no solution, especially for the new version, was found.
Can someone help?
Thanks in advance!

submitted by /u/BY-Reddit
[link] [comments]

[JOB] I’m considering looking into some positions working with Magento again and was wondering, what’s the current state of the job market for Magento developers?

Hi everyone, my question’s basically in the title but here’s a bit of background on where I’m coming from:

  • I’m a senior fullstack developer with ~15 YoE overall (roughly 10 of those years being in the workforce), primarily with PHP and JavaScript (+ TypeScript)
  • I worked with Magento for a couple of years back before the pandemic, but then got a new job in 2020 due to COVID layoffs
  • Since then I’ve been working primarily with TypeScript (React / Next) and PHP (Laravel)
  • I’m still in e-commerce but haven’t touched Magento since switching to my current role

One of the last major projects we worked on at my previous job was converting a handful of Magento 1 sites to Magento 2, so I have some experience from that, but otherwise the majority of my time was spent on Magento 1.

What’s the market like these days for developers working with Magento? And as someone who’s very comfortable with the tech stack, but essentially coming at Magento fresh again, what are some good resources that can help me get back up to speed with it?

submitted by /u/parks_canada
[link] [comments]

Magento currencies scope.

I’m reading on the difference between Website, Store and Store view.

All are clear, or at least becoming clear, reading more about those and the documentation, except one.

I don’t understand the concept of currencies being different at the Website level, then same on the Store level and then again different at the Store view level?

How would a store that only accepts euros, be able to have 2 store views one accepting Dollars and another accepting Polish zloty, for example?

I haven’t been able to find a resource that explains this at all.

Any guidance would be greatly appreciated.

submitted by /u/AlkaKr
[link] [comments]

Trying to add jspdf library in magento2

Magento noob here.

I have been trying to add jspdf library in magento2 and have followed following few answers in magento stackexchange. Still the constructor jsPDF() is shown as undefined.

https://magento.stackexchange.com/questions/330020/magento-2-include-js-library-without-require-js

https://magento.stackexchange.com/questions/237275/how-to-add-js-library-to-magento-2

https://magento.stackexchange.com/questions/300838/non-amd-module-jspdf-magento-2

I need to convert html content to pdf and I have tried to implement the jspdf library which are cdn links in html and it is working fine in that case.

https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.3.2/html2canvas.min.js

https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js

I have saved the above two links as separate js file so it can work on magento2 but the constructor error keeps showing.

submitted by /u/LifeofPlight
[link] [comments]