All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
0answers
25 views

How to convert magento 2 custom module as magento 1.9 version? Is it possible [closed]

I want to convert the Magento 2 custom module as Magento 1.9 version? Is it possible
1
vote
1answer
31 views

Magento 2: How to Create a excel file in custom module?

I want to create an excel format file for download in Magento 2 <item name="buttons" xsi:type="array"> <item name="add" xsi:type="array"> <item name="name" xsi:type=...
0
votes
1answer
20 views

Magento 1.9 Custom Module Error

I am a noob of Magento 1.9. I have these custom module files: app/code/local/mypackage/custommodule/block/mymodulename.php app/code/local/mypackage/custommodule/etc/config.xml app/code/local/...
4
votes
1answer
52 views

Can I create a module including only a helper class?

Is it possible to create a module/extension with only a Helper class declared? I am trying to create a module because I need to use a function on more than one phtml files. So far I got this code: /...
0
votes
1answer
23 views

Magento Observer to block spam orders not working

I'm facing some issues with orders placed by bots. I noticed that all orders are made by a specific phone number and also by a specific street. So I looked for a way to block orders that are made ...
0
votes
1answer
17 views

How to place custom template (phtml) file in local module direcotry instead of default template directory

I am creating a new module for my Magento project where I have a few template files which get appended to >catalog_product_view catalog_category_default checkout_cart_index and few other pages. ...
0
votes
0answers
17 views

How to add my whole existing simple products catalog to configurable products with different colors/swatches?

