All Questions

Tagged with
Filter by
Sorted by
Tagged with
1
vote
1answer
28 views

How to set varchar on installschemas

I would like to add a new column inside the magento2 database. Write now i add a \Magento\Framework\DB\Ddl\Table::TYPE_TEXT as the column type. here is my code if(!$installer->getConnection()-&...
1
vote
1answer
56 views

Magento 2 Uncaught TypeError: Argument 1 […] \DataSetup::__construct() […] must be an instance […]

I have an Ubuntu Server 18.04 with PHP 7.0.33 and a working Magento 2.1.7 installation with a working (up to yesterday) module for credit card payment after adding some new modules, compiling and ...
0
votes
1answer
72 views

How to add custom button to product page to three different places (magento 2)?

Button position decide by store owner(using admin panel). There are three positions.if user select test01 button's position others shouldn't be display.(Display only one place depend on user decision) ...
2
votes
1answer
179 views

How to override mini-cart default template html file?

I have Magento 2.2.4 version, And I want to overwrite Magento_Checkout/template/minicart/item/default.html file in my custom module. For this, I created require-jsconfig.js file at below path /app/...
0
votes
1answer
69 views

Cannot add custom topmenu link with plugin

I want to add custom links to the topmen / a submenu in the topmenu (I need the links for custom filters). To achieve this, I have created a plugin: app/code/Vendor/Module/etc/frontend/di.xml: <...
0
votes
1answer
88 views

magento 2 admin not working correctly

I used wamp to install Magento 2 but admin not working correctly, how can I fix it when I opened "inspect" I found this error
0
votes
0answers
67 views

Customer Custom Attribute gets deleted upon update in Magento 2

We are facing an issue while updating customer information from Customer My account section on frontend that is Customer Custom attributes gets deleted upon update or save customer information. For ...
1
vote
1answer
199 views

Magento 2: How to stop event/observer if another already ran

I have 2 events running if subscribe to newsletter is checked on the checkout page. sales_model_service_quote_submit_success newsletter_subscriber_save_after Can i prevent event #2 from happening if ...
0
votes
1answer
224 views

How to publish my module in magento Marketplace?

I have developed a module for magento 2. In particular is a custom shipping method, I would like anybody could be able to use my shipping method. How can I do to put my module downloable. I tried on ...
0
votes
0answers
24 views

How can I call my API of Shipping when the order is placed using my custom shipping module?

I have created a custom shipping method and is appearing in the admin config page, and also is able in the customer order to be selected. Now I need to do an api call to my shipping company when the ...
0
votes
1answer
26 views

How to add custom configs variables to custom shipping method?

I have created a custom shipping method following this tutorial: https://www.mageplaza.com/devdocs/magento-2-create-shipping-method/ Now I would need to add a couple of extra variables to admin ...
1
vote
1answer
255 views

Can't see the custom shipping method just added

I need to add a custom shipping method. I was fallowging this tutorial: https://www.mageplaza.com/devdocs/magento-2-create-shipping-method/ I was able to configure my custom shipping method. I set ...
2
votes
1answer
436 views

Send custom email by using cron job magento2

I want to send an Email through a cron job for every 24hrs once.In that email need to mention all the abandoned cart details. I am new to Cron jobs so can you please explain it. Thanks in advance
0
votes
2answers
45 views

adding a new block with overwritten class fails

I have created a new module (to extend checkout): <?xml version="1.0" ?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:...
0
votes
1answer
151 views

Magento 2 Extension Vendor name start with digit Not working

Try to create Magento 2 Module, Vendor name start with digit Like : app/code/3dvendor/3dmodule (3dvendor_3dmodule) when run "php bin/magento setup:di:compile" command we get error Is it valid ...
0
votes
1answer
231 views

Add customer attribute with yes/no option

I need to create custom Customer Attribute with Yes/No option. I successfully created ones with Text input previously. What I need now is, create a separate attribute for set if Customer is on Hold or ...
1
vote
3answers
560 views

Magento 2:- How to get customers now online?

Magento 2:- How to get customers now online? Want to get all customers data current login.
0
votes
0answers
593 views

Magento 2:- how to show selected value in ui components?

how to show selected value in edit form in Magento admin using UI component many-to-many relation public function toOptionArray() { if (!$this->_options) { $...
0
votes
0answers
77 views

Magento 2: How to add Join query in a custom module

want to add join query in getPost function in a single view public function getPost() { if ($this->_post === null) { /** @var Post $post */ $post = $this->...
0
votes
1answer
110 views

Override function does not work

Although I have seen many examples of overriding a function in Magento2, I still cannot manage to make the following work: Disabling the Welcome-Email for new customers. The Welcome-Email is sent by ...
1
vote
2answers
2k views

Magento:2 How to Image upload in custom module

Image upload working fine in tmp folder, then store in DB. I want to after saving data image stored in the base folder pub/media/events var_dump($data); " ["events_url"]=> array(1) { [0]=> ...
1
vote
2answers
3k views

how to get block data on phtml template in magento 2

what is missing in my code block data not shown in phtml template block page namespace xxxx\Trails\Block; use \Magento\Framework\View\Element\Template; use \Magento\Framework\View\Element\...
0
votes
0answers
333 views

How to Upload image in magento 2 using UiComponent

I am trying to upload Images with a custom module in Magento admin <field name="recipes_image"> <argument name="data" xsi:type="array"> <item name=...
1
vote
3answers
1k views

Create custom route in Custom module magento 2

How to create a custom route in Magento 2 http://127.0.0.1/magento8/trails/post/view/id/13 module:- trails folder :-post controller :- view argument :-id/13 I want to http://127.0.0.1/magento8/...
0
votes
2answers
507 views

Magento 2 Ui Conditions component in custom module

Please tell me about using Ui Conditions component in my custom module. I`m trying to make module with products conditions filtration, like a catalog widget 'catalog product list': I'm trying to ...
1
vote
2answers
202 views

magento 2 - custom router throws Front controller reached 100 router match iterations error

I am trying to build a module that has a custom front-end router on magento 2.1.12. I am following magento doc & I am using the inchoo custom router example. The problem is the route (MY-SITE/...
1
vote
1answer
39 views

Magento 2.1 Translate text to given locale

I have a situation where I need to save values in couple of languages, Arabic and English at a save form, So I have two fields with the name Product Name and اسم المنتج i.e Product Name in Arabic, So ...
0
votes
0answers
52 views

Find referenceContainer in Magento 2.1 module

This is my first attempt to write a Module for Magento 2.1 I have read the documentation for referenceContainer that is not very helpful, I would like to know how can I access and apply my change in ...
0
votes
1answer
987 views

Magento 2 - How to call custom (Self Created) module in home page?

I have created a custom module with view using (Block, Layouts and Templates), its working fine with the url(http://hostname/modulename/index/test) but need to call it in home page. I mean when home ...
0
votes
1answer
376 views

Magento 2 Credit Memos : Template override doesn't work after clicking “Update Qty's” button

I am creating a custom module to simplify the Credit Memo creation for admin users. One of the features is hiding the "Return to Stock" column. I have overwritten 2 files for this: vendor/magento/...
1
vote
0answers
29 views

Issues creating first magento 2 module [duplicate]

I am new enough to Magento and am just trying to create my first module to show all Categories but am having some issues. However I am not sure if it is due to my environment or if there is something ...
1
vote
0answers
197 views

Update the summary section in checkout cart page

I am stuck on the one problem,I have added one product with custom price in cart using custom-module controller.Product is adding with the custom price but the summary section subtotal and grandtotal ...
0
votes
3answers
45 views

Use boxslider in Magento 2 in custom module

I am trying to use boxslider in my custom module. NOTE: I am in developer mode UPDATE : In network, i saw that files are loaded as 1) require.js 2) requirejs-config.js ( at top my require ...
0
votes
1answer
33 views

Error during installation pdf generator extension via ssh

I am trying to install a pdf generator extension but Iihave an error ``(via composer)` from here: Github I run below command: >composer require eadesignro/module-pdfgenerator then ask me about ...
1
vote
2answers
213 views

Cannot add new cli command “Class does not exist” on setup:upgrade

I am trying add custom command for beginning 'hello world'. I'm doing all by guide but always have this error [ReflectionException] Class Hesoy\HelloWorld\Console\Command\HelloWorldCommand ...
0
votes
2answers
57 views

Magento 2.2 - I need little help with install one module

I try to add this new module in Magento 2.2.2, but after php bin/magento setup:upgrade nothing happens. I try to enable this module in the app/etc/config.php too but is the same. I can't install it. ...
0
votes
1answer
1k views

Magento 2.1 add a new section on my account page

I need to add a custom tab at bottom of left menu on my account page 'link 1' and add a corresponding template file so that I can display my custom forms and dynamic custom content for that user. I ...
0
votes
3answers
57 views

Basic procedure while adding an additional controller to a module in Magento 2.1

I am trying to create a new controller for a module. I have set the frontend layout XML file and corresponding template file. I have flushed the cache too. Still it's showing a 404 error. What am I ...
0
votes
1answer
55 views

How to create module for module_quote

I am following this Aaron Allen's solution for my problem. Magento 2.1.7 Change Shipping Method Title method.method_title USPS Pirority Mail Day 1 He says "You need to make a module, which is the ...
2
votes
0answers
533 views

show currency symbol of SAR in both store view

I have store in two views Arabic and English. if I delete this code from /home/store/public_html/site/vendor/magento/zendframework1/library/Zend/Locale/Data/ar_SA.xml <numbers> <...
1
vote
0answers
27 views

Custom module magento 2.1 But 404 not found [closed]

I created a simple custom module for my magento 2.1 I followed this article http://javascriptsolution.com/create-custom-module-in-magento-2-1/ Then when I run my localhost/myshop/excellence/custom/...
0
votes
2answers
151 views

Cannot save Customer attribute data to DB in adminhtml

I need to add custom attribute for each customer. So admin can apply Customer Type for each customer. I've created module for this. It adds a select dropdown at the backend/adminhtml. but I cant save ...
0
votes
1answer
752 views

Magento 2 custom module install issue

I create a new custom module for Magento 2 and I can't install it through composer. This is the error: Your requirements could not be resolved to an installable set of packages. Problem 1 ...
0
votes
3answers
3k views

Magento 2 - add Enable / Disable field for custom module

I want to add some fields in the Magento 2 Admin Panel for my custom module and then I want to check in the phtml file if this field is have value or not. I need to add this fields: - enable / ...
1
vote
0answers
61 views

Remove modules with composer

In my current setup, I don't use all features from Magento 2 and I won't. I already tried to disable the modules that I don't need but disabling just disables the output of the specific module. It ...
0
votes
1answer
126 views

Bannerslider module “Incorrect dependency in class” error

I am working on a Magento 2.1.7 shop. To achieve this, I have created a child-theme of Magento Blank. I have installed the Bannerslider module. I run the commands: php bin/magento module:enable ...
0
votes
2answers
210 views

How do I set scandir to list the module web/images directory

How do I set scandir to list the module web/images directory? getViewFileUrl generates the file path but what I need is the directory path, so scandir can read the folder contents. Vendor > Module > ...
3
votes
1answer
618 views

Magento2 Catalog - Record the product change and changer

In Magento2.1, I want to make a module to record the product change and changer in database. I think I can use events and observers to achieve it. The catalog_product_save_after event maybe is a good ...
1
vote
1answer
1k views

Magento 2 : EAV Tutorial Needed

In magento 1.9 I created a custom module with EAV models with the help of following tutorial. How to create an EAV entity? Is there any equivalent in magento 2.
1
vote
0answers
71 views

Overriding Files from third party module

I'm new to Magento 2 and still trying to get my head around the folder hierarchy. If I want a file from my theme to replace a file in a module I am doing the following. For css, original file that ...