Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2 votes
0 answers
67 views

The magento custom sorting functionality is not working

I am creating a Magento module to add a sorting option of a bestseller on the category page. For doing so I have to override few classes in the core. In the beginning, I have created config.xml file. ...
Akshay Vasu's user avatar
0 votes
3 answers
4k views

Zend_Json_Exception Decoding failed: Syntax error some time in Magento (All versions)

1 exception(s): Exception #0 (Zend_Json_Exception): Decoding failed: Syntax error Exception #0 (Zend_Json_Exception): Decoding failed: Syntax error#0 /var/www/html/magento2/vendor/magento/...
inrsaurabh's user avatar
  • 1,676
2 votes
1 answer
622 views

Move uploaded images to a folder using custom module

I am trying to move the uploaded image to a folder by a custom module. In /var/www/html/magento16f/app/code/local/Custommodule/ReviewRating/controllers/IndexController.php public function ...
inrsaurabh's user avatar
  • 1,676
2 votes
1 answer
438 views

Magento2 : Create SOAP connection in magento custom module

I am using below code in M1 to establish the connection using SOAP:- <?php class Company_Module_Helper_Webservice extends Company_Module_Helper_Basehelper { private function ...
Purushotam Sharma's user avatar
0 votes
1 answer
1k views

How to get an array from curl response

Use curl in custom module Magento ver 1.9.x In /var/www/html/magento193/app/design/frontend/base/default/template/reviewrating/rightsidebar.phtml $url = "http://mywebsite.com/api/extentionReviews?...
inrsaurabh's user avatar
  • 1,676
1 vote
1 answer
2k views

Magento 2.2 : getcollection is not working in the Block

My custom collection is not working in block file Helloworld.php <?php namespace New\MyModule\Block; use Magento\Framework\View\Element\Template\Context; use Magento\Framework\View\Element\...
Selva Kumar's user avatar
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> ...
Greg's user avatar
  • 2,749
0 votes
1 answer
439 views

Use 3rd party jQuery files in custom module Magento 2

Trying to use slick slider in my custom module All css is loaded by /var/www/html/magento2/app/code/CompanyName/ReviewRating/view/frontend/layout/reviewrating_index_index.xml I am In Developer Mode. ...
inrsaurabh's user avatar
  • 1,676
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.
user3374995's user avatar
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() ...
user3744420's user avatar
0 votes
1 answer
95 views

Overwrite Magento core functionality

How do I properly overwrite Magento core functionality? I want to create a module that does it. I need to edit this file: app/code/core/Mage/Adminhtml/Model/Sales/Order/Create.php I know there is a ...
Greg's user avatar
  • 2,749
0 votes
3 answers
617 views

Custom Page in Customer My Account Page - Custom Module

I Created a custom module. My requirement is to add new link after all links in Customer My Account. When click on that new link a new page should be shown. My Code is Step 1. Created new file in ...
Raghav's user avatar
  • 204
5 votes
2 answers
11k views

Magento2 : Retrieve Multiselect Values in system.xml

I have created a system.xml file with a multiselect type field somewhere in my admin system config. I just want to know on how to retrieve the selected values in that field?
Eubie Aluad's user avatar
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, ...
inrsaurabh's user avatar
  • 1,676
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 ...
zekia's user avatar
  • 660
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&...
fja3omega's user avatar
  • 265
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 $...
Hemal's user avatar
  • 349
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 ...
regnoredlac's user avatar
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 ...
Mujahidh's user avatar
  • 2,823
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?
Pooja Sekar's user avatar
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 ...
Greg's user avatar
  • 2,749
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 ...
Juliano Vargas's user avatar
2 votes
3 answers
1k views

Check when custom cron task last ran

I have created a new module that has a custom cron task to export orders. What i'm trying to do though is to only export orders that have been placed since the cron task last completed successfully. ...
doubleplusgood's user avatar
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 ...
Kuba M's user avatar
  • 33
1 vote
2 answers
8k views

How to change the price in quote while adding product to cart?

I want to apply a custom price for the current order. I read that I should use sales_quote_add_item, But its looks like I am doing something wrong. I found some tutorials for magento1 but not for ...
Rahul Chaurasia's user avatar
2 votes
3 answers
61 views

What are the only needed files for custom module?

I've seen a lot of tutorials on how to create a custom module in Magento. But all of them are mostly those helloworld examples. I'm wondering what files do we actually have to create in order to ...
anthony's user avatar
  • 121
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/...
user55124's user avatar
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&...
Rita Jose's user avatar
  • 1,850
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 ...
DrNutsu's user avatar
  • 101
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 ...
fja3omega's user avatar
  • 265
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":...
Marc Pont's user avatar
  • 1,453
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 ...
bestwebdevs's user avatar
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\...
Jeremie CIESLARCZYK's user avatar
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....
Jeremie CIESLARCZYK's user avatar
3 votes
3 answers
6k views

How to Filter Products Based on Attribute Value "Yes"

I have an attribute for a custom module which defines if a user can comment on the products or not. Now I need to filter products depending on the attribute value and only display those with attribute ...
bestwebdevs's user avatar
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 ...
bestwebdevs's user avatar
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 ...
Rajiv's user avatar
  • 179
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\...
Ishan Jain's user avatar
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 ...
Harshil Parekh's user avatar
0 votes
1 answer
380 views

Resolved - Mass Action - Mass Database Update in Magento Grid

I have this grid developed for the custom module. I added the mass delete action which works fine. But the mass Approve/Disapprove actions work only for one value, when I select multiple values I get ...
bestwebdevs's user avatar
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 ...
CodingMageSheen's user avatar
1 vote
1 answer
2k views

Magento 2 - how to get custom model from custom module

In Magento 2, how can I get a custom model that is created in a custom module (not a Magento 2 native module)? I know I can use object manager for getting and creating, and I know how to do this for ...
Vladimir Despotovic's user avatar
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 ...
bestwebdevs's user avatar
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> <...
bestwebdevs's user avatar
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-...
PhilaPhan80's user avatar
4 votes
2 answers
1k views

Back-End "Save and Continue Edit" Button Works Partially

I created a custom module and the "Save and Continue" button on the back-end grid edit page works partially. Either it saves the values and doesn't stay on the same (edit) page or it stays on the same ...
bestwebdevs's user avatar
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 ...
HKR's user avatar
  • 51
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 ...
Utsav IIHGlobal's user avatar
3 votes
1 answer
5k views

Checkout page phone number validation

I am trying to give US format phone number validation in onepage checkout page This is the layout checkout_index_index.xml that i created in my custom module. I know how to make i work by editing the ...
HKR's user avatar
  • 51
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: ...
mageDev0688's user avatar