We’re rewarding the question askers & reputations are being recalculated! Read more.

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
0
votes
0answers
20 views

Delete/Deactive customer account after customer placed order in magento 1

It is possible to customer account delete or deactivate after customer placed the order otherwise deactivate after some certain amount of the time has passed.
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 ...
0
votes
0answers
35 views

Magetno 1.9.3 Syntax error or access violation: 1064 You have an error in your SQL syntax

On the ckeckout page, when the firstname or lastname contains a character " ' " then I get an error when placing the order: exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or ...
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 ...
0
votes
1answer
52 views

What happens to Magento 1 websites when PSD2 effective on Sep 14th, 2019?

Can Magento 1 site (CE + EE) comply with PSD2?
0
votes
2answers
1k views

Magento 1.x site gives me an error message about Fatal error

I get this when I go to my site: Fatal error: Call to a member function children() on a non-object in app/code/core/Mage/Core/Model/Config.php on line 946 I have done anything on it today. May I ...
1
vote
1answer
2k views

Magento, programmatical checkout not including shipping rates

I'm trying to write this script to checkout using the cart. The problem is that the shipping rates aren't being factored into the totals and when the order goes through the order details say there is ...
1
vote
3answers
1k views

How to add new or customize existing top header links in Magento?

I want to change the existing top links AND add some new.I need them to be in larger font (not default one) with icons or images before them. I read some tutorials and came to know its done by writing ...
7
votes
3answers
4k views

Developer mode on production environment

