Skip to main content

All Questions

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

How to add CMS directive {{block}} on custom module field in Magento 2

I have developed a custom slider for Magento 2. The fields for my slider in the backend are; Title, Image and Content. The Content is a Wysiwyg editor and I am trying to make it work like a CMS Page ...
2 votes
1 answer
3k views

Cannot see new custom Module in Magento 2.1.2

I am new to Magento, and I am trying to do add my very first module. I tried to follow two tutorials that show how to create a "Hello World" module, which basically shows a 'Hello World!' message on ...
0 votes
2 answers
2k views

Overwrite Magento Core Account Controller (modifying login Action & login post action) - new Module

I have been trying without success to overwrite a couple of functions in the Account Controller within the customer folder of Magento core (originally I had just modified the core files, but soon ...
2 votes
1 answer
902 views

Magento 1.9 : How to cache custom module or extension

I never worked to cache Magento modules before. Now going to do for the first time so i have three questions regarding cache. What are the complete steps to cache a module? Any caching types are ...
0 votes
1 answer
1k views

Magento 2: Custom Module URL Key Magento Function

I'm using Magento 2 CE Version 2.1.0. I'm creating a custom module. For saving data I'm using custom INSERT query. In that INSERT query, i also need to save URL Key/Identifier which is going to ...
1 vote
0 answers
489 views

magento 2.1 grid on custom tab of admin product edit page

I am trying to create a grid that should be shown on clicking a custom tab of admin catalog edit page. 1. Created catalog_product_new.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
1 vote
1 answer
2k views

Magento 2: How to programatically check if an order exists without using try-catch?

I am looking at the implementation of \Magento\Sales\Api\OrderRepositoryInterface on https://github.com/magento/magento2/blob/eacac63d35b97961e3304dc007cd6b78519a93d0/app/code/Magento/Sales/Model/...
0 votes
1 answer
320 views

How i can integrate 3rd party tax engine in magento2?

I have a 3rd party tax engine and i want to create a module in Magento2 that collect the data that the tax engine need(ie shipping address, amount, etc). and send it to the tax engine. This is the ...
1 vote
1 answer
3k views

Magento 2: Cron job not Calling Function [SOLVED]

Running Magento 2 on my local WAMP Windows 10 I'm following below 2 Tutorials [1] https://www.atwix.com/magento-2/setting-up-cron-jobs/ namespace Custom\Module\Cron; class MyCronTask { public ...
2 votes
1 answer
2k views

Magento 2: Server side validation not showing filled up data while error [SOLVED]

I have below code app\code\Custom\Module\Controller\MyModule\PostForm.php namespace Custom\Module\Controller\MyModule; use Magento\Framework\App\Request\DataPersistorInterface; use Magento\...
1 vote
1 answer
778 views

Magento 2: What is purpose of StateInterface & when to use?

In vendor\magento\module-contact\Controller\Index\Post.php They are using \Magento\Framework\Translate\Inline\StateInterface $inlineTranslation $this->inlineTranslation->suspend(); $this->...
0 votes
1 answer
4k views

Magento 2: Update Query Using Standard Way

I have UPDATE posts SET viewed = viewed + 1 WHERE id = 1 MySql Query I have referred https://webkul.com/blog/magento2-write-custom-mysql-query-without-using-model/ But i want to as we do Select Way, ...
0 votes
1 answer
2k views

Magento 2: How to use redirect in Router.php file [SOLVED]

As following Magento 2: How to define Scope For Router.php we already have if ($condition->getRedirectUrl()) { $this->response->setRedirect($condition->getRedirectUrl()); $...
2 votes
1 answer
2k views

Magento 2: Use Custom Variable in Layout File

We can use Magento default variables in layout file using <item name="link" xsi:type="string">{{baseUrl}}</item> I would like to create one variable in Block File & Use it. Like ...
4 votes
3 answers
4k views

Where to declare a magento registry value

I have a custom module, which uses the sales_order_place_before observer. I have a set of code in there which scans through the products, and adds items to the order, where necessary. However, I have ...
4 votes
1 answer
2k views

Custom module throwing 'invalid block type' after being pushed to the staging environment

I am far from a Magento ninja and I am truly stuck with this... Help! Version 1.9.2.2 I followed this tutorial and have built two custom modules that work fine in my local development environment. ...
1 vote
0 answers
549 views

Magento 2: Custom Module Listing MassDelete Not working [SOLVED] [closed]

When i'm trying to delete all records from Listing, By selecting all. Not able to delete. app\code\Custom\Module\Controller\Adminhtml\Messages\MassDelete.php namespace Custom\Module\Controller\...
1 vote
1 answer
3k views

Magento 2 Custom Module Frontend Error

I'm using Magento 2 CE Version 2.1.0 I'm following http://www.mage-world.com/blog/how-to-create-a-simple-module-in-magento-2-0.html I have followed steps when i run it gives below error. {folder ...
0 votes
1 answer
67 views

Custom Extension for Email Reminder

I have developed Magento website version 1.9.2.4. Now i want to create custom extension for email reminder which provide configure two field. Hours before email is sent Email address(es) to send ...
2 votes
1 answer
252 views

Override a function from app/code/core/Mage/Core/functions.php file into a Custom module

Recently I came across a site which contains some modifications in app/code/core/Mage/Core/functions.php file. I would like to keep code clean and move the changes to custom module in local scope; but ...
0 votes
1 answer
63 views

Access Denied Error in Admin Panel Custom Moduel

I am getting access denied error for 3 Tabs in admin panel. Custom module config is under <acl> <resources> <admin> <children> ...
0 votes
0 answers
58 views

How to check is jQuery available for my module?

Magento as far as I know have it already loaded but jQuery functions won't work in my module. What can I do with it ? How can I make sure I have an access to it ? I would like to avoid jQuery ...
1 vote
1 answer
1k views

CE1.9.2.4 - Custom Module calling 3rd Party API

I am creating a module that exposes a form for customers to fill in. Upon submission, an ajax request request is made to a PHP script which calls the API. Now I have already tested this in a ...
0 votes
1 answer
2k views

Country dependent State/Province list in a custom module

I am new to magento and stuck on this problem, I am working on module in which I required a state drop down dependent on country, like one page checkout page. I have the country drop down. Can any one ...
1 vote
2 answers
803 views

custom product type based on grouped product with associated tab

I want to create a custom product type similar to grouped product and I got help from here so I created a new module I already read this question however could not solve my problem.: here is what I ...
5 votes
1 answer
14k views

Magento 2: Creating a custom layout

I'm having trouble creating a custom layout. I have successfully created a layout called home_page.xml which is a copy of the default 1column layout. I have selected this layout for my home page, ...
0 votes
1 answer
211 views

Override do not apply in a custom module

I try to override the mini cart but by changes are not getting applied. I have the following in my di.xml inside custom module <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/...
1 vote
2 answers
52 views

Error on production with custom module

on production server I get main.CRITICAL: Invalid template file: 'my.phtml' in module: MyVendor_myModule, on dev machine everything works fine. How do I debug this? under app/code/MyVendor/MyModule/...
1 vote
1 answer
96 views

Add attribute under currency setup on configuration page

I have successfully built a custom module to integrate an additional section on configuration page "Hide price option" with help of this tutorial create custom module Now I want to have this form ...
0 votes
2 answers
104 views

custom module generating 500 error

I have created a custom module to add a custom column to sales_flat_quote and sales_flat_order. I have been successful in creating the columns in the database. The problem is the module also has a ...
0 votes
2 answers
890 views

Magento save() does not working

I made a custom module and I'm trying to save data into the module table so I wrote this code : $model = Mage::getModel("modulepackage/name"); $model->setPostCode("XXXXX"); ... $model->setCity()...
0 votes
1 answer
1k views

Unable to access collection from custom model, returns null

I have been trying to access 2 custom created tables which store additional values for a particular order, I am trying to implement a form that saves these details. I am trying to get the last id of ...
0 votes
1 answer
36 views

View Date-based Products

I run a food delivery business where we make fresh food, package it, and delivery it locally each day. Each day we offer a different set of options. For example, on Monday there might be Entree A, ...
0 votes
2 answers
85 views

What are the steps should I follow if my custom module gets a 404 not found error?

I have created a custom module which will save some data in the database and will show in the front end. But when I see in the front end it gets me a 404 not found error. I think the error is in the ...
1 vote
1 answer
795 views

Custom admin module not working

I have created a custom module but it's not working, I am unable to see any menu in cms menu.here is my code:- 1.config.xml <?xml version="1.0"?> <config> <modules> <...
3 votes
1 answer
1k views

How to redirect my custom module url after admin login

What I want: Admin should redirect my custom module url('adminhtml_module1/testimonial/index') instead of dashboard page after successfully admin login. Any idea ? How can I do this ?
0 votes
2 answers
5k views

Custom module: translate string in Mage::throwException

I'm new to Magento and I've just built a custom module for a store. The module observes the event sales_order_place_before, and checks with an outside source if an item is still in stock. When the ...
1 vote
3 answers
12k views

Magento custom block shows Fatal error: Call to a member function setTemplate() on a non-object

I have created one block inside my custom module but it's not working. My module is working fine but my block is not working when I call my block from footer.phtml file it shows 'Fatal error: Call to ...
-1 votes
2 answers
6k views

Custom Magento API - Resource Path is not Callable

I am trying to create custom api in magento https://stackoverflow.com/questions/12172197/magento-api-publish-a-new-method-in-soap-v2/12258728#12258728?newreg=18f107c4fd89455ebd2b300992cf8fae I am ...
0 votes
1 answer
2k views

Create custom module to modify sales/order/shipment/api.php

I need help please! My client is working with a third party that updates programatically the status of orders with the SOAP API. When they do, Magento sends an email to inform customer that order has ...
1 vote
1 answer
79 views

Moving Core Edits to Private Modules

I need some help moving some edits I made to the core files to my own module. I was able to do this easy enough with my frontend edits but I am unsure how to fully move my core file edits. I edited ...
0 votes
2 answers
195 views

show a custom link list in section header

I am a beginner Magento developer (I am currently using the 1.9.0.1 version). I am working on a project of web shop which has the need to display a series of custom link in the header section. I ...
0 votes
1 answer
1k views

Custom module not saving to Database

I have created a custom module using the atwix tutorial: http://www.atwix.com/magento/adding-custom-attribute-to-a-cms-page/ but I cannot save the data entered into the custom module from the cms ...
2 votes
2 answers
2k views

Making edits to core controllers OnepageController.php

I have attempted my first rewrite module since i needed to make some edits to a core controller. For whatever reason it is not working as the edits are not taking effect. Here are my files: app/code/...
3 votes
2 answers
2k views

Reference a block in static page

I have a static page in which I call a dynamic block: {{block type="custommodule/search" name="custommodule_search" template="custommodule/search.phtml" }} In the layout file of my custom module I'm ...
0 votes
1 answer
896 views

Best method to filter out an item from custom model

I have a custom module using which we can add banner images in admin. I have implemented this module in the admin successfully. Now I want to display banner in the front end. My custom table is ...
0 votes
3 answers
2k views

How can i develop my custom module?

I am using magento 1.7. I want to develop my own module for my site. I need to add two tables in my database. My module is to manipulate these two tables from the Admin interface as adding, editing, ...
0 votes
1 answer
2k views

Problem with custom module : url redirects http to https

I have facing problem that module which I created working fine. But when I started using SSL i.e. http to https for checkout process. Front end modules which I created started to force use https.

1 2 3 4
5