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.

444 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
20
votes
0answers
244 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 ...
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'); $...
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 ...
6
votes
0answers
104 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 ...
6
votes
0answers
710 views

Magento : Validate Product against shopping cart rule

I have a Shopping cart rule which applies to a particular category with some discount. I have a situation wherein I want to validate product against this rule whether this rule can be applied to that ...
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 ...
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 ...
6
votes
1answer
519 views

How can I get only the Store View attributes, without the inherited Global data? I only need the diffs

I'm using the internal Magento APIs to get the product data on a store view level. I only want to get the values that are on that store view level, not the global values that in inherits. But it ...
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 ...
6
votes
1answer
1k views

“Interface Locale” admin language problem

In my admin page, the "Interface Locale" dropdown is not working. I already switched the default language to German, but is still shows English. The same with Chinese. How can I solve this problem?
5
votes
1answer
325 views

Magento Rest API

I want to use the Magento rest API for my application, when I will call the API from postman tool at that time there showing me error as per below: oauth_problem=parameter_absent&...
5
votes
0answers
597 views

After adding custom price to product currency is not converting on cart page

To add custom price while adding to cart I have used catalog_product_load_after observer and used the function to add price. public function checkoutCartProductAddAfter(Varien_Event_Observer $...
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 ...
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 ...
5
votes
0answers
541 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. <?...
5
votes
0answers
1k views

How to add product to wishlist after login by guest customer?

Add to wishlist is being done in AJAX for online customers and the products are successfully added in wishlist. For offline/guests, if they click add to wishlist a pop-up is shown with link to login. ...
4
votes
1answer
337 views

Cannot cancel order in Magento 1

I have an order with processing status and its invoice is canceled. When I use the order->canCancel() function, It returns me false. I checked the core and this is the part why I am getting false:...
4
votes
0answers
457 views

Magento 1.9 : Add form field to Admin Credit Memos

I need to add custom dropdowns to the Credit Memo create form. I read that you should be able to add a simple field without having to rewrite core code. The following line fails in the Observer: $...
4
votes
2answers
88 views

Problem with <backend_model>

I'm getting a little desperate here with my custom Magento Backend Models. Here is the situation: I have 2 multiselect (locales_served, countries_served) fields with custom backend models in my ...
4
votes
0answers
529 views

Admin: Order View not showing product's ordered attribute

I want to display more attribute like size|gender|color in Magento Sales-->Order section Below is the code I used to get these details File Path- /app/design/adminhtml/default/mytheme/template/sales/...
4
votes
0answers
1k views

Fatal error: Call to a member function getCode() on a non-object in Customer/Model/Session.php

I have done a multi-website setup in Magento. The second website is configured in a sub folder and is accessible using the folder name as in the URL path. Site 1 - http://192.165.3.193/ Site 2 - ...
3
votes
0answers
37 views

Magento 1: How to check image file is uploaded or not without using Global variable $_FILES()?

Is there any way to check that image file is uploaded or not without use of $_FILES() ? in Magento 1.9.4.0
3
votes
1answer
40 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?
3
votes
1answer
92 views

Can anyone have any idea of security patch file of SUPEE-9652 V2?

As i'm unable to find the SUPEE-9652 V2 version related security patch, because of these I'm unable to run another patch i.e, SUPEE-10570, can anyone provide me the solutions For Magento 1.9.x. ...
3
votes
0answers
104 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 ...
3
votes
1answer
99 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-...
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 ...
3
votes
1answer
395 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']); $...
3
votes
0answers
92 views

How to Add No Index tag to category path product urls in magento?

We want to add no index robots meta tag for all those category path product pages: www.example.com/Category/productpage Actual product page: www.example.com/productpage category path product ...
3
votes
0answers
175 views

get.php in server logs - security issue?

I noticed multiple hits per day on get.php in the access logs of a Magento 1.14 store, resulting in PHP errors and a HTTP 500 response. Some of them have bot user agents like facebookexternalhit/1.1 (...
3
votes
0answers
166 views

Bulk change “Available Product Listing Sort By” for all categories?

I have a big Magento Store with about 200 categories. Currently, "Available Product Listing Sort By" for all categories is set to "Use All Available Attributes". For about 10 categories, I would like ...
3
votes
0answers
90 views

Date format in the customer account dashboard

The date in the customer account dashboard in my Magento store is in the format of mm/dd/yyyy now, that is the date in the recent orders list is in above format. I want it to be displayed in the ...
3
votes
0answers
156 views

adding media_image attribute sql catalog

$installer = $this; $installer->startSetup(); $this->addAttribute(Mage_Catalog_Model_Product::ENTITY,'expert_author_image', array ( 'group' => 'Expert recommandation', ...
3
votes
1answer
606 views

What is the usage of 'gallery' attribute and how it differs from 'media_gallery'

gallery is a default attribute which ships with Magento along with media_gallery, image, thumbnail and small_image. These attributes are grouped under Images. But what is the real use of gallery ...
3
votes
1answer
983 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 ...
3
votes
0answers
176 views

Use Multiselect instead of dropdown customer groups code in backend Magento

I'm using a custom redirect extension from iPragmatech to redirect a customer to a different URL after logging in. This is based on customer groups. I have asked the developer for help which he gave ...
3
votes
0answers
883 views

Magento Backend issues (Extjs)

I have some issues in my backend : no product categories some buttons not working no editor In firebug console there are several JS errors. example for the categories page : SyntaxError: missing ) ...
3
votes
0answers
450 views

Email validation in registration form to exclude example addresses

My current registration form only validates the proper input email format. Where my validation.js file has ['validate-email', 'Please enter a valid email address. For example johndoe@domain.com.', ...
2
votes
1answer
11 views

400 Bad Request 'Allowed JavaScript Origins' in Magento 1.x

i install amazon v3.0.10 on magento 1.x. When click checkout by amazon, it show this error I tryed add application in amazon account but it not working. Please help me, thanks
2
votes
1answer
38 views

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

Is there anyway to solve this rather annoying issue?
2
votes
1answer
22 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 ...
2
votes
0answers
30 views

Select logic changed with latest versions - product resource collection

While performing an upgrade of a Magento 1 shop, noticed a change in core class Mage_Catalog_Model_Resource_Product_Collection, within method _initSelect The change that has happened is, that ...
2
votes
0answers
10 views

Why did the Payment section stopped working after switching primary domain? And - does Form Key Validation On Checkout need to be enabled?

Porto theme I switched the primary domain in our Magento 1.9.4 store and then the Payment section of the checkout stopped working altogether - you could select a Payment method by placing a tick in ...
2
votes
0answers
93 views

The use of function html_entity_decode is forbidden. What should we use instead?

Ecg coding standards forbids using html_entity_decode method. What should we use instead?
2
votes
0answers
32 views

Magento 1.9 patch error

I trying to patch 1.9.2.1 from supee-752 to supee-10888 and getting next error: Cant find the any solution. Any ideas?
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 ...
2
votes
1answer
64 views

Magento programmatically refresh statistics. - Magento1

How to refresh statistics programmatically in Magento 1?
2
votes
0answers
29 views

Magento 1.14 admin page showing 404 error

We have a scenario where 5000 + admin user needs to access Magento 1.14 admin panel. It is not necessary that they will all need to access admin panel concurrently. If a single user logs in, the page ...
2
votes
0answers
129 views

Magento 1.8 and varnish cache 4.0.5 get 404 product page issue randomly

I have used varnish cache for awhile on my Magento 1.8. It worked well for a long time until now I'm having an issue that some product URL got 404 error. It's randomly, not specify any product. And ...
2
votes
0answers
19 views

Backend login page can't display correclty

After transferring to a new server, the backend login page can't load correctly, but the frontend works well. You can see the links of CSS and JS files are not correct. And the login button can't load ...