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.

5
votes
0answers
526 views

Magento 1.x : Accessing Magento Rest Api as Admin

I am trying to access magento rest api with following script, but is uses default guest role to access, so I cannot access orders and other stuffs. How can I access Magento Rest api as admin. <?...
17
votes
10answers
2k 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/...
23
votes
17answers
4k views

Security Patch SUPEE-11086 - Possible issues?

Magento has released a new security patch for M1, and updates for M1 and M2. These releases include critical security fixes. "We strongly recommend that all merchants upgrade as soon as possible." ...
1
vote
1answer
870 views

How to get all products collection for special category

I am looking for function which is similar to getLoadedProductCollection and which retrieves all products from this category with selected filters, not only those I can see on current page like ...
16
votes
15answers
5k views

SUPEE-10975 Potential Issues

SUPEE-10975 has been released, it would be great to know if anyone runs into any issues while trying to apply this, will this conflict with the most recent patch that adds 7.2 support? So far these ...
0
votes
1answer
873 views

Product Page Layout

I'm trying to find a way to add a new custom layout for some products so I can just go to the Design Tab and choose the "Page Layout" from the dropout. I can only find CMS Layout pages in google. Also ...
6
votes
0answers
63 views

Inconsistent package.xml - Magento 1

I tried finding a Slack or Discord server for Magento before coming here. I am trying to submit a Magento 1 extension for technical review @ marketplace and the package.xml won't pass marketplace ...
2
votes
0answers
27 views

In Magento 1 if i try to delete over 50 products the site crashes

Is there anyway to solve this rather annoying issue?
1
vote
1answer
17 views

Pull data of orders having non-zero subtotal for each customer

I want the count of the orders which each customer has placed. Only those order which has non-zero subtotal should be counted. How can I get that data? Please let me know if we can use any SQL query ...
2
votes
5answers
5k views

How do I prevent junk customer registrations on my store?

I'm going through my registered customer accounts and see tons of spammy registrations like this: Is there something I should do to delete the existing spam accounts prevent future registrations ...
0
votes
3answers
660 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?
1
vote
2answers
706 views

Customer redirected to login page after successful login

I'm having the following problem: the customer logs in, is redirected to main page, but gets redirected back to login page. There is no error message. On failed login with wrong credentials there is ...
0
votes
2answers
36 views

Magento addtocart formkey 404

I've been struggling with this issue for a few hours now and thought to see if anyone else has any ideas on why it could be happening. When I try to add a product to the cart, I get a 404 error with ...
0
votes
2answers
855 views

Product SKU requirements. What characters are restricted from a product SKU and can there be spaces in the middle of the SKU?

For product SKU's can there be spaces in the middle of the SKU? Are there any character restrictions that can not be used for a SKU ?
2
votes
1answer
721 views

magento Shopping Cart is Empty on safari & explorer browsers when i add products on these browsers

My store Shopping Cart is Empty is always empty when I use safari browser and internet explorer to view my store and add to cart from this browser. Please, can anyone help me regarding this? What can ...
0
votes
1answer
831 views

Products still showing out of stock

Previously in my Magento store I had set the Qty for Item's Status to Become Out of Stock in the inventory to 5 so that if the quantity of the products reaches to 5 or below it should show as out of ...
0
votes
1answer
711 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::...
2
votes
1answer
704 views

How to call cms block of block type into custom header

I've made code of most viewed products which I'm trying to call under custom header. This is what I've done so far. Posted the block code under cms block by name 'most_viewed'. {{block type="...
1
vote
2answers
815 views

Magento1 SQL select all Attribute Option values like in Admin Backend

I want to get all values of all M1 Attribute Option values like in Magento backend. I have this code SELECT eav_attribute_option_value.option_id, eav_attribute_option_value.`value`, ...
2
votes
3answers
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
2answers
28 views

How to minify Magento 1.x core JS/CSS files?

Any ways how to minify core JS/CSS files in Magento 1.x? (Prototype.js, etc) Thanks
0
votes
3answers
766 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, ...
1
vote
1answer
934 views

Filtering custom value from rendering column issue in Magento 1

