Questions tagged [magento-1]

General questions about Magento 1 not specific to a minor version. You can use it to distinguish from Magento 2, but if you have issues with a specific installation, use the appropriate magento-1.x tag instead.

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

Backend view of data from custom database

I have made a custom database, that stores the data from a form. Now i want the data to be displayed backend. What is the best way to do this? If you need to se my code just say so :)
0
votes
3answers
886 views

Prevent the quantity of inventory in the backend products is negative

I'm using Magento 1.7.0.2 and Magento 1.9.1.0. As we know, by default, Qty Inventory at the backend (Admin - Catalog - Manage Products - Edit - General - Inventory - Qty) may contain a negative value, ...
0
votes
1answer
164 views

How to load products from a specific category based on special price availability?

I have following code $promoCatId = (int)Mage::getStoreConfig('promoprodsec/promoprodgroup/promocategoryid'); $products = Mage::getModel('catalog/category')->setStoreId($store)->load($...
0
votes
1answer
564 views

Magento Add Custom Option on Product Page

I want to add text area displayed on product page for all products, when a customer enter any data to that textarea, that data will be shown in the order information. I override cart controller but ...
0
votes
1answer
761 views

magento set dropdown attribute value by selected value instead of id

i wrote custom code to assign attribute to product , issue is with dropdown attribute say color with values : red , green , yellow not i want to set value of color to be red so i used code below $...
0
votes
1answer
21 views

Failed uninstallation, still listed in Magento Connect Manager

I experienced some errors during uninstallation of an extension. The files of the extensions are deleted, but the extension is still listed in Magento Connect Manager. Why? How can I properly ...
0
votes
1answer
235 views

Upgrade Magento 1.5 to 1.9 Call to undefined method Mage_Core_Model_App::getIsCacheLocked()

I did an upgrade from 1.5 to 1.9 but after the upgrade I get the following error: Fatal error: Call to undefined method Mage_Core_Model_App::getIsCacheLocked() in /var/www/demanchetknopenwinkel/app/...
0
votes
1answer
734 views

Custom filter in the sales order admin grid giving Invalid block t

I've been able to filter custom added column like 'seller name ' its get from seller id of product. other filters are working. $this->addColumn('seller_id', array( 'header' => Mage::...
0
votes
3answers
4k views

How to get custom customer address attribute in checkout billing section?

I try this $this->getAddress()->getNickName() but not working, It working in edit page. In checkout billing page I got validation class in text field. $this->helper('customer/address')->...
0
votes
1answer
529 views

Compare and wishlist link doesn't work

I need to add compare and wishlist link in to the 1column.phtml file. I added this code in this page but nothing show!!! app/design/frontend/default/celebrity/template/page/1column.phtml For compare ...
0
votes
3answers
736 views

Billing name order in billing_name column in sales_flat_order_grid table

Can someone please tell me when a record is pushed into the "sales_flat_order_grid" table? How can I switch first name and last name in "billing_name" column of this table?
0
votes
0answers
87 views

Cannot create bundled product, products are empty

I have two test products: When I try to create a bundled product out of them, I do not see any products in the list here: Any idea why this might be? Are the two test products created incorrectly? ...
0
votes
2answers
852 views

How to set the default option in existing dropdown attribute

How do I set an option in a dropdown attribute as the default? I am adding the options to an existing attribute with this code where $aName is an array of names. $installer = new ...
0
votes
2answers
1k views

How to Trigger Stock Status Index?

We're using Mass Product Update in the admin, however, this doesn't trigger stock status. I can use observer once catalog_product_attribute_update_before is called, and manually trigger indexer there....
0
votes
1answer
360 views

Merge custom collection into customer/address collection

I'm making an extension, that lets the user define companies and add addresses to them. The plan is to show those addresses to the customer according to the value of an attribute in the customer (eg. ...
0
votes
1answer
564 views

Code to enable downloadable product?

I have the following custom payment plugin controller. After purchase, it does not enable a downloadable product. I am wondering if there is a simple line of code I could add so that this controller ...
0
votes
2answers
1k views

Magento 1 - Change Magento custom options date values

Hello I am simply trying to find the array of defaults for the product custom-option date my goal is to change the month from "01,02,03....12" to a string with the month name "Jan. , Feb. , Mar. - ...
0
votes
1answer
968 views

Undefined index: cc_owner in /app/code/core/Mage/Checkout/Model/Type/Onepage.php

I am using Magento ver. 1.6.2.0. On checkout step I am getting following in popup: Unable to set payment method When I checked the exception.log I found more details like following : exception '...
0
votes
1answer
84 views

Magento extension subfolder change

I am trying to localize an extension i bought from Magento store. http://www.sitename.com/extname/ to http://www.sitename.com/myext I have changed the config.xml file to do this change. <routers&...
0
votes
1answer
429 views

Button redirecting to the grid page

I have a custom module 'banner' and in which I have added a button in its second tab(only two tabs for the module). when click on that button, it is submitting my banner automatically and then go to ...
0
votes
1answer
4k views

Fatal error: Call to a member function on non-object

I am developing a custom module where an xml file will be created after order completion for each order. I have called a function exportOrder on occuring of an event "sales_order_place_after". ...
0
votes
2answers
2k views

Show custom attribute in sidebar wishlist

I have a sidebar whislist /app/design/frontend/base/default/template/wishlist/sidebar.phtml I need to add a "custom attribute" called manufacturer. I have tried many options like these but all don't ...
0
votes
1answer
398 views

Getting orders with faked/false data

Since about 2 weeks we're getting about 2-3 faked orders each day in one of our Magento stores (v1.5.1). Every order is placed following the same scheme: the user visits the storefront accesses 1 or ...
0
votes
1answer
818 views

Is it possible to have a custom option for a product that, when selected, disables all the other options?

Is it possible to have a custom option available for a product that, when selected, disables all the other custom options for that product?
0
votes
1answer
226 views

Pass data from block to controller

When I try to call block method in controller it returns me null value but when I run same block method in view(.phtml) it returns right value. I'm trying to get number of posts in controller so I ...
0
votes
1answer
654 views

How to remove index.php and default store code from url in magento? [duplicate]

I want to remove default store code and index.php from my url. I have installed one module for remove default store code form url but after remove store core from url my site can not open without ...
-1
votes
5answers
979 views

Show banner only on category pages

I am trying to show banner on category pages only. Following is what I did yet in page.xml <block type="catalog/category_view" name="category_banner" as="category_banner" template="catalog/...
-1
votes
2answers
232 views

How to Have multiple If statements in PHP

I want to add this: <?php if(Mage::getBlockSingleton('page/html_header')->getIsHomePage()):?> To This Statement: <?php if(Mage::app()->getFrontController()->getRequest()->...
-1
votes
2answers
774 views

How to call the attribute inside the static block?

I want to Create tabs to switch between contents inside the Product details page and call the attribute ( Description of the product) inside one of the tab content.( That attribute value should be ...
-1
votes
2answers
3k views

[solved]get Product ID and URL from Product page as PHP variable

On the product page, I want to read the Product URL (http://www.example.com/myCategory/myProduct.html) and put it as string in a PHP variable like $myProductURL. I also want do to this with the ID of ...
-1
votes
1answer
414 views

How can I run a new cron job to clear cache every 12 hours? [duplicate]

How can I run a new cron job to clear cache every 12 hours? Can anyone help?
-1
votes
1answer
20 views

Magento 1.x addFieldToFilter using AND instead of OR (how can I join search using AND)

I am trying to use AND and OR based on user input. OR = success But I an unable to setup AND queries for addFieldToFilter question: how can I add the second (looped filter) using AND to join $...
-1
votes
1answer
2k views

php version requirements for Magento 1.9.1, 1.9.3 versus 2.2.0

Magento 1.9.1 Magento 1.9.3 future install of Magento 2.2.0 VPS server account with MultiPHP Manager I have a VPS server. The hosting company installed a "MultiPHP Manager" in the WHM. Currently, ...
-1
votes
1answer
4k views

How to set customer id for a quote in Magento?

I added a product into the cart and tried to map customer id, email to that quote using the code below $product_id = 123; $qty = 1; $product = Mage::getModel('catalog/product')->load($...
-1
votes
1answer
718 views

How to Edit/Change name of wishlist etc [duplicate]

How to change/edit names in the top menu "Wishlist, My Cart and Checkout"?
-2
votes
1answer
533 views

Custom shipping calculation returns wrong price only while editing order in backend [closed]

I build a custom module for shipping that has several price options. It works well in frontend. But when we need to edit an order already placed in admin, I can't get the custom prices. It always ...
-2
votes
1answer
100 views

How to add menu to magento backend? [duplicate]

I have the below code and it does not work for me. I want to insert a submenu which is Distributor to an existing menu which is MJSI. config.xml <config> <modules> <...
-2
votes
1answer
110 views

How to set different prices for bundle items for different websites, programmatically? [closed]

Say, now I have 2 websites (A & B) created. And then I have created two simple products (Product X & Y), and a bundle product Z, with X & Y set as its bundled items. How could I set the ...
-3
votes
2answers
538 views

unexpected 'public' (T_PUBLIC) [closed]

I had a helper class conflict with two of my modules. I have resolved this issue by doing following: if (Mage::helper('core')->isModuleEnabled('Amasty_Methods')) { class ...