So I would like to know the most optimal way how I can merge my existing simple products (let's say 1 product, in 5 different colors, so 5 simple product pages) to 1 configurable product. I would also ...
1
vote
1answer
57 views

Instagram pictures on homepage [closed]

I have to create a custom module (or anything else what let me do what i want to), which will display few latest pictures from my instagram on homepage. I do not know how to use Instagram api to do ...
1
vote
2answers
38 views

Display custom block on Homepage

I have a problem with custom module and displaying custom block template on homepage. I create a custom module to show product form specified category. my config.xml file: <config> <...
0
votes
1answer
32 views

Magento undefined variable this in custom block template

I have created a custom block and when I try to access a method from my block I get: exception 'Exception' with message 'Notice: Undefined variable: this­ in /Applications/XAMPP/xamppfiles/htdocs/...
0
votes
0answers
9 views

Mass Action assigned to a custom button in Sales Order page Magento 1.9

I am working on a custom module. One part of that module creates a button above the Sales Order Grid. The current code for that button is; public function addNewButton($observer) { $...
1
vote
1answer
29 views

Magento 1.x Custom Module - get wrong Frontend Url

I have Mage 1.9 with my custom module installed. I have checked that the function Mage::getUrl('mymodule/api/users/1'); return wrong url with admin path. We also use a custom path for the admin ...
1
vote
0answers
31 views

Magento user permission unchecked on save custom module

I've developed a small custom module. It worked as expected but I can't save user permission: I can see the module in the admin panel and in the Role Resource Tab (System->Permissions->Roles), but ...
0
votes
0answers
18 views

Can't get a column by POST

I've create a module, but i don't know why i can't get the field "qty". Follows code of the grid: protected function _prepareCollection() { $collection = Mage::getModel('catalog/...
0
votes
0answers
21 views

Magento 1.9 add custom field to multiple templates

I have a custom field that I would like to add to all areas in the admin panel where you can change the quantity of a product. I currently am of the impression that I have to rewrite each template ...
3
votes
1answer
152 views

Magento 1.9 observer on only new product added ( no updated product )

I need an observer when a new product is added, I don't need one when a product already exists and it is updated. I found catalog_product_save_after and _before but this is triggered when a product is ...
1
vote
0answers
50 views

Add customer attributes to Magento shopping cart rules

I have customer attributes added using a module and I need to add add them to Promotions, especially for Shopping Cart Price Rules. I found this tutorial, but looks like I'm doing something wrong, ...
2
votes
1answer
23 views

How to call a function which is in a overwritten controller block?

I have developed a module to overwrite a controller. I have the next route: Lecasa/Javinewlistproductcontroller/Block/Catalog/Product/List.phtml This List.phtml file is: class ...
1
vote
2answers
28 views

Getting Custom Collection without some fields

It is magento 1.9.4.0 and i need a array with some nodes. When i get the models collection with: Mage::getModel('nstok/nstok') ->getCollection() ...
0
votes
1answer
61 views

magento 1.9 override core block template

I edited these files but I cannot override the default.phtml file, it doesn't work, what's wrong with that? Config.xml <?xml version="1.0" encoding="UTF-8"?> <config> <modules&...
1
vote
1answer
109 views

How to Programmatically Reorder in Magento 1.x in from Admin

I want to create a custom module which creates duplicate order from the existing order. I want to show a simple button (like Reorder default Magento) which create current order duplicate order in ...
1
vote
1answer
39 views

Magento 1.9.4 - Plugin recommedation for changing category prices

Good morning, i need a module to change all product prices for a specific category. Example: I want to increase / decrease the product prices for all articles of the category "towel" by 2% or 3,5€....
0
votes
1answer
113 views

How can I edit files like frontend/…/category/view.phtml?

I have been trying to edit some files from the frontend folder. On this folder I have the following folders: base, default, rwd and typologancee. I have to create a specific filter which is going ...
0
votes
1answer
105 views

Adminhtml form custom renderer - blank page - Magento 1.9

Added custom element to my adminhtml form. It works perfectly fine on my developement site but it won't on production .... the only difference was on dev i made it as a module while on production I ...
0
votes
0answers
30 views

Magento 1.9 admin menu is going to 404!

I am using custom module to getting tax report. It is working fine on demo site. Below is the etc/config.xml: <?xml version="1.0" ?> <config> <modules> <DS_News> ...
0
votes
1answer
16 views

Can a product's attribute store several values for the same product or do I have to do something else (Magento 1.9)?

I will explain with general terms the situation: I have some products which should have 1-8 values for the same attribute and in the same product. For example: SKU 55720, Name of Attribute: Norm, ...
0
votes
1answer
11 views

How do I understand the connection of module components (e.g., code/design/frontend/template/block, etc.) in Magento 1.9?

I'm very new to Magento and am familiar with MVC and OOP and a lot of the design patterns that Magento uses. However, I find it difficult to understand the relationship between all the components of a ...
0
votes
1answer
105 views

Custom script results in Call to a member function on null

I use the following script to update the stock levels of products from a csv. Worked well until recently, where I created a custom observer where I am checking if the product save occurred in the ...
0
votes
0answers
47 views

Magento 1.9 cron jobs runs every 5mint but its configured for every 1 minute

Through cpanel I have configured cron.sh to run every 5 minutes (working). I have added a custom module meant to run every 1 minute (code below). The issue is that the cron is not running every ...
1
vote
1answer
70 views

Magento 1.9.4 override Inventory tab template

I would like to override the template file used for the inventory tab in admin product edit section. This is located by default at: /app/design/adminhtml/default/default/template/catalog/product/tab/...
0
votes
1answer
37 views

Magento Custom grid sort issue

Dear community I have made a custom module that will allow stock movement history to be kept for products. However, as illustrated below: figure 1; pressing edit on an order in the admin order view, ...
0
votes
0answers
43 views

How to regenerate var/package folder, If I deleted by accident?

I have deleted all files from var/package. Now I can't able to update the modules from Magento connect manager (Installed modules not listed). Please help me how to regenerate the XML files.
0
votes
1answer
89 views

Change product price based on stock quantity in magento 1.9

I have a situation where the product price should change based on the number of items on inventory. Example, if the stock has > 10 item then the product price should be some special price like 100$. ...
2
votes
1answer
135 views

Magento 1: How to add a system configuration setting of custom module under the second module tab in admin?

I have two modules with same vendor name. I want to display the second module system configuration setting under first module tab in admin. Do you guys have any idea? Here are my system.xml files for ...
0
votes
1answer
84 views

magento 1.9 doesn't save attribute value on sales_order_place_after

When the event sales_order_place_after is triggered the new quantity value is not inserted, what is the problem? How to update quantity or other attributes when this event is triggered? I need to ...
0
votes
0answers
31 views

magento 1.9 detach simple product associated to a configurable and assign to another configurable

How to detach simple product associated to a configurable and assign to another configurable in php. For example to attach a simple product to a configurable I use this code: Mage::...
0
votes
1answer
20 views

make a category branch undeletable

I would make a category branch undeletable, my idea is to use an observer on the events catalog_category_delete_before and catalog_category_delete_after. On catalog_category_delete_before the branch ...
0
votes
2answers
148 views

How can I create a custom link Magento 1.9.3.x admin side menu?

I'm trying to create a custom section with custom links on Magento 1.9 admin side menu, but it doesn't redirect me to my controller action
0
votes
2answers
464 views

low stock notification to admin without any extension in magento 1.9

I want to create the custom module for email sent to admin for notifying when the product is low qty in magento 1.9.x.
0
votes
1answer
207 views

magento 1.9 observer on quantity product change

I can't find the event for quantity product change for magento 1.9. I need to do something after a quantity product is updated from backend and frontend, when a user buy a product and decrease ...
0
votes
1answer
37 views

magento 1.9 problem custom module programming example problem

I have these files: app/code/community/Foggyline/HappyHour/Block/Hello.php class Foggyline_HappyHour_Block_Hello extends Mage_Core_Block_Template { public function __construct() { parent::...
3
votes
1answer
30 views

magento 1.9 custom module fronted error 404

I have problem to acces the custom module frontend controller. I am following a basic tutorial to build a custom module. These are the files I've edited: /var/www/html/magento/app/etc/modules/...
0
votes
1answer
94 views

Desperately need Help with a task for a test in Magento 1.9.3

So guys, I'm doing this task for something very important to me but now I'm completely stuck. I need to fulfill this task: Create a module to output a nice list of the products that have a value ...
1
vote
1answer
50 views

Getting error when show “out of stock” products in last [duplicate]

I have developed Magento module that shows out of stock products in last of catalog page list and I test it in my test website and it works correctly but in other websites (Magento 1.9.3.7) I got ...
0
votes
1answer
85 views

Magento run custom code only if manage stock is set to yes

I have a custom module that will track stock changes on products, but if the "Manage Stock" is set to "No" then I do not want to track any changes nor display the "Stock Movements" tab. Thus, how can ...
3
votes
2answers
165 views

unable to get order status in sales_order_place_after event in magento 1.9

Hello I am unable to get the order status in the observer sales_order_place_after I also tried other events like checkout_onepage_controller_success_action, checkout_type_onepage_save_order_after. ...
3
votes
0answers
86 views

How to get custom table next id to be saved?

My scenario is saving an image to a folder. Why I am using id is I have to save a lot of items(images, pdf) into the same folder as it is all related to this item. When new data is created I want to ...
0
votes
2answers
77 views

Magento Override frontend template in custom module file

I want to override the contact page frontend from my module file. To override the frontend template of contact form, i have created module and in that module i have created layout file mymodule.xml ...
0
votes
0answers
21 views

Disable another module from my module xml

I've a Magento 1.9 shop where a 3rd party module in interfering with my own module. I need to disable the 3rd party module, but due to too-long-to-explain-here reasons I cannot just edit its .xml and ...
1
vote
2answers
1k views

1.9 - Fatal error: Call to a member function on boolean

I've created a custom module for SSO with Discourse. Exact error: Fatal error: Call to a member function setSecret() on boolean in /home/website/public_html/app/design/frontend/theme/path/...