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
4
votes
3answers
731 views

After applying SUPEE-10415 Magento 1.9.3.3 404s but works fine if redis is removed from the local.xml

As the subject says, after applying the SUPEE-10415 patch, all seems fine until "redis-cli flushall" then we get the annoying "404 error: Page not found." on everything. After a process of elimination,...
3
votes
0answers
106 views

Removal of .orig files

In patching some Magento sites the patch leaves behind a .orig version of some of the files that were patched. I've been removing these from version control but was curious is there's any purpose to ...
2
votes
1answer
60 views

Deleted cron lock files makes the magento unresponsive

We truncated the table core_url_rewrite and deleted the files in var/locks/*. What happened next is our server keeps using high CPU usage. See the high CPU usage below: I restarted apache and it ...
37
votes
9answers
16k views

Security Patch SUPEE-10415 - Possible Issues?

New Magento 1 patch has been released, SUPEE-10415. This patch provides protection against several types of security-related issues Info page: https://magento.com/security/patches/supee-10415 ...
2
votes
0answers
171 views

addFieldToFilter to column from joined table in EAV Table

I am trying to filter columns from a joined table using addFieldTofilter. I have tried the code below but throws an exception. $collection->getSelect() ->joinInner(array('customerphotos' =&...
2
votes
0answers
87 views

Are catalog rules completely broken in Magento 1 with flat tables enabled? Or, how can these SQL queries ever work as intended?

I've discovered that some of the SQL queries Magento is using to generate catalogrule discounts are completely nonsensical, leading to products receiving discounts even though they should not. This ...
1
vote
1answer
295 views

Configurable product option values in database

Where are configurable product option values, stored in the database?
2
votes
1answer
49 views

Getting the order object from observer issue in Magento 1

Is there a way to get the order object from this event controller_action_postdispatch_checkout_onepage_saveOrder Apparently it doesn't know about the order by using this: $observer->getEvent()-&...
1
vote
1answer
454 views

Add timepicker to system config

I want to add time (hh:mm:ss) picker to admin system config using system.xml file. Is this possible to do?
0
votes
0answers
209 views

Different form key in template and controller

When I am directly accessing customer/account/login page then, values for $this->getRequest()->getParam('form_key'); and Mage::getSingleton('core/session')->getFormKey(); are different when ...
1
vote
2answers
41 views

Why indexing in command/CLI works?

Whenever I had problems with admin Index Management, I just have to go to the CLI/Command and execute the command line to reindex specific or all indexes to fix the issue. This was suggested by the ...
3
votes
1answer
108 views

How to check if a string is translated or not in Magento 1

I did a rewrite of this class: Mage_Core_Model_Translate and I focus on this function _getTranslatedString So I changed it into this: protected function _getTranslatedString($text, $code) { $this-...
1
vote
2answers
661 views

Add a block to a page with event observer

I'm trying to add a static block to a page with an observer. The event that I'm listening to is controller_action_layout_generate_blocks_after and this is my observer code: <?php ... class ...
0
votes
2answers
31 views

In stock products only in my search custom code [duplicate]

$productCollection = Mage::getResourceModel('catalog/product_collection') ->addAttributeToSelect('author') ->addAttributeToFilter('author', array('like' => $searchstring.'%')) -&...
2
votes
2answers
218 views

Is calling Mage::app() in a template file good or bad practice?

I want to get the store code in a phtml file. I know I can get it with the below. Mage::app()->getStore()->getCode() But is this good or bad practice? My guess is that it is not as Mage::...
0
votes
0answers
358 views

Fast way to resave all products

I need a fast way to resave all 75.000 products in my Magento 1.9 store. Currently I use the following code, but that is not very fast. Is there a better and faster way to resave all products? CODE: ...
1
vote
0answers
70 views

Get access to $item->getNumberOfDownloadsUsed() function on Download.php

I need to get the number of downloads bought and used, that's two methods that are available on $item object. But I can't instance $item on the file that I'm working: app/code/core/Mage/Downloadable/...
0
votes
2answers
33 views

In Magento1, how do you establish where the translations csv file is to be uploaded?

I have my translate.csv file ready to upload into a Magento setup. So we are changing words from Magento default like Tax to be VAT instead. I understand different setups will have this file uploaded ...
0
votes
2answers
359 views

Magento block in before_body_end with form_key being cached

Magento block in before_body_end with form_key being cached We use a block for login form data in the block before_body_end. Only since some time we have seen this block is cached and the form_key ...
0
votes
1answer
107 views

Passwort reset link in new-account e-mail

I'm trying to get the reset password link into the new account mail, right after registration. My attempt right now is: theme/template/customer/resetlink.phtml if ($user->getId()) { $...
0
votes
1answer
73 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 ...
0
votes
2answers
860 views

Magento 1 get product or category id by url string

I have url string. I need to detect if url belongs to product or category and get product or category id. I tried this, but it won't work: $vPath = 'http://dev.magento186.com/default/example/...
0
votes
1answer
22 views

Remove Add to Cart and prices

I think you have to use a FTP client to do this, which i haven't used before. But i'm trying to find a way to remove the add to cart option for logged in or not logged in users and remove the prices ...
-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
vote
1answer
70 views

List of customers in customer groups

I have around 80 different customer groups, with different prices on. How can I find out how many customers are in any given group? Can I make a list of all customers included in customer group? I ...
-3
votes
2answers
540 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 ...
0
votes
1answer
57 views

Newsletter subscribed variable in success.phtml

I am looking to show a custom message to customers who subscribed to newsletter on the checkout confirmation page on our magento site but I am not able to check the subscription status using the ...
0
votes
2answers
46 views

Can't open shipping methods in backend

I just installed Aheadworks Blog for my Magento 1.9.2.4. Everything works, but now I can't open shipping methods in backend. I'm getting a blank screen and this message in the address: index.php/...
1
vote
0answers
45 views

Getting subtotal issue in Magento 1

I have problem with the subtotal from the image below: I have 28.45 , which is calculated in this function from : Mage_Adminhtml_Block_Sales_Order_Create_Items_Grid public function ...
0
votes
1answer
279 views

Tiered pricing based on total quantity purchased

I am selling note cards, and there is no price difference between any of them, the same pricing structure applies to all. What I would like to do is calculate a total based on the total quantity of ...
0
votes
1answer
685 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.
0
votes
0answers
33 views

Where is the “Add product” tab in Magento 2 [duplicate]

Trying to add product manually for an existing customer, but the orange tab is no longer there.
0
votes
1answer
28 views

Getting Element with the id 'X' already exists on the cms pages from adminpanel in Magento 1

I am using this eventadminhtml_cms_page_edit_tab_content_prepare_form to add an extra field in the cms view page. This is the code from my observer: $model = Mage::registry('cms_page'); $...
0
votes
2answers
613 views

How to add css only for checkout page of rwd theme in Magento 1.9.0

I need to add a custom css in checkout.xml file like this <checkout_cart_index translate="label"> <reference name="head"> <action method="addCss"> <...
0
votes
0answers
359 views

'Invalid method' error on custom module

I'm trying to get a better understanding of Magento module development and I've run into an issue I can't seem to figure out. I've built a custom module that allows users to pick the desired delivery ...
0
votes
0answers
21 views

how do I add callback for new invoice

Which file do I amend to add a callback function whenever the system is trying to generate new entry in sales_flat_invoice? Version 1.4.1.1
2
votes
2answers
323 views

Getting “Front controller reached 100 router match iterations” error in Magento 1

I am getting this error message, both on frontend and adminpanel. The error is from: app/code/core/Mage/Core/Controller/Varien/Front.php This is the function where the error is thrown: public ...
3
votes
0answers
50 views

Magento ver. EE1.13.0.2 tmp table deleted frequently

The following error occurs in exception.log file exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'catalog_category_product_index_tmp' doesn't ...
2
votes
0answers
30 views

Redirecting admin user before creating an order in adminpanel issue M1

I have a custom condition for customers . If that condition is satisfied I would like make a redirect with a message that 'the order cannot be created'. I used the sales_order_place_before event to ...
0
votes
1answer
163 views

Best practice for fixing multiple URL's for same product issue in Magento1?

This Magento1 website has 5 different URL's for each product that are indexing in Google. Examples below: www.url.com/category1/product-name.html www.url.com/brands/product-name.html www.url.com/...
0
votes
2answers
430 views

USPS Patch SUPEE-10336 - Possible issues? [closed]

A new USPS patch has been released for Magento 1: https://magento.com/tech-resources/download#download2070 What common issues do you have to watch out for when applying this patch? -This patch ...
3
votes
1answer
397 views

Getting data from quote items collection issue in M1

This is my collection: $collection = Mage::getModel('checkout/cart')->getQuote()->getItemsCollection() ->addFieldToFilter('product_type', ['eq' => 'bundle']); $...
0
votes
1answer
345 views

Composer installing my magento 1 extension to /vendor but not copying to /app

I have built a Magento 1 extension which is available as a repo here: https://github.com/BenGrant123/Duel_Emails/ Following this guide (http://magebase.com/magento-tutorials/how-to-make-magento-...
2
votes
1answer
826 views

Change product page layout and design for the bundle product, in Magento 1.9

What I did 1) Moved bundle folder from rwd to my active custom them template folder. 2) In app/design/frontend/rwd/ysv/layout addedd below code, <catalog_product_view> // under this &...
0
votes
1answer
182 views

Custom widget doesn't show in admin

I am learning Magento (1.5) and am trying to create a custom widget to use in static blocks. I have created a module: <?xml version="1.0" encoding="UTF-8"?> <config> <modules> ...
0
votes
1answer
136 views

Magento Localhost var directory XAMPP

Facing the following error in my 'magento localhost'. Tried creating a 'tmp' folder in the 'root directory' but is not working. Maybe I'm creating it in the wrong directory? Thanks
1
vote
0answers
184 views

Getting data from customer attribute checkbox type in Magento 1 issue

I created a customer attribute with Text field as an Input Type . I selected the Show on Frontend on Yes . I went to the register phtml file and I added: <input type="checkbox" name="...
0
votes
0answers
36 views

Creating a cron task to store data into Magento cache (module development)

This is Magento 1.9.x CE. I have created some modules that implement a helper to pull data from various APIs and save the output in Magento's cache using the _saveCache method in ...
1
vote
0answers
17 views

Magento 1.13.1.0 New Website/Store creation Website/Store Name not stored

While trying to create a new website via System->Manage Stores on an existing magento install with a website already existing on it. And when editing and existing website/stores name. The save ...
36
votes
11answers
11k views

Security Patch SUPEE-10266 - Possible issues?

A new security patch is out for Magento 1, addressing 13 APPSEC issues https://magento.com/security/patches/supee-10266 What common issues do you have to watch out for when applying this patch? ...