All Questions
248 questions
1
vote
2
answers
513
views
Custom Module not working | Custom Code working fine
I am trying to get my custom module working and I am not sure where I am wrong.
Here is my app/etc/[namespace]_CustomPriceRevert.xml:
<?xml version="1.0"?>
<config>
<modules>
...
4
votes
0
answers
2k
views
How to create a custom Report in Magento2 [closed]
How to create a custom Report in Magento2. Please provide any sample code / link.
3
votes
0
answers
527
views
Magento 1.9 - Call to a member function setSaveParametersInSession() on boolean [duplicate]
Ok. Getting a strange one here. Creating custom module with multiple grid pages.
First grid works 100% no problems, but all others failing with
Call to a member function setSaveParametersInSession() ...
2
votes
2
answers
898
views
Unable to override Fulltext\Collection in module etc/di.xml
Preconditions
Magento 2.1.1
Using Ubuntu/trusty64 vagrant-box, php7, apache
Steps to reproduce
Add a new custom module
Update etc/di.xml in your custom module
<?xml version="1.0"?>
<...
0
votes
2
answers
2k
views
Create a static block using a custom module Magento 1.9
In my custom module
app/code/local/Maddyboy/Instagramapi/data/instagramapi_setup/data-upgrade-0.1.0-0.1.1.php
<?php
$content = 'BLOCK CONTENT HERE';
//if you want one block for each store view, ...
1
vote
0
answers
477
views
Set action to custom module admin Button
I created a custom module, with a button in System > Configuration. Clicking on this button should call a function and then inform the user about the function's results (I suppose by reloading the ...
4
votes
1
answer
10k
views
Magento 2: Check condition on Click of "Proceed to Checkout"
May be I need to create Event Observer. I would like to check Product's Type Condition & Display Message Accordingly on Shopping Cart Page.
<event name="...
0
votes
3
answers
3k
views
Magento 2 Custom module admin controller error
I have created the custom module as per the below tutorial:
http://www.mage-world.com/blog/grid-and-form-in-magento-2-admin-panel-part-1.html
And after I am getting the below error:
Fatal error: ...
9
votes
6
answers
12k
views
404 Page not found error when I try to access Custom module in Magento 2
I have created 2 custom module inside vendor folder .This is my layout structure :
-app
-code
-Company
-Blog
-HelloWorld
-Controller
-Hello
-World.php
...
0
votes
0
answers
390
views
How to add Magento shipping method extra details?
I am currently adding 2 custom shipping methods to a Magento website.
I have successfully added them using this method:
My/etc/config.xml
<?xml version="1.0"?>
<config>
<modules&...
0
votes
3
answers
2k
views
How can I set data from controller to .phtml file in magento
I have created a custom module and there are some drop downs in it. I have done all the things in .phtml file as pure php.
How can I change that to correct way code in my .phtml file:
<?php
$...
0
votes
2
answers
96
views
Fatal error: Class 'Mage_Mageworx_Customoptions_Helper_Data' not found
I cannot find where Mageworx dir is...
/app/code/local
/app/code/core/
I didn't install the extension but seems to be called it in my page.. and send an error in the admin page.. in the product ...
0
votes
0
answers
275
views
What is the entire folder structure to create magento 2 admin grid?
What is the entire folder structure to create a custom admin grid?
example -
vendor_name : Ayakil
module_name : Rewardpoints
I am expecting like this.
Why i am asking this question is , i am ...
0
votes
0
answers
29
views
Custom Module overlaps magento default theme
I have a Sliding contact us module.This module overlaps with the navigation menu of default magento luma theme. How do i fix this issue?
1
vote
2
answers
901
views
registration.php and enable custom module
I am new to Magento and PHP, and I am using Magento 2.1.2. I tried to create a new module as explained in http://magentoexplorer.com/how-to-build-hello-world-magento-2-module-from-scratch. After ...
0
votes
1
answer
45
views
Custom module change `foreach` to chose what to display
I have a custom module for batch order in my magento application. I have created another store view and the batch order form will need to have different products in each store.
Here is part of the ...
0
votes
2
answers
5k
views
Magento 2: How to set meta tags for dynamic pages custom module in Controller, Block or .phtml?
I have created a custom module with admin grid form where data is entered and saved in database then it I retrieve to display at frontend.
So as an e.g I have followed for the frontend part this blog ...
6
votes
1
answer
6k
views
How to detect a change in data inside the tab in custom admin module [closed]
While editing the elements in the custom admin form, how can I check whether the form has been edited to the last saved data of the form? Is there any way I can check this using any inbuilt Magento ...
1
vote
0
answers
65
views
AJAX Form custom module
I am new to Magento, still learning how things work here.
I am planning to create a custom module, which would submit a form on a product page through AJAX. It would let the client ask about product ...
0
votes
1
answer
154
views
How to include a js file into a custom module in Magento 2?
Added app/code/Namespace/Customtab/view/frontend/layout/customtab_index_index.xml
<?xml version="1.0"?>
<head>
<css src="Namespace_Customtab::css/viewer3d.css" />
</head&...
2
votes
1
answer
1k
views
Magento 2 : Custom model with EAV attributes. PUT is not working
I'm trying to figure out how works EAV attributes. So I made a simple example with API rest. Everything is working except when I call PUT function:
{
"sample" : {
"id": 22,
"name":...
0
votes
1
answer
660
views
Edit Action don't work in Custom Module
When I open the edit form in admin, the fields are empty, the data is not loaded from DB. Loading still work.
Files:
Form.php
https://pastebin.com/8TJ54KSi
StoreController.php
https://pastebin.com/...
1
vote
2
answers
1k
views
Adding Product Backend URLs on the Custom Grid
I have a custom grid, where I need to add links to Product Edit pages on back-end.
I was able to get product front-end URLs using a renderer, but can't get the product links on back-end.
I have ...
0
votes
2
answers
343
views
Resolved - View Particular Product From the Grid
I have developed a custom module with a grid.
Also added a column named "View Product" to be able to navigate to the current product page.
With my current solution all "view" links redirect to ...
0
votes
1
answer
289
views
My custom class always return 500 internal errror on Magento 2.1.2 ,but on 2.1.5 is work fine
I create custom status action class to change specific order to my custom status, I created "Packing" class, that change order status to 'packing'. it's working fine on Magento 2.1.5, but if I using ...
0
votes
1
answer
361
views
How do I combine two product collections into one observer?
Can this be added to an observer like in my code in: How to set products in stock after import ?
I currently have a module I created that will check the sites prices.
It is currently just a page ...
0
votes
1
answer
5k
views
Custom add to cart form
I would like to create my own custom add to cart form which is the same as original but with custom retrived products. How would I do that in a custom block?
the block class
<?php
namespace ...
5
votes
2
answers
528
views
How to use Custom Module Js to RequireJS
I add my custom Module to JS to requirejs-config.js File
var config = {
paths: {
'Test/jquery':"Test_Header/js/jquery.min" ,
'Test/popup':"Test_Header/js/jquery....
0
votes
1
answer
2k
views
Error class AbstractDb not found
I'm following this guide :
http://www.mage-world.com/blog/how-to-use-model-and-collection-in-magento-2.html
But at the end i get the error
Fatal error: Class 'Magento\Framework\Model\Resource\...
1
vote
0
answers
73
views
How to make custom php in home page
I need to make a website, let's call it shop.com, that manages other providers on subdomain (p1.shop.com, p2.shop.com...).
So, I successfully make all the websites works, but now I need to make shop....
1
vote
2
answers
1k
views
How to show popup?
I am using Custom Message Based on Total for free Delivery Module on my site, but it's showing , its only showing on checkout/cart page.
"How can I show module instead of the only checkout page to ...
0
votes
2
answers
701
views
Custom Module Save Action not fired
I am suffering from a wired problem with my Custom Module. maybe i have wrong logic in my mind or it's a problem.
I created a custom module "PoProduct" to extend back-end functionality (\app\code\...
1
vote
1
answer
451
views
Add Custom MassAction for Status
How to Add Custom MassAction In Controller For Status?
My Status Having
Accepted
Not Process
Rejected
Re-Offer
So how can I Get These Values in change status in MassAction? I Put Default ...
0
votes
1
answer
1k
views
Resolved - Custom Module Layout File Doesn't Work - Magento 1.9
For some reason the layout file of my module stopped working, please help!
This is the module's layout file at ...
\app\design\frontend\rwd\default\layout\productcomment.xml
<layout>
<...
0
votes
1
answer
205
views
Resolved - Reading Database Table Info in Magento Way
I'm using this simple PHP code below to read data from my module's table, but can't do the same thing using Magento codes.
Tried to do that using different articles but was either getting errors or ...
0
votes
1
answer
139
views
Adding Custom Attribute to Admin Users - Magento 1.7
Currently in creating Admin Users we collect:
Username, First Name, Last Name, Email, Password, Password Confirmation
I would also be interested in adding Address as a field but am not sure how to ...
1
vote
2
answers
614
views
Magento 2 add custom link to username dropdown
can anyone tell me how to create a custom link ("MY VEHICLE") in the dropdown from username of a logged in user. I am a beginner and have no idea where to start, any help is greatly ...
1
vote
3
answers
7k
views
Magento 2 - How can I define constants or variables once and reuse them in a custom module?
I have a few constants that I'd like to define once and reuse many times within various files throughout my custom module. For example, I write log entries to a custom file. I'd like to add its pre-...
0
votes
1
answer
539
views
How to add custom page before checkout for extra questionnaires ? Magento 1.9
I want to add custom page which will have a form with some questions.
Customer needs to fill out that form and then go to checkout. This form will be related to order and admin can see that filled ...
0
votes
1
answer
2k
views
Magento 2: Can we call one observer in another observer?
I already have 1 observer on checkout_cart_product_add_after .
Before end of $this I woule like to call another observer which is located in different module
magento\app\code\Custom\Module\Observer\...
0
votes
1
answer
242
views
Custom Taxation
I am trying to figure out how to customize tax base on shipping information. If the customer is residing in US and the product will be shipped on US, the tax is 2%. However, if the customer is from US ...
0
votes
0
answers
596
views
Magento 2 how to create custom tabs in custom module
We want to remove default product tab and want to use custom
Query tabbing like this
0
votes
1
answer
268
views
Magento 2: Captcha overwrite fatal error on PHP 7
Magento 2: How to override Zend library files function only?
I overwrite Captcha module on my WAMP PHP 5.X & it works fine.
On linux server which has PHP 7 gives below error
Fatal error: ...
1
vote
0
answers
112
views
Mangeto 2: How to override core abstract class function? [duplicate]
Magento 2: How to Override Abstract Class for Product Category Indexing Issue?
I need to override below files one function only
magento\vendor\magento\module-catalog\Model\Indexer\Category\Product\...
0
votes
1
answer
219
views
I see a blank page when I go to edit option in my custom module. Instead, I should get a form where I could edit the data
I created a custom module for seller management in magento 1.7.0.2.
In the module, the grid for data display is showing fine but when I click the edit button, it redirects fine but shows a blank page. ...
0
votes
1
answer
402
views
Custom Module Nested Router Frontname
I have setup a custom module in my magento store (CE-1.9.0.0) with the following in my config file:
<?xml version="1.0"?>
<config>
<modules>
<Company_Custom>
...
1
vote
1
answer
8k
views
Magento 2 Fatal error: Uncaught Error: Call to a member function setSortable() on boolean
I am getting below error while loading admin grid of my custom module.
Fatal error: Uncaught Error: Call to a member function setSortable() on boolean in D:\xampp\htdocs\magento2\vendor\magento\...
0
votes
1
answer
147
views
Magento 2.1 Custom Theme/Module
I have created a custom theme and a custom module. The documentation does not explain enough detail about whether I need a theme or a module or both.
Does a custom theme need a custom module? Do I ...
6
votes
1
answer
2k
views
How does the payment gateway works in Magento 2?
I want to integrate my own payment gateway in Magento 2. I've read many topics, studied the sample code from the Magento 2 repository and the braintree module.
However I've not found great posts ...
0
votes
2
answers
96
views
Can't get Custom Admin Tab to work!! (Very detailed of what I have thus far)
I have Magento 1.7 and I'm trying to create a custom tab in the admin panel to change customer attributes that I have created.
First off I created:
/app/code/local/Mage/Adminhtml/Block/Customer/Edit/...