Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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
2
votes
1answer
9 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
1
vote
5answers
8k views

How to send a form key with post data using ajax to a controller in magento?

Suppose I have an ajax function like this in a separate js file jQuery.ajax({ url: "/package/module/index/index", type: "POST", data: {name: user_name, dob: date_of_birth},//here i want ...
2
votes
2answers
819 views

Adding NOINDEX tag to products

We no longer have a web developer but need to add NOINDEX tags to all our products to help with our SEO We have about 450 products at any one time We are using Magento 1.8.1.0 We are complete ...
9
votes
4answers
12k views

Magento Indexer Not Adding Attribute to flat table in custom attribute

Magento Not adding custom Attribute to flat table..... I have a market place extension...which have some attribute but some attributes not adding to flat table...due to my extension not working.... ...
3
votes
0answers
36 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
1
vote
2answers
4k views

Delete / Unset existing custom options on product

I have created an observer on catalog_product_save_before in order to add custom options to a product. What i don't manage to achieve is clearing out existing custom options beforehand. Here is my ...
1
vote
2answers
231 views

How to update Magento 1?

I don't understand the point: is it enough to apply all latest M1 patches to keep the Magento 1 up-to-date or do I need to download and install whole Magento 1 code package every time the new version ...
1
vote
3answers
3k views

How do i disable Magento search

I have installed a third party search mod and now want to remove the native "advanced search" from the web site as well as all reference on the front end. Have tried the "How to disable Advanced ...
1
vote
1answer
92 views

Migrate magento 1 to Magento 2 : Data migration tool change column type

I'm trying to migrate from Magento 1.7.0.2 to Magento 2.3.1 For that I use the migration tool :https://devdocs.magento.com/guides/v2.3/migration/migration-tool-install.html All is working fine ...
0
votes
1answer
43 views

Migrate magento 1 to magento 2 new column

I'm trying to migrate from Magento 1.7.0.2 to Magento 2.3.1 For that I use the migration tool :https://devdocs.magento.com/guides/v2.3/migration/migration-tool-install.html All is working fine ...
2
votes
1answer
34 views
6
votes
0answers
694 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 ...
5
votes
0answers
540 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. <?...
16
votes
15answers
6k 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 ...
6
votes
0answers
95 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 ...
1
vote
1answer
23 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 ...
1
vote
2answers
744 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
76 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 ...
1
vote
2answers
1k 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`, ...
0
votes
2answers
46 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
1answer
152 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 ...
3
votes
2answers
8k 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
48 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
33 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
74 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
24 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
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 ...
1
vote
1answer
45 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
32 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
3answers
133 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 ...
22
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
31 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 ...
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
24 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
564 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
39 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
28 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
29 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
91 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.
0
votes
1answer
32 views

Magento does not use specified default value on attributes of type yes/no

I added a new attribute with Default Value set to Yes. I added the attribute to my attribute set and edited the product, but it is set to No by default. How can I fix it?
173
votes
8answers
24k views

Studying to become a Magento Certified Developer

I have been considering studying to become a Magento Certified Developer. When I look at the study guide I see a lot of questions which I can answer, however, the problem is I don't really know what ...
5
votes
1answer
2k views

Magento checking order updated_at using Magento date and time

we are trying to filter out orders that were created longer than 60 minutes ago with status pending. We are having some problems with the date/time functions We tried: - date('Y-m-d H:m:s') and ...
0
votes
1answer
17 views

where in clause in magento 1

I am new to magento. How can I use where in clause in magento 1. I have array of ids and I want rows from those ids from database. Please help me here. $stateDealersCollection = $stateDealerModel-&...
20
votes
4answers
53k views

How to enable Developer Mode in Magento 1.7

I am trying to enable Developer Mode on a site using Magento 1.7. So far I've added : SetEnv MAGE_IS_DEVELOPER_MODE "true" to the .htaccess file and : ... if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'...
0
votes
1answer
124 views

How do we use RMA module of Magento? Is there any book or manual to get hang of Magento?

How do we use RMA module of Magento? Is there any book or manual to get hang of Magento?
143
votes
5answers
11k views

How to write a custom extension?

Because I had a lot of issues lately with free and commercial extension I've decided to ask this question and answer it with the steps I usually follow when writing an extension. Feel free to edit the ...
13
votes
3answers
2k views

How to insert an <iframe> in an Admin Panel <field>?

I'm creating a custom module which displays Google Maps in the frontend of Magento. To get those maps the Admin would have to enter and save the URL of the map location in the Admin Panel. This all ...
0
votes
0answers
20 views

Magento 1 layout best practice

So on a multistore Magento 1 we need to change the html on a page depending on the store, everything is done with one theme. And we have 2 implementations, but I'm not sure which one is better. ...
2
votes
3answers
10k views

Configurable product - Inventory - Stock Availability status doesn't change when all associated Simple products go out of stock?

I have an Enterprise site (1.12.0.2) and a Community site (1.7.0) both doing the same thing. A configurable product (Manage Stock set to Yes) has just one simple product. Somebody orders the last ...