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
6
votes
3answers
1k views

Magento getFirstItem and getLastItem not working on collection

My code is as below but it won't work with loading first or last item. $shipidarr[0] = 100007536; $shipModel = Mage::getModel('orderstatus/orderstatus')->getCollection(); $shipModel->...
9
votes
2answers
12k views

How to let user choose delivery date?

My website is gifting website so I need to let users select the date of delivery. I want that selection (textbox with calendar popup) on shipping details step. I can google for a free extension but I ...
2
votes
1answer
32 views

Magento does not show template

I can't figure out why magento is not loading my template: The template is located at app/design/frontend/base/default/template/fekete/Newsletter2Go/customer/account/dashboard/info.phtml I double ...
2
votes
4answers
364 views

Overriding Enterprise Adminhtml block

I've some troubles while trying to override a Enterprise Adminhtml's block. Here is the Block that I want to override : app/code/core/Enterprise/Reward/Block/Adminhtml/Customer/Edit/Tab/Reward/...
0
votes
0answers
11 views

Reference for Differences Between Versions of Magento

As I understand it , there was a big change between Magento 1.3 and 1.4 - then the next big change was at 2 ( with maybe some sort of change in version 1.6 ) The problem I have is translating data ...
7
votes
3answers
2k views

What could cause error related to “dashboard/tunnel/key”

