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
2answers
962 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 ...
0
votes
1answer
20 views

How to Set Store Config (system configuration)

We can get system configuration values using Mage::getStoreConfig($xmlPath); But how can we set such configuration field programatically? I would expect some method like Mage::setStoreConfig($...
1
vote
1answer
940 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
896 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?
0
votes
0answers
3 views

Export specific customer data incl. orders to another instance

I'm working for a customer that has several Magento Instances (from local, to stage, to test, to production). On production, customers are creating unreproducable behaviours which developers would ...
2
votes
1answer
72 views

Learn zend, magento modules and magento API

I can already use magento and I have some php basics. Now I would like to deepen zend, magento modules and magento API. You could link me all the best resources to learn this?
28
votes
18answers
6k 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/...
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
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?
0
votes
2answers
1k views

Magento 1 - Change Magento custom options date values

Hello I am simply trying to find the array of defaults for the product custom-option date my goal is to change the month from "01,02,03....12" to a string with the month name "Jan. , Feb. , Mar. - ...
0
votes
0answers
27 views

I am getting an error when i run setup : Magento 1

I am getting below error: Call to a member function getDefaultStore() on boolean in D:\wampstack\apache2\htdocs\juliasvn\app\code\core\Mage\Core\Model\App.php on line 562 can anyone have any ...
2
votes
1answer
2k views

Get selected Custom Options from configurable product

the following observer script looks for selected configurable options, to work out the qty needed and adds a simple product (#9236) to the cart. However, it only works for simple products. How can I ...
0
votes
1answer
1k views

How can I move blocks around in Magento 1.x layout?

I'm trying to move the highlighted div right after the header page div. I'm not sure how I can do this - can someone explain how?
1
vote
1answer
1k views

Create credit memo programatically - refund offline issue

This is my code: $OldOrder = Mage::getModel('sales/order')->loadByIncrementId(3123121312); $invoices = $OldOrder->getInvoiceCollection(); $service = Mage::getModel('sales/...
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 ...
0
votes
1answer
1k views

How to disable quantity edit in frontend for grouped products

Some Brief I want to sell products like tea, coffee, juice etc they are in small packets each packet cost is around $3.73. For this i will make it simple product in magento. So when customer will ...
0
votes
1answer
2k views

Magento Configurable Product Page Update Custom Dropdown With Attribute Value

So I have a configurable product which has a number of associated simple products. I am trying to obtain functionality on product page where the user can choose a colour for the product, and then ...
0
votes
0answers
18 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
48 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
3k 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
366 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
26 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
41 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
5k 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
602 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
547 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
27 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
208 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 ...