I was recently contacted by a client to evaluate their Magento store. I realized that the store (even though running in production) had developer mode enabled in their index.php file: if (isset($...
4
votes
2answers
371 views

Make use of footer_before

The default RWD theme has a file named 1column.phtml in template > page. This file contains this line: <?php echo $this->getChildHtml('footer_before') ?> I could make perfect use of this ...
0
votes
1answer
32 views

Magento 1 : How to add multiple route in single Module

Below is the code for the router in config.xml <routers> <representatives> <use>standard</use> <args> <module>Mage_Representatives&...
0
votes
1answer
43 views

Add to cart before Magento 1 - Cancel adding

I am creating an observer to cancel the addition to the cart with add_to_cart_before. Here is my config.xml Module_Stockespagne_Model ...
24
votes
17answers
6k 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
2answers
1k views

Couldn't reindex stock of one item programmatically

I'm trying to reindex one product only programmatically: $product = Mage::getModel('catalog/product')->load($_productId); $product->setForceReindexRequired(true); Mage::getSingleton('index/...
2
votes
1answer
2k views

Magento Clears Session Data After Redirect

For some reason, magento clears session or customer session data after redirect? How will I save some data before it redirect to the next page into a session? I tried adding session_write_close(); ...
2
votes
3answers
1k views

Customer Information Attribute in New Order Email Template

I've scanned many posts but cannot get to bottom of this one. I have created a custom Customer Information attribute and I need it to display on the New Order transactional email. Any ideas? I have ...
0
votes
1answer
634 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.
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'); $...
2
votes
1answer
1k views

Adding custom options to all products of a certain type on save

I have created some custom product types that extend from simple products. These product types will all have the same custom options added, so I'd like to just set those options on the product when ...
1
vote
1answer
596 views

How to Apply the Coupon Code only to the products that are “Not on Sale” - [Without Special Price]?

My conditions are working fine when i check out with single product which is not having the special price, The same condition is working fine with the products has special price. So the problem is ...
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
1answer
1k views

How to change category product position in database

I want to change the position value of the category product tab in the category page from 0 to 2. When the newly created product is created, its default position value was 0. This is my progress as ...
1
vote
1answer
2k views

Error Code : 15005 Processor Decline in Paypal

I have created a dummy country in magento for some requirement. I have created a store and assigned that dummy country as default country for that store, by using configuration System -> ...
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 ...
1
vote
1answer
36 views

How to get Real IP when using stackpath (Magento 1)

We have just moved to Stackpath and now our payments are failing. I can see the requests hitting the server: [08/Aug/2019:09:27:41 +0000] "POST/worldpay/processing/response... I have enabled the ...
2
votes
1answer
1k views

Translate Static block content

I have a multilingual site and for display language-specific block i have to create a different static block for each language-specific store. Is there any methods or way available to translate ...
4
votes
1answer
2k views

unable to insert widget in product detail page

I am developing the Magento theme I am trying to add the widget in the product detail page through layout so that I can make it installable but I am unable to add the widget. here is the following ...
0
votes
1answer
2k views

Multiple payment gateways in magento [closed]

Is there any way or Extention in Magento to handle multiple payment gateways like for credit card transaction one payment gateway, for EMI transaction another payment gateway and for net banking ...
1
vote
2answers
2k views

How best can I structure product configuration for SEO?

We have concerns over the structure of our store - Products and categories - In terms of SEO and findability of products. Say you have a configurable product (T-shirt) with 3 configurations (Colour, ...
3
votes
1answer
706 views

Is there a list of my account sidebar link names for use with removeLinkByName module?

When trying to remove my account links in the sidebar, using the module outlined here http://www.magentocommerce.com/boards/viewthread/435/#e9 Is there a list of all the names that are associated ...
0
votes
1answer
209 views

How do SalesRules actions evaluate category values?

I briefly stepped through some of the SalesRule scenarios and code, and it seems like anything dealing with category params is ignored. On the one hand, this makes sense, as quote items have no ...
2
votes
1answer
1k views

How to override `Shipping method` in `Edit Order` area?

I am trying to override the shipping method in the Edit order area of the admin side. What I have done is, added new file My/Module/Block/Adminhtml/Sales/Order/Create/Shipping/Method/Form/Form.php ...
-2
votes
1answer
531 views

Custom shipping calculation returns wrong price only while editing order in backend [closed]

I build a custom module for shipping that has several price options. It works well in frontend. But when we need to edit an order already placed in admin, I can't get the custom prices. It always ...
0
votes
1answer
748 views

Export products in 3rd party system that does not share the same server

I need to export products from Magento to 3rd party CMS, let's say Wordpress. My store will look like this: I don't need to integrate systems (neither sharing sessions, nor customers) There ...
1
vote
1answer
379 views

Magento Architecture - using helper to handle all data & variables

Is it considered good/bad architecture to set up a helper and let this handle all the constants, variables and data? I am currently writing a fairly simple extension to do with member/non-member ...
2
votes
1answer
228 views

Trouble with Magento Module name in Parallel plesk. Issue seems like with Case sensitivity

I am having trouble with my Magento module name in parallel Plesk. My module's name is like ComPany/MYMODULE and it works fine in localhost. But I uploaded it to a live server in Parallel Plesk, I m ...
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 ...
0
votes
0answers
27 views

Invoice Date sets to 1 Jan 1970 when set to “Paid”

Does anybody please know why some invoices on Magnento 1 are automatically reverting to 1 Jan 1970 for the purchase date and due payment date when they are set to paid? Many thanks in advance
2
votes
5answers
654 views

Why local.xml always use <host><![CDATA[localhost]]></host>?

I want to see what database a Magento installation was using. If i observe the file /public_html/app/etc/local.xml Surprisingly, it shows a database that doesn't exist, even my hosting server is ...
0
votes
0answers
26 views

Rich Snippets for Google Local Store - Add to CMS page in Magento1

For a Magento1 store, we are looking to add rich snippets to various CMS pages. To allow Google to pickup the data for the website's different store locations. We have seen plugins that allow you to ...
1
vote
1answer
591 views

Integrity constraint violation: Duplicate entry for key 'UNQ_CATALOG_PRODUCT_SUPER_ATTRIBUTE_PRODUCT_ID_ATTRIBUTE_ID'

I cant save the super attribute because i get error $pricesByAttributeValues = array(); $baseCode = Mage::app()->getBaseCurrencyCode(); $allowedCurrencies = Mage::getModel('directory/currency')-&...
1
vote
2answers
642 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
1answer
748 views

magento set dropdown attribute value by selected value instead of id

i wrote custom code to assign attribute to product , issue is with dropdown attribute say color with values : red , green , yellow not i want to set value of color to be red so i used code below $...
1
vote
2answers
36 views

CSS only applies to widescreen devices, not mobile in Magento 1.x

CSS only applies to widescreen devices, not mobile. This isn't reponsive because when I use F12 in the browser and select the reponsive mode, it still has css but when reloading on it it no longer ...
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.... ...
2
votes
2answers
615 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. ...
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