There is below information in the log, but no idea what could cause this :( a:5:{i:0;s:45:"Unable to read response, or response is empty"; i:1;s:1003:"#0 lib/Varien/Http/Client.php(61): ...
0
votes
1answer
51 views

Magento does not create cache, reports and logs

I noticed that my magento onlineshop does not create any files in var/cache, var/report and it does not report anything to the logfiles in var/log. The var directory has the permissions drwxrwxr-x ...
0
votes
1answer
59 views

How to throw exception with stacktrace?

I need my extension to throw an exception which includes a stack trace. I tried Mage::throwException('message') but nothing is logged in var/log/exception.log nor at var/log/system.log nor in the ...
4
votes
4answers
14k views

How to disable Magento crontab job

I'm trying to disable a cron job that's scheduled in a Core file (for reasons), but I haven't been able to find any information about that on the manual or the Internet. I found that the job I want ...
0
votes
2answers
49 views

Don't execute foreach loop if array is empty

I have the following code, if there are no orders older then $days_ago, I want that the foreach loop won't be executed. I don't know how to do this. $orders = Mage::getModel('sales/order')->...
0
votes
0answers
92 views

PCI Compliance Scanning Tool For Any Version Of Magento Site

I am looking for a PCI Compliance scanning tool that can scan Magento websites ( Any version ) or Piece of Magento code. Please suggest. I know there is a checklist available in DevDocs (https://...
4
votes
2answers
5k views

Show layered subcategories on the left of the subcategories page

I am having an issue. I need to show the sub-category layered navigation on the SUBCATEGORY page of a store that I am working on. You guys already know that on the subcategory layered navigation is ...
0
votes
4answers
312 views

Simple Observer not working

I'm new to Magento and I'm trying to add an additional button to a pre-existing admin form using an observer. I set up my config to what I believe is the right event handle. I created an observer and ...
2
votes
3answers
3k views

Can't install extensions “Failed to connect to magento-community port 443: Connection refused”

I am trying to install an extension (I have tried more than 1 and also checked version compatibility) but I keep getting this error: Failed to connect to magento-community port 443: Connection ...
2
votes
1answer
89 views

Can't change customers groupId in observer

I try to change the customers group id in the observer sales_order_place_after but it seems to be impossible. I successfully managed to change the firstname of the customer just for test, but groupId ?...
1
vote
1answer
125 views

Disable sort/filter for existing grid column

Is it possible to disable filterable/sortable for an existing grid column via observer or layout update?
0
votes
0answers
49 views

Magento1 Security patch `SUPEE-10975` Not able to upload images using Media store in static block

While trying to upload images using Media store in static block getting logout from admin. I am trying to upload image from cms block. see attached screenshot. I am getting logout on controller ...
2
votes
1answer
3k views

How to generate shopping cart rules programmatically?

I am trying to generate shopping cart rule dynamically for particular product my matching the sku in condition. Rule is getting generated but the condition part is not setting up. my code : $...
0
votes
1answer
115 views

many Confirmation Emails being rejected by customers' receiving mail service (confused for spam) How to setup a 3rd party mailing solution?

We are having a serious problem - many (like 3 or 4 every day) customers never receive their Order Confirmation Email due to the fact that their mail service (whatever that may be) confuses our Order ...
3
votes
1answer
39 views

Adding Message under Payment Method (like paypal redirect message)

I need to add message under Redsys Payment Method (like paypal redirect message) when you click it. Example: Where i can add this?
1
vote
0answers
36 views

Can't get Magento 1 adminhtml layout file to load

I was working on a large module and I couldn't get an adminhtml layout XML file to load. So I created a new test module to isolate the issue and I still can't get the layout file to load. I don't ...
1
vote
0answers
99 views

Necessary to apply Magento PHP 7.2 patch before installing SUPEE-10888?

I'm running Magento 1.9.2.1 and patched up to SUPEE-10752. I'm wanting to apply the SUPEE-10888 patch, but it's not clear to me from the documentation whether or not the PHP 7.2 patch, which was ...
1
vote
0answers
34 views

Some invoices not showing on grid and email not sent, but row are created in DB

We have been having this occasional issue, for some orders, the payment is processed (by any of our methods), the sales_flat_invoice_* records are created for the invoice, the items and the grid. But ...
0
votes
1answer
27 views

How to check if extension has cronjobs and start them?

I installed the extension algolia search. But I think its cron job is not running anymore since we moved to another hoster, the term "algolia" is not in the Aoe-Schedueler List. How can I check if ...
3
votes
1answer
1k views

How to assign a group to user based on their email id on registration

I am making a project In which I have to differentiate between the user who have registered I want that if some one registered with the id abc@gmail.com He should be automatically assign to ...
0
votes
0answers
37 views

Magento1 add image functionality via content editor iframe popup breaks with Stackpath CDN

Any suggestions on how to remedy the below? Stackpath say it is issue with code. I find it hard to believe that the inherent features of Magento1 would break though? It occurs on any of the editor ...
1
vote
1answer
85 views

Get total in observer sales_order_place_before

I try to get the total value (price of his order) of the customer in the sales_order_place_before event. How can I read the total value? This is a part of my observer, it is getting called, I only ...
1
vote
0answers
33 views

Customers receiving order confirmation with another customer's details

We recently upgrade out Magento 1.9.0.1 site to the latest patches through to SUPEE-10975. We have started seeing a number of problems like so; Some backend orders show customer email address and ...
1
vote
0answers
52 views

Connection to remote MySQL Database fails

We copied our domain, database and filesystem to another server @ rackspeed. I opened the cPanel and added the ip address of the old server in "Remote-MySQL" so that the old server can connect to the ...
1
vote
0answers
39 views

Cannot redeclare class YT_BasicMenu

I am placing some new products inside a magento installation. The site is not developed by me, but I have to fix this problem. I inserted a new product, and in the frontend I have this error on the ...
1
vote
0answers
28 views

Disable image cdn stuck

I am having an issue with my Magento site and any assistance would be greatly appreciated. I recently migrated my Magento (1.4.1.1) site from Rackspace to a private server. The site was configured to ...
2
votes
0answers
26 views

How to deal with multiple extensions overriding the same template file?

I have two extensions which load their own template for the block with name customer_form_register in customer_account_create The first extensions overrides the template to add a new field to the ...
1
vote
2answers
826 views

Update single attribute value

I'm a Magento newbee so please forgive me if there is ... a crap in the code ... Sending Ajax request with Brand ID and current state "status = 1 or 0" and would like to update state in table: public ...
3
votes
5answers
5k views

How to Get Product Category IDs Without Loading the Whole Product

By default, you can load product category IDs using this: $product = Mage::getModel('catalog/product')->load($_productId); $category_ids = $product->getCategoryIds(); But how can we load the ...
2
votes
1answer
190 views

how to get the full credit card number in my observer class on sales_order_save_before event?

I wanna get the credit card number when the user hit the place order button. Right now I am using this event: sales_order_save_before and using this code to get the card number but gets no value. It'...
2
votes
1answer
62 views

Magento programmatically refresh statistics. - Magento1

How to refresh statistics programmatically in Magento 1?
1
vote
1answer
106 views

how fix invalid url in magento

Invalid base url type Trace: #0 C:\xampp\htdocs\magento\app\code\core\Mage\Core\Model\Store.php(620): Mage::exception('Mage_Core', 'Invalid base ur...') #1 C:\xampp\htdocs\magento\app\Mage.php(382): ...
0
votes
0answers
53 views

Authorize.net payment method errors

We are receiving below errors in a Magento 1 store while using Authorize.net payment method on checkout At Frontend: Soap request error due to invalid configuration At Backend: Soap-Error: Parsing ...
3
votes
1answer
51 views

Override OnepageController.php Not Working

I'm trying to override the successAction in the app/code/core/Mage/Checkout/controllers/OnepageController.php. I have done the following: I've created my override folder here: app/code/...
45
votes
16answers
11k views

Security Patch SUPEE-10570 - Possible issues?

Magento has released a new security patch for M1, and updates for M1 and M2. What issues should I look out for when upgrading or applying this patch? SUPEE-10570 SUPEE-10570, Magento Commerce 1....
37
votes
9answers
15k 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 ...
0
votes
1answer
44 views

Can I make free shipping on a specified product in magento 1?

I need to create a new product which my customer need not to pay shipping amount for this (ex: free shipping), but, it doesn't work, here is the snapshot for your reference.
0
votes
1answer
29 views

Last logged in always never, not logging

I turned on logging module, it works, but no logs in log_customer or log_visitor. Those tables are empty. What else can block logging? Magento 1.9
0
votes
1answer
36 views

Search type in Catalog don't search by Product's Name

I'm changed catalog search configuration to : System > Configuration > Catalog Search Type => Combine (Like and Fulltext) Product Listing Sort by => Name But when I search by name, the product ...
0
votes
3answers
199 views

ImageOptimizer - jpegtran is not executable

I installed the extension ImageOptimizer. I noticed that it is not working, progress is still at 0% so I activated error logging in the extension and get this: jpegtran is not executable. I ...
0
votes
1answer
863 views

Fatal error: Call to a member function setTemplate() on a non-object in

path: app\code\local\Bhtech\Designer inside this folder all other folder Block, Controller config.xml <?xml version="1.0"?> <config> <modules> <Bhtech_Designer>...
0
votes
0answers
21 views

Problem with categories when exporting/importing products from Magento 1.9.1 to Magento 1.9.4

product migration (Dataflow - Profiles import) Magento 1.9.1 --) 1.9.4 I am having a huge problem with categories. When I tried to do the import at first - it gave me Errors saying the categories do ...
0
votes
0answers
37 views

How to show validation fail message?

I added a form to my site and a field which needs validation, this is the field: <input class="newsletterInput validate-length maximum-length-20 minimum-length-3" name="first_name" ...
8
votes
3answers
10k views

ReferenceError: Uploader is not defined in magento 1.9.3

after update to new version 1.9.3. the Uploader is not working anymore. given below error.i upldate my code but still the same. var uploader = new Uploader({"uploaderConfig":{"chunkSize":...
1
vote
5answers
826 views

When to use Mage::getSingleton() in my custom module/Ext

theoretically i know about Mage::getSingleton() & differences b/w Mage::getSingleton() and Mage::getModel() but my question is that in my custom module when to use Mage::getSingleton(){Normally ...