Skip to main content
The 2024 Developer Survey results are live! See the results

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
10 votes
3 answers
2k views

Magento 1 Class Rewrite in Magento 2 with Dependency Injection System

Poking around Magento 2's core code, it looks like the old class rewrite system has been ripped out and replaced with a new dependency injection system. Unfortunately, there's no documentation for ...
Alana Storm's user avatar
  • 44.4k
2 votes
2 answers
1k views

Build Magento module from the command line

looking at the output of mage shell script it seems that it is possible to build a module via the command line. Does anyone have and idea how i can do it? Connect commands available: =================...
Evgeni Ivanov's user avatar
3 votes
4 answers
308 views

Translating an Extension

Are there any tools for generating a csv file for translations of a module? I.e. detecting calls to __() within a module and outputting the information into a csv ready to be used as a translation ...
Peter O'Callaghan's user avatar
5 votes
3 answers
3k views

Constructor for Magento Controller

I need constructor or init function that can be run for my custom module. I need to call it every time when request made to my module's controller in magento.
Kamesh Jungi's user avatar
3 votes
1 answer
640 views

Magento 2 Tests in Magento

We are looking to start using testing for our builds and are looking at the best tools to use. I noticed there is a port of the Magento 2 tests https://github.com/techdivision/...
Paul's user avatar
  • 1,726
2 votes
1 answer
4k views

Check If JQuery Is Already Included In Head

I want to check if jQuery is already included on the page. I have seen several methods and finally settled on the following: if ( (typeof jQuery === 'undefined') || !window.jQuery ) { document....
Jongosi's user avatar
  • 1,521
4 votes
1 answer
270 views

Admin field type with arbitrary number of subfields

I'm making some custom module for magento and need backend settings for my custom entity. So far all was ok, I made a section through xml, made general CRUD actions and some settings that are ...
nevermourn's user avatar
3 votes
3 answers
145 views

How to deal with site configuration when building new site

What is the best way to deal with site configurations when building a site? I am currently religiously using upgrade and install scripts for everything, meaning a zero configuration state when moving ...
Marty Wallace's user avatar
4 votes
2 answers
3k views

Magento ensure module config is loaded last

Is there a way to ensure that a module and its config xml is loaded last in Magento, or at least after a specific other module? I want to avoid using the <depends> tag because it may not be 100%...
Marty Wallace's user avatar
2 votes
1 answer
2k views

Need help passing form values from checkout to a redirect page that goes to an external payment gateway

I need help in developing an external payment method module. I have so far already managed to get the method to appear correctly on the admin, and on the checkout page. The next step is to send some ...
Unckmania's user avatar
3 votes
1 answer
85 views

Admin module with as many image slots as user needs?

Something I use a fair deal in wordpress is allowing users to duplicate a field, so i provide one image slot and they can click a [+] button and get another image slot. I'm trying to make a quick ...
Chris Morris's user avatar
  • 1,517
2 votes
1 answer
2k views

Multiple Where Statements

I have the following line of code $select = $read->select() ->from($batchTable,array('id','batch','strength','flavor','brand')) ->where('status', 1) ->...
Jeffrey L. Roberts's user avatar
2 votes
1 answer
142 views

Setup Script Not Working Properly

I need to add attribute through a setup script.Attribute properties are working,but the frontend properties are not applied as specified in the setup script.For example, visible_on_front ...
blakcaps's user avatar
  • 1,965
2 votes
3 answers
2k views

Magento 2 : Impossible to retreive the customer id of the session in an external script

I created an external script test.php inside Magento 2 at the root. But, I don't succeed to retrieve the customer ID of the session in this external script. The script is as follows: <?php ...
keniosor's user avatar
8 votes
3 answers
30k views

Best way to bulk update stock and price for thousands of products?

I am migrating a custom e-commerce site over to Magento. We have well over a hundred thousand products. Many are drop shipped from a number of suppliers. Several suppliers can provide the same ...
mvivanco's user avatar
4 votes
3 answers
1k views

Should I use Magento 2 pre alpha already for production shops? [closed]

I know, it is alpha software, but at least there are lots of tests and bugfixes which are not in Magento 1. If I write own modules for Magento 2, is the module structure very likely to change? Are ...
Alex's user avatar
  • 13.9k

1
955 956 957 958
959