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
1
vote
1answer
967 views

How do I add a custom dropdown filter in a grid

This is my code: $this->addColumn( $key, array( header' => Mage::helper('core')->__($key), 'index' => $key, 'filter' => 'adminhtml/...
28
votes
21answers
9k views

Security Patch SUPEE-11155 - Possible issues?

Magento has released a new security patch for M1, and updates for M1 and M2. What common issues do you have to watch out for when applying this patch/upgrade? Magento 1 https://magento.com/security/...
2
votes
2answers
2k views

Programmatically Export Sales order customer details to excel format

I tried to export sales order customer details, its working fine, but i want customer country code(country name) not id. below i mention my full code. <?php require_once("app/Mage.php"); Mage::app(...
3
votes
3answers
2k views

Increasing all product prices by percentage | Custom Script

I am trying to find a way to update all product prices by 5% then I want to revert them to the original price and wondered if anyone had any ideas of the best way to achieve this. At the moment I am ...
0
votes
0answers
38 views

Migration magento 1 to magento 2 error

I use the tool of Magento for migration data from Magento 1 to Magento 2. After run command lines: php -dmemory_limit=3G bin/magento migrate:settings vendor/magento/data-migration-tool/etc/opensource-...
0
votes
1answer
237 views

Magento 1.9 : Create a CSV of product SKU, Quantity and Price

I'm trying to work out how to create a downloadable CSV file that contains fields for Product SKU, Quantity (should be set to 5 if more than 5 in stock) and Price in Magento 1.x. Price in this ...
1
vote
2answers
753 views

Cron does not update currency rates

I'm using this module to replace webservicex currency rates importer: https://github.com/philwinkle/Philwinkle_Fixerio It is working ok when I hit import and save in the backend. But I want to run ...
6
votes
2answers
2k views

Get page URL from current page, different store-view

I'm using different store-views to create different language versions of a shop. Now I'm trying to add links to the other pages. However, I can not find a way to get the actual URL from the other ...
0
votes
1answer
1k views

How can I move blocks around in Magento 1.x layout?

I'm trying to move the highlighted div right after the header page div. I'm not sure how I can do this - can someone explain how?
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
30 views

How to generate a pre-patched version of Magento 1 SUPEE patch?

Some people like Meetanshi has pre-patched version of Magento 1 SUPEEs. How they generate those files? This is very useful for people (Like me) who are not able to apply patches via SSH from .sh ...
1
vote
1answer
1k views

Create credit memo programatically - refund offline issue

This is my code: $OldOrder = Mage::getModel('sales/order')->loadByIncrementId(3123121312); $invoices = $OldOrder->getInvoiceCollection(); $service = Mage::getModel('sales/...
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....
1
vote
1answer
2k views

Magento 1 - How to show bundle products original price and discount price in product listing page

Am creating a Combo Offer using Bundle option in my store. I did everything, but need to show Original Price and Special price in product list page. Eg:
0
votes
0answers
24 views

Add Import Export functionality to my custom grid in Magento 1

I want to add Import and Export functionality for my custom grid records of my custom module. I had created a custom table in the database. I want to add Import and Export functionality using PHP code....
6
votes
2answers
1k views

New website/store view, all pages 404 (including homepage)

As per the title, I've set up a new store on a different domain and all pages including the home page are returning 404. I've tried pretty much everything, and I'm wondering if any of you can think ...
9
votes
10answers
5k views

SUPEE-11219 Potential issues?

Magento just sent out an email about a new security patch (SUPEE-11219). https://magento.com/security/patches/supee-11219 Affected versions: Magento Commerce 1.9.0.0-1.14.4.1 Magento Open Source 1....
0
votes
1answer
2k views

Magento Configurable Product Page Update Custom Dropdown With Attribute Value

So I have a configurable product which has a number of associated simple products. I am trying to obtain functionality on product page where the user can choose a colour for the product, and then ...
0
votes
0answers
18 views

How to get product collection in custom admin form by entering SKU, Name or ID in input field in Mageno 1?

I had created a custom admin form and added an input search field for Product search. When I add a specific product detail, i.e. product sku or product name or product id. I need to fetch the product ...
5
votes
1answer
2k views

Grid pagination does not work in magento

Pagination is not working in my grid. All records are being shown on same page. All though Pagination is being shown at the top but all pages shows same records. Here is the code-- protected ...
1
vote
1answer
2k views

Magento, programmatical checkout not including shipping rates

I'm trying to write this script to checkout using the cart. The problem is that the shipping rates aren't being factored into the totals and when the order goes through the order details say there is ...
0
votes
1answer
1k views

How to disable quantity edit in frontend for grouped products

Some Brief I want to sell products like tea, coffee, juice etc they are in small packets each packet cost is around $3.73. For this i will make it simple product in magento. So when customer will ...
2
votes
1answer
2k views

Magento Clears Session Data After Redirect

For some reason, magento clears session or customer session data after redirect? How will I save some data before it redirect to the next page into a session? I tried adding session_write_close(); ...
6
votes
1answer
1k views

How to get the product id and SKU code of the product selected

I am using a plugin to enable notify me (Out of stock) feature, the plugin is working properly but the problem is it is taking the core product id and storing it in the backend, even after I select a ...
1
vote
3answers
1k views

How to add new or customize existing top header links in Magento?

I want to change the existing top links AND add some new.I need them to be in larger font (not default one) with icons or images before them. I read some tutorials and came to know its done by writing ...
0
votes
0answers
9 views

How to get used product having attribute size value is L (large)

$product = Mage::getModel('catalog/product') ->load($this->getProduct()->getId()); /** * Get child products id (only ids) */ $childIds = Mage::getModel('catalog/...
2
votes
1answer
751 views

Create product for each color on catalog, but all link to one configurable

I am currently using Magento for a fashion website. I am looking for an extension or some way to do the following: PRODUCT 1 has 3 colors. Currently there is one configurable for PRODUCT 1 and then ...
2
votes
3answers
1k views

Customer Information Attribute in New Order Email Template

I've scanned many posts but cannot get to bottom of this one. I have created a custom Customer Information attribute and I need it to display on the New Order transactional email. Any ideas? I have ...
0
votes
2answers
755 views

Magento CE Warning: simplexml_load_string(): Entity Parser Error

I am trying to resolve an error I see in the system.log file for Magento. However I can not figure out what the issue or or more importantly how to resolve it. I have looked at the update.php file ...
0
votes
2answers
1k views

Magento 1.x site gives me an error message about Fatal error

I get this when I go to my site: Fatal error: Call to a member function children() on a non-object in app/code/core/Mage/Core/Model/Config.php on line 946 I have done anything on it today. May I ...
0
votes
0answers
10 views

Set data to existing Shopping Cart Price Rule not working

I am using the following code to find an existing Shopping Cart Price Rule. $pCoupon = Mage::getModel('salesrule/rule')->load($name, 'name'); $pRule = Mage::getModel('salesrule/rule')->load($...
2
votes
2answers
6k views

Onepage checkout returns error 500 in Magento 1

I installed a theme in Magento 1 that is just working with onepage checkout. In general that is fine, but somehow it is not working. First, I type in my billing address/shipping address, but it stops ...
2
votes
0answers
24 views

Htaccess Redirect Product Url without Category Path

Our current product URLs look something like this: https://www.example.com/category1/category2/product.html https://www.example.com/category1/category2/product-2.html We want them to look like ...
20
votes
0answers
250 views

Magento Testing SOAP API's using EcomDev_PHPUnit

We just started working on a Magento project where there is a need for some complicated changes to the Magento SOAP API. Since we never properly worked with unit tests, this looked like a good case ...
2
votes
1answer
23 views

How do you update/change a product's store/website via Magento's CSV importer?

Using Magento 1.9.2. I'd like to be able to re-assign products between stores by uploading a CSV containing product SKUs and store names or IDs. How can this be done?
1
vote
2answers
1k views

Couldn't reindex stock of one item programmatically

I'm trying to reindex one product only programmatically: $product = Mage::getModel('catalog/product')->load($_productId); $product->setForceReindexRequired(true); Mage::getSingleton('index/...
2
votes
4answers
2k views

Disable Ajax Add to Cart on product page

In our web-shop, we use an AJAX add to cart, so the page doesn't have to reload. But when the order is bigger than the stock, the ajax keeps loading and doesn't show a message the order isn't ...
0
votes
0answers
12 views

Gift Card payment ignores points payment and is charged whole amount

When I make a payment using both gift card and by redeeming points, both the payments go through but my gift card is charged the grand total instead of (grand total-rewards currency amount). On the ...
1
vote
1answer
27 views

Magento 1: Add Customer Group in Order Grid

I want to add a column in Sales > Order Grid for "Customer Group" after the "Ship to name" column. I know i need to modify app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php Could someone ...
1
vote
1answer
2k views

Error Code : 15005 Processor Decline in Paypal

I have created a dummy country in magento for some requirement. I have created a store and assigned that dummy country as default country for that store, by using configuration System -> ...
0
votes
1answer
682 views

How to get full list of product with Simple Product SKU Number and Category Name from MySql with Query in Magento?

I want to pull data from Mysql with query in magento, I need data in three columns SKU Number, Category name and product Name etc.
7
votes
2answers
1k views

Get empty result when trying to get filterable attribute for particular category

I need to retrieve all filterable attributes for category. I'm using that snippet: $category = Mage::getModel('catalog/category')->load($categoryId); $layer = Mage::getModel('catalog/layer'); $...
0
votes
2answers
2k views

Entire database is not exporting from phpmyadmin in Xampp

The database is not exporting completely from phpmyadmin in my local server xampp. Please tell me the way to export the entire database.
2
votes
1answer
1k views

Adding custom options to all products of a certain type on save

I have created some custom product types that extend from simple products. These product types will all have the same custom options added, so I'd like to just set those options on the product when ...
8
votes
4answers
8k views

How prevent a model data save using _save_before event

I have create a model which has its own database table. For a customization I need to trigger save_before event of this model. If one field value is not matched, then the data should not be saved. ...
7
votes
1answer
2k views

Custom /catalogsearch/ filters

Beforehand I have to tell: I'm a total n00b on Magento and what I need to know is more a "common practice" or "standard" about how is something achieved in Magento, since I have to maintain (in record ...
5
votes
3answers
2k views

Show product of a category in a custom page

I create a category with some product. Also create a custom layout for my page that I add new cms page with this layout that I created. I need to have this page with my layout because I want to add ...
1
vote
0answers
27 views

Add transactional email template programmatically

I'm looking to add an email template to make it available in the transactional emails templates list in back office. I'm a newbie to magento 2 and a huge newbie to magento 1. My project is under V1....
3
votes
2answers
6k views

Conditionally add CSS file in layout XML (local.xml)

I need to add a CSS file in local.xml based on some custom variables. I have 5 CSS files but each time only one needs to be loaded. I only know how to check if a single variable is set in the config. ...
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 $...