I created my own collection with custom data. This is part from my grid class: my grid class extends Mage_Adminhtml_Block_Widget_Grid ... $this->setCollection($collection); array_walk($data['...
0
votes
1answer
52 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 ...
2
votes
2answers
600 views

[Solved]Cannot override Pdf/Total/Default.php model

Good morning everybody! I have a problem trying to override the model app/code/core/Mage/Sales/Model/Order/Pdf/Total/Default.php with app/code/local/Mycompany/Sales/Model/Order/Pdf/Total/Default.php. ...
0
votes
1answer
819 views

Show also fixed price for bundle product when special price is set

Currently when we set a special price for bundle product it shows the special price as configured price. We use bundles as package products so we hide all options and selections and bundles have only ...
3
votes
2answers
7k views

How to get current category ID

I'm trying to display a message just on a certain category page in magento? I know how to do this on a product page so like: <?php if (in_array(415, $_product->getCategoryIds())) {?> &...
0
votes
2answers
31 views

How can I access my old Magento Admin Panel?

we recently launched a new website and in doing so have lost access to the old admin site. Both sites are using Magento 1 and we used to access the old site on the following URL, https://www.alltank....
0
votes
1answer
27 views

How to modify a variable {{var order.increment_id}} from transactional email

Does someone know where the value of {{var order.increment_id}} comes from? The variable is in the “credit memo” template in the transactional email section. Can someone help? Because I need to ...
5
votes
2answers
71 views

Can't login to staging servers without deleting cookies first. Magento 1.9

We have multiple clones of our main shop at www.mainsite.com for testing and developing. e.g. test.mainsite.com, fbk.test.mainsite.com and isk.test.mainsite.com, There is a big issues with the ...
0
votes
0answers
21 views

Magento front and backend suddenly displaying in plain text

my website is suddenly displaying in plain text, my backend as well. I'm running Magento 1 still. I tried restoring a back up from before the incident happened, nothing changed. I made sure the ...
2
votes
1answer
19 views

Two item category coupon code with fixed amount for whole cart

Magento version, 1.9.2.4 How do I generate a coupon where a person puts in there cart one item each from two different categories and then gets a fixed discount off the whole cart. But, if only ...
1
vote
1answer
34 views

Allowed memory size exhausted error when create block and set template

Hello I am using magmodule rich snippet where this code block add some snippet to catalogue page: $snip_html = $block->getLayout() ->createBlock('snippets/products') ...
2
votes
1answer
17 views

Call to undefined method stdClass::getVatRemoved()

There is observer in my magento 1 site for event vat_check_after. In this observer the code is: $validation_result = $observer->getEvent()->getValidationResult(); if($validation_result->...
1
vote
1answer
888 views

Button print order does not show

I have a Magento 1.9 and it does not show the button to print order pdf in orders. How I can enable this? Thanks
1
vote
1answer
861 views

Custom Date Range in Admin Dashboard

I am working on a task to modify Date Range on Dashboard chart. Data chart will display on custom date range selection (Today/Yesterday/This Week/Last Week/This Month/Last Month). I have extend the ...
1
vote
3answers
82 views

magento 1 malicious code attack in app/Mage.php

I have been working on a project and recently i am observing some malicious code is being added to the file app/Mage.php at the top of file. I have tried removing this code multiple times but it again ...
3
votes
1answer
894 views

CSS not showing for “NEW” or “SALE” label

So I followed this tutorial to add "NEW" or "SALE" label for this site: http://www.ubertheme.com/docs/add-product-labels/. The label does show up on the product icon but for some reason the CSS isn't ...
0
votes
2answers
916 views

Class 'Varien_Data_Form_Element_Datetime' not found

when trying to edit a product in admin I suddenly got this error: PHP Fatal Error: Class 'Varien_Data_Form_Element_Datetime' not found in /home/public_html/lib/Varien/Data/Form/Abstract.php on ...
21
votes
6answers
26k views

Determine Magento version without access to code base

Is there a way to find the version of Magento being used without having access to server sided code? For instance, how does this plugin work https://chrome.google.com/webstore/detail/magento-...
1
vote
1answer
27 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 ...
0
votes
1answer
889 views

How can I display the product short description in the related product template?

I need to display the related product short description in a magento 1.9 store. What do I need to add to the template->catalog->product->list->related.phtml file?
3
votes
3answers
3k views

How to Create Helper Data?

I recently find the custom message based on the total for free delivery Link. I create the module as said @Marius but, I am the new one to Magento so I am unable to create Hepler Data. I don't Have ...
1
vote
1answer
23 views

Product Category is not displaying in front end in magento 1

I have created a new category in the backend. But it is not automatically showing in front end.
0
votes
3answers
290 views

Magento 2 : Admin category products getting wrong count

I am using the Magento 2.1.8 version. Facing an issue of products count next to the category name. The categories of Anchor is enabled. I did reindex and flush the Magento cache. In addition, ...
0
votes
1answer
918 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/...
0
votes
1answer
14 views

Using ngrok with Magento 1 issue

I have a virtual host set up. My local url is http://test.local When I start ngrok, my local url will become: http://test.local.ngrok.io so I changed my base secure and unsecure url to: http://test....
0
votes
0answers
20 views

Magento 1 Observer not overriding core observer

I am trying to override a core observer, but nothing I have tried has worked. I am trying to observe the event sales_order_save_before. Here is my config file: Location: app/code/local/DBCustom/Order/...
1
vote
0answers
23 views

Migrate category and product urls from magento 1 to magento 2

How to migrate only category and product urls from magento 1 database to magento 2. I am using magento 2.2.6 Thanks Pradeep
6
votes
1answer
87 views

Which license should I use for my own extension to prevent others to use it without my permission/paying?

I developed a few extensions and I try to figure out which license I should use to "prevent" others e.g. our agencies to copy them and spread them to their own customers w/o my permission.