Questions tagged [module]

Questions about developing custom modules

Filter by
Sorted by
Tagged with
1
vote
2answers
24 views

Error : Incompatible argument type

I am facing an error while running command di:compile This is my block file <?php namespace Company\Module\Block; class Booking extends \Magento\Framework\View\Element\Template { /** * ...
1
vote
1answer
32 views

Type Error occurred when creating object, attempting to use custom model from custom module

Yes I know, another "Type Error occurred when creating object" post... In addition, I'm probably going about this in a way that will make the seasoned M2 dev need a moment before reading ...
0
votes
2answers
27 views

I want to update order status using magento's rest api

I want to use Magento Api for Updating Status of order in Magento 2.3.5 so anyone can guide me from scratch how can i use api. I also want to know in Magento how many default api is there and how to ...
0
votes
2answers
35 views

Get system config data in custom module

I've seen a couple of things about this but I can't seem to get the value I have <field id="template" translate="label" type="select" sortOrder="3" ...
0
votes
2answers
44 views

How to Change Order Status using Api in magento 2.3.5

I want to develop new module for changing order status using Api in magento 2.3.5 so can anyone have idea then please share with me. I want to create order status and change it using Api.
0
votes
0answers
23 views

Magento 2: Create a cart price rule with conditions programmatically (for coupons)

I want to generate a coupon, when a new user registrates on the website. For that, I use this module, which works very well: https://github.com/php-cuong/magento2-newsletter-coupon-code In this module ...
0
votes
1answer
28 views

I want to create column in sales_order table and view custom field on order edit section in magento 2.3.5

I am added one custom field in checkout address form and i want to store that field data in Database and also display this field in admin order edit page in magento 2.3.5, so anyone can have idea ...
1
vote
1answer
19 views

How can i get customer data after registration?

I have the following code but it is not working. vendorName/moduleName/etc/module.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
1
vote
1answer
42 views

Magento 2 - Custom Module JS error

I am trying to add custom js file using my custom module. But getting below error in console. Uncaught ReferenceError: Plyr is not defined DevTools failed to load SourceMap: Could not load content ...
0
votes
0answers
18 views

How to make my own module for attribute sets for magento backend?

Hello I´ve made my own module for magento backend for a new attribute set module from the menu just like the one magento uses, but I don´t know how to get the list for the attribute sets to print it, ...
0
votes
0answers
15 views

Update/overwrite Third party module which is installed in vendor folder

I have two extensions installed via composer and that is in vendor folder. I have done some customisation on those modules ie: updating the files in the vendor/mymodule/ folder. Now after a Magento ...
0
votes
0answers
11 views

How to add Magento Default Captcha to all forms

I want to add the Magento Default Captcha to all forms of my magento 1.9 store. I want to add the default captch on forms like Contact Form, Review Form, Register Form, Onepage Checkout, Customer ...
0
votes
0answers
27 views

I want to enable or disable Module according to system.xml field value

I want to enable or disable module according to the yes/no field value of system configuration file. i have developed one system configuration setting in that i have created in admin-side. please ...
0
votes
0answers
8 views

Using paid modules for multiple websites

I have a paid module which is integrated in website. Can I integrate the same module in another website. In case if I use it would cause any legal issues. How could they track the module usages?
0
votes
0answers
23 views

Custom template file is loading after hard refreshing the page in Magento 2

I override vendor sale module template file Module-sales/view/adminhtml/templates/order/create/sidebar/items.phtml in custom module with directory name Vendorname/Companyname/view/adminhtml/layout/...
0
votes
2answers
29 views

where is simple product module folder?

From the Magento , I can tell by folder name Module-bundle is for bundle products Module-configurable-product for configurable product so what about the simple product? I can't find where it is, I ...
0
votes
0answers
236 views

Magento 2.3 - Display text Instead of 0 for 0 Price products

For my Magento 2.3.3 store lot of products ASK Price condition, How efficiently achieve this case, Anyone helps me with preference or module?
0
votes
1answer
39 views

How to test module in different Magento and PHP versions using CI?

I have an open-source module in Github and I'd like to automatically test it via CI using the Magento Coding Standard and different Magento installations in different PHP versions. For example: ...
0
votes
0answers
16 views

Orders module Not working

my Site is working fine but when i open orders from admin panel then it shows error. i googled and try to fix issue but i failed, i got this problem after configuration of payment method. If anyone ...
0
votes
2answers
45 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
7 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
2answers
45 views

Magento 2.3 extend product list collection in child template - error on search

We use the following method to extend the product list collection inside a child template. This works fine for the product catalog list page, but gives a error (skips the load from the element) on the ...
0
votes
0answers
21 views

How to get the deployed version number via PHP?

I need to use the updated deployed version of static files in my module. How could I get it?
0
votes
0answers
16 views

Bypass Web Setup Wizard for Extension Install

Scenario: I am trying to install the authorize.net module/extension. I have run the Web Setup Wizard: "Your current PHP memory limit is 256M" I changed the maximum memory to "=2048" in php.ini. I ...
0
votes
0answers
6 views

Magento 2 Grid Add column with href and hash tag

i want to show url in grid with hash tag below it currently used , is there way to hash tag in end $this->addColumn( 'edit', [ 'header' => __('Download'),...
0
votes
0answers
10 views

Folder and file structure for state restriction module in Magento 2.3

I am new to Magento and am using the following "how to" guide to create a state restriction module in my Magento 2.3.3 instance: https://www.dckap.com/blog/how-to-restrict-specific-us-states-in-...
0
votes
0answers
8 views

Problem of config after installing module

After I have enabled my new module , I got this error with no details where the error persists so I can debug it, has anyone has an idea about this 1 exception(s): Exception #0 (Exception): Notice: ...
0
votes
2answers
27 views

Correct way to change core module code

I have one line of code in a core module (contact) in which I need to change. What is the correct way to make the change to change/overwrite this file?
0
votes
0answers
14 views

Magento 2 - Do I have to create a new theme and recode my extensions after upgrading to magento 2 enterprise?

Do I have to create a new theme after upgrading to magento 2 enterprise and will my extensions stop working?
0
votes
0answers
19 views

Module not loading after update to 2.3.5?

I updated my Magento 2.2 shop to Magento 2.3.5. Now I got the problem that one of my modules (FireGento_MageSetup) is not running any longer. Its in the vendor folder, it has the registration.php and ...
0
votes
0answers
6 views

Reference different CollectionFactory in parent module based on which child module calls it

TL;DR How can I make a Module's classes (e.g. Blocks, Helpers) reference different CollectionFactories based on which child Module calls it. Without hardcoding these into the parent. (parent module ...
0
votes
1answer
50 views

Magento 2: How to insert a custom JS file in the header of custom theme. This custom JS file is placed in pub/media/pmm-custom directory?

I'm looking for a way to add a custom js file in the header.phtml file. I don't place custom JS file under theme_directory for a obvious reason. Could anyone please tell me how to override header ...
3
votes
2answers
146 views

how to control the sort order of shipping method's rates in the same carrier class?

I'm trying to build a custom carrier-class (shipping method) that display shipping methods based on time/date related third party API, I tried to find out a solution to sort the below options but I ...
0
votes
0answers
17 views

Store external API expire time in Custom Module

I use ajax to get the access token from the external API. How can I store the expired time across the site and the ajax only call again when the session expired? test.js /helloworld/index/display is ...
0
votes
0answers
7 views

What is the best way to set up a global “development” module in my development environment for all branches?

I want to be able to use some development specific modules for testing on different branches. Can this be done using modman for M2, if so how? In some situations I could ask the repository manager to ...
0
votes
1answer
64 views

How to remove cache from my Block class?

I need to remove the cache from my Block class, even if it removes the cache from the entire page. How could I do it?
0
votes
0answers
25 views

Magento 2 href to Add product link from template phtml

I Have made custom admin page view module, now i want add button there click on which should take user to add product URL . i tried below but it is not working <a href="<?PHP echo $...
6
votes
4answers
4k views

Installation at 51% Module 'Magento_Theme' Error in Magento 2

Magento 2 Installation error at 51%. I am having an issue installing Magento 2. I followed every step and everything went fine until installation.The installation stops at 66% I tried to find a ...
1
vote
1answer
21 views

Magento 2 - store media in module folder and access it in template

My extension comes with an icon, where can I place it in my module and how can I load it in the modules template? Template: <img src="/media/icons/new-badge.svg" class="new-icon" alt="NEW">
3
votes
4answers
715 views

Magento 2.3.5 we found conflicting component dependencies

I have tried every possible solution I could find on the internet. From increasing the MEMLIMIT in the php.ini to 2G to removing the required tags in composer.json and so on. This is a Vanilla ...
0
votes
0answers
19 views

Magento 1.9 template overwrites between default theme, custom theme and custom module

I developed a Magento 1.9 custom module and have some strange situations that in my opinion can't be handled properly. My module needs to overwrite some specific templates like /catalog/product/view....
0
votes
0answers
19 views

Error in update (Installing Modules through Admin)

I have been struggling for sometime now getting modules to install using the magento connect feature. Im running aws lightsail magento and i have tried to do a clean install with no themes etc and ...
0
votes
1answer
20 views

I get an error when I indicate the path to the Symlink 1.9

I am using the module Image Optimizer and I need to specify the media folder to optimize the pictures. But I don’t have a media folder for the project, there is only a Symlink to the directory /mnt/...
0
votes
0answers
39 views

can not install module with artifacts

I am trying to install new module using artifacts and composer. It returns an error at the end > ([ $COMPOSER_DEV_MODE -eq 0 ] || vendor/bin/phpcs --config-set installed_paths ../../magento/...
0
votes
0answers
22 views

How to make Configuration Product Out of stock to show Price that not $0.00

I used this module as this LINK suggestion but when it out of stock. It shows a price of $0.00 instead of Associates'price. I tried all solutions in searching here. Need Help. I Tried to added this ...
0
votes
2answers
35 views

Override Magento 2 Order Invoice PDF

I can not seem to override the Magento Invoice class. I've created a module, installed it, enabled it. I have the following in my di.xml file <?xml version="1.0"?> <config xmlns:xsi="http://...
0
votes
0answers
125 views

Create an info_buyRequest

I like to use a custom function getProductFinalPrice public function getProductFinalPrice($item, $forReindex = false, $storeId = null) { if (!$this->getDataHelper()->isEnabled()) return; ...
0
votes
0answers
30 views

How to capture authorized payment via admin in custom payment module in Magento 2

I have created a custom payment module and I am able to create a authorize transaction using my payment provider. Now my question is "How to capture this payment from admin panel ?". Because I didn'...
0
votes
0answers
21 views

Move only error message on product view page

can I just move the error message (You cannot use decimal quantity for this product.) under product.info.price?
0
votes
0answers
82 views

composer require problem

I have an error when trying to require artifact module dockergento composer require sm/listingtabs --no-suggest -o --ignore-platform-reqs --prefer-dist Deprecation warning: require.Sm/ListingTabs ...

1
2
3 4 5
60