Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

15
votes
0answers
208 views

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 to ...
5
votes
0answers
405 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: $...
5
votes
0answers
647 views

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
568 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
0answers
515 views

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. ...
3
votes
0answers
41 views

Magento : How to Solve Fatal Error SetDateRange()

When I try to filtering report by date range in admin, It show me error like this. Fatal error: Call to a member function setDateRange() on boolean in app/code/core/Mage/Reports/Model/Report.php ...
3
votes
0answers
92 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
0answers
39 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
0answers
154 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
153 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
74 views

Cancel discount on creditmemo when conditions do not match anymore

I have a discount code that gives a client 20 euro discount on an order, if the cart contains a specific SKU (this is just an example, it could also be an attribute color with the value blue). This ...
3
votes
0answers
240 views

Two checkbox filed column for admin form grid

I would like to make more then one checkbox for grid in custom form. and grid checkbox value should be passed through form.I have implement it in form grid but it has problem when i click on first ...
3
votes
0answers
82 views

how make a skip extension install from downloader or magento connect

here what i want to do. i want to skip the installation if the module is already install from magento connect or downloader is this possible? i have module that are packaged with every extension that ...
3
votes
0answers
83 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
138 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
0answers
599 views

Magento wrong logged in Customer Data issue

First of all, thank you very much for all the help in advance. This is my first time posting a question and I'm sorry if there's any mistake at all. Now, Let me first try to explain what I'm trying to ...
3
votes
0answers
512 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/...
3
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
166 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
800 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
448 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
0answers
27 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
6 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
28 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
20 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
0answers
27 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
90 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
17 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 ...
2
votes
0answers
33 views

Magento 1: How replacing WYSIWYG button in product description field?

By default when there is an attribute with "Enable WYSIWYG" set to Yes you will get a button bellow that form field [WYSIWYG Editor]. When you click on the button your will get a pop-up window, but ...
2
votes
0answers
80 views

Installed cron scheduler but I see now that cron is having issues

I'm looking at the timeline & I see that cron keeps stopping & the cron jobs are not running. I get this message "Last heartbeat is older than one hour. Please check your settings and your ...
2
votes
0answers
72 views

can't save custom attribute in order table during checkout

I've created a custom order column but when i try to populate it during checkout it doesn't save data. (Else if I edit order in backend my custom column is populated): /app/code/local/Radicis/...
2
votes
0answers
74 views

Are catalog rules completely broken in Magento 1 with flat tables enabled? Or, how can these SQL queries ever work as intended?

I've discovered that some of the SQL queries Magento is using to generate catalogrule discounts are completely nonsensical, leading to products receiving discounts even though they should not. This ...
2
votes
0answers
24 views

Redirecting admin user before creating an order in adminpanel issue M1

I have a custom condition for customers . If that condition is satisfied I would like make a redirect with a message that 'the order cannot be created'. I used the sales_order_place_before event to ...
2
votes
0answers
182 views

Order totals for pending payment showing total paid instead of total due

I'm facing an issue when an order payment is not completed. On magento backend order section, order total is showing Total Paid amount instead of Total Due(as the payment is not completed)
2
votes
0answers
89 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 ...
2
votes
0answers
451 views

Refresh cached product images programmatically

After flushing image cache, cached product images are rebuild when they are loaded from frontend like from product view page ... I need them restored w/o vistit every page manuall, so how to this in ...
2
votes
0answers
310 views

Google Analytics tracking code in the checkout issue

I m trying to implement the steps from the tracking code for onepage checkout. I expected to have smth like this: ga('ec:setAction','checkout', { 'step': 1, // or 'step': 'payment' }); By ...
2
votes
0answers
2k views

Getting error message: Some transactions have not been committed or rolled back

This is my code. I am trying to create a credit memo in an observer: $OldOrder = Mage::getModel('sales/order')->loadByIncrementId(12132332); $invoicesAll = []; $invoices = ...
2
votes
0answers
218 views

Error in applying SUPEE-8788 in EE 1.13.1.0 - malformed patch at line 6139

My Magento version is 1.13.1.0 and had SUPEE-1533 installed. As per Magento guidelines I have reverted this patch and then applied SUPEE-3941 (previously not applied). These step went successfully. ...
2
votes
0answers
46 views

I'm searching for a way to add a minimum shipping fee to a Shopping Cart Price Rule

I'm searching for a way to add a minimum shipping fee to a Shopping Cart Price Rule. I've set up free shipping for most items in the store. For heavy and truck freight items, they are excluded. I have ...
2
votes
0answers
164 views

Magento SOAP requests using Powershell

What I'm trying to do is use Magento's SOAP API v2 in Powershell to update products, create products, manage categories, etc. So the simplest way I've found so far is from this page. Here's a bit of ...
2
votes
0answers
73 views

Tying Paypal Settlement Report Back to Specific Order Object

Is there any known science for tying the information in the PayPal settlement report table paypal_settlement_report_row back to a specific Magento order object?
2
votes
0answers
339 views

How to change radion button and checkbox in magento 1.9.2.1 - with images, and the use of :checked or :visited

Im trying to change the radio buttons, so different <label for=""> display an image. I would also like it to change the image with a new image, when the radio or check-box has been selected or ...
1
vote
0answers
18 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 ...
1
vote
0answers
20 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
1
vote
0answers
15 views

tinyMCE always changes URL after edit configurable article and save

If I edit a configurable product and save then it loads and if load finisihed then URL changes from: https://www.example.com/index.php/login/catalog_product/edit/id/4 to https://www.example.com/...
1
vote
0answers
17 views

Magento 1.x core config values in mysql upgrade?

I have the following lines to get a core_config_data value in a mysql upgrade script $installer = $this; $installer->startSetup(); $adapter = $installer->getConnection(); $my_store = Mage::...
1
vote
0answers
23 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?
1
vote
0answers
24 views

Attribute set sort order has gone - how to rebuild?

This code returned attributes set for dropdown menu - ordered by attribute set name ... $sets = Mage::getResourceModel('eav/entity_attribute_set_collection') ->setEntityTypeFilter(Mage::...