Questions tagged [magento-1.7]
Magento Community version 1.7
481
questions
29
votes
3
answers
32k
views
How to implement translations in design template package CSV's? How does echo $this->__('Text') work?
I have a design package setup like so:
design/frontend/package_name/theme_name/locale/
under which I have
de_DE, en_GB etc, under which I have corresponding translate.csv files with the various ...
77
votes
13
answers
84k
views
Clearing Magento after testing
I am currently doing a lot of tests in Magento so I can get familiar with it. Unfortunately the database is extremely cluttered with my tests. I wish to clear up the database so I can start over again....
26
votes
13
answers
74k
views
Remove /index.php from the Magento URL gives 404 error
I am using Magento ver. 1.7.0.2.
Here it is the link to my website: http://dev.blokeundees.com.au/
I have to remove the /index.php folder from URLs so I edited the .htaccess file and backend too (...
20
votes
3
answers
12k
views
Adding links to category menu
I know this is an old question with a lot of answers, most of them suggest editing the menu template but that does not work for me. There is no need to explain why, let's say I'm a bit OCD about doing ...
29
votes
6
answers
21k
views
Adding columns to customer grid using observer or overriding the customer grid
I am facing an issue of adding a column on customer grid and showing values in that column.
Here is the observer code that I have been trying to show the column:-
if ($block->getType() == '...
8
votes
1
answer
10k
views
How to create the Product Grid Serializer Block In Custom module
I want to create the Grid Serializer functionality same as coming in Manage categories
If Anyone create that type functionality then please guide me.
6
votes
3
answers
4k
views
Different Footer per Page
I have a request from client where he wants to put google analytics code on different pages in Magento under footer.
I see that footer is generic, so is there a way to place a different code under ...
45
votes
5
answers
121k
views
How to get all items in cart currently?
I want to get a collection of all the items in cart currently.
How can I do this ? Any suggestions will be appreciated.
21
votes
5
answers
15k
views
Why does PATCH_SUPEE-6788 appear to have no effect on a 1.7.0.2 installation?
Note: This issue appears to apply to all versions of Magento which received the SUPEE-6788 patch. You'll see in my answer that both .htaccess and .htaccess.sample need to be restored for the patch ...
20
votes
1
answer
38k
views
How to create Multiple Store with different domain in Magento
How to create multiple stores with different domains in Magento with same products, same database but different customers.
Example :
I bought 2 domains: mystore1.com and mystore2.com (FYI: mystore1....
18
votes
3
answers
12k
views
Creating Custom Option on Product Save
I'm working on creating a custom option for my products automatically any time a product is created. What I've got so far is an observer that fires on the catalog_product_save_before event and runs ...
7
votes
4
answers
2k
views
Upgrading compromised Magento from 1.7 to 1.9
I've been doing some research but there appears to be multiple solutions, and I want to get it right. I need to upgrade my Magento from 1.7.0.2 to the latest (1.9) being that our server was ...
2
votes
1
answer
2k
views
How to create duplicate new quote from old order quote Magento 1.7?
I want to create a new order programmatically by copying an existing order's quote.
Here is what I have tried:
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
...
14
votes
1
answer
13k
views
Adding custom fields to sales_flat_order
I've been doing a fair amount of googling, trial and error but I cannot find a solution to the problem.
The ability to change the fields and order of sales_order_grid; and
The ability to display two ...
23
votes
4
answers
45k
views
Best Practices Way to Edit Magento Top-Links
Let's say we want to add a shopping cart icon right before the "My Cart" link on Magento's top links (see top links below).
What is the best way to do this?
Do something to toplinks.php?
Do ...
23
votes
6
answers
35k
views
Permanent solution for the common indexing issue
We have developed some magento project with large inventory record and always face the indexing issue we have tried every thing found on the internet for solving day-to-day indexing issue like ...
21
votes
6
answers
38k
views
What permissions should I give /var and /media?
I understand that magento says to have /var and /media at 700 for folders and 600 for files but when I do this, it breaks certain parts of my site. I am curious to see what permissions most people use ...
19
votes
3
answers
37k
views
How to diagnose "Invalid block type .." error?
Not sure how to figure out this error, I've been googling for a week and I can't seem to find a solution. Any ideas?
2013-06-10T04:04:28+00:00 ERR (3):
exception 'Mage_Core_Exception' with message '...
16
votes
3
answers
28k
views
Magento : Fatal error: Class 'Mage_Giftcards_Helper_Data' not found in …/app/Mage.php on line 546
I have installed one module extension which throws an fatal error
"Fatal error: Class 'Mage_Giftcards_Helper_Data' not found in ..../app/Mage.php on line 546" in admin.
I have reffered this link ...
14
votes
2
answers
32k
views
Adding custom layouts for CMS and Category use with custom module trouble
I have a category in my store that requires a totally different layout to the standard Magento layouts. So I created a new copy of the 1column.phtml and renamed it and made one small change to test.
...
9
votes
3
answers
15k
views
Magento Order Number Issue
I have got a strange issue with Order Number in Magento.
Recently when one order was placed on my website the Order number came was 100000350,Ideally it should have been 100000370 as my previous ...
7
votes
2
answers
12k
views
Double frontend cookies causing intermittent login issues
The site runs Magento CE 1.7.0.2.
Customers have been reporting issues with logging in. I've been able to replicate this myself on Safari only (do not know the exact steps to replicate yet though).
...
7
votes
2
answers
8k
views
Is there any free extension available for designing products label or cover in magento?
I am looking for a free product designer extension to design personalized photo covers for products like Bags,iPhone,Laptop,Mugs and tablets etc. If anyone knows free extension available in magento ...
3
votes
2
answers
11k
views
How to change URL as SEO friendly?
menus of main store's urls are as follow.
http://mainstore.magento6.com/index.php/electronics.html
But menus of the child stores' urls are as follow.
http://store2.magento6.com/catalog/category/...
24
votes
2
answers
32k
views
Creating a custom helper class in module
I've made a new module called test_helper and I want to create a helper class in this module so that I can add custom functions to be called all over my site.
I can't however seem to find any ...
18
votes
4
answers
28k
views
How to remove steps from the Magento Onepage checkout?
I'm using CE 1.7 and I am currently trying to remove the shipping, shipping method, and payment steps from Onepage checkout. I already removed the steps from local\mage\checkout\block\onepage\abstract....
16
votes
1
answer
7k
views
How do I create a non-editable Magento CMS Page?
On a fresh installation of Magento, it comes with several default CMS pages that you can edit in CMS > Pages. However, it also comes with a couple of "non-editable" CMS Pages: Orders and Returns ...
14
votes
5
answers
16k
views
Mage registry key "_singleton/weee/observer" already exists
When I try to add or edit a product I receive the following error:
Mage registry key "_singleton/weee/observer" already exists
Trace:
#0 app/Mage.php(222): Mage::throwException('Mage registry k...')
#...
13
votes
2
answers
15k
views
Is there a way to add foreach loop in email template?
I am trying to trigger a mail to customer after they place an order. This email will carry all the cross sell products of the products ordered.
I used the following links as reference:
send email ...
8
votes
3
answers
20k
views
How to add dynamic field in magento collection?
I have created one magento collection like this to calculate distance from lat long.
$collection = Mage::getModel('module/module')->getCollection()->addFieldToFilter('status',1);
$...
7
votes
3
answers
5k
views
How to make bundle of two configurable products?
I am developing a jewelry store in magento.
In this store mainly there are types of products:
1) Engagement Rings
2) Wedding Rings
3) Loose Diamonds
1) Engagement Ring :
In this there will be two ...
6
votes
2
answers
5k
views
How can I issue store credits in Magento CE?
I want to know, is there anyway that customers can have funds added to an account balance and then use their balance for shopping?
Don’t need buy coupon, gift or some things like these…
I want they ...
4
votes
6
answers
10k
views
Optimizing app/etc/local.xml - caching like Redis
This is an interesting one. I've been looking into methods of improving the performance of the Magento backend. I stumbled across this module:
colinmollenhour/Cm_Cache_Backend_File
Which looks quite ...
4
votes
2
answers
10k
views
How to override core catalog block product list?
I am trying to override core/catalog/block/product/List.php with following
Ref:http://www.magentocommerce.com/boards/viewthread/14692/
file: Ziva/Customcatalog/etc/config.xml
<config>
<...
3
votes
2
answers
8k
views
Magento redirect from all pages if not logged in
So, I need to redirect user to some page(tt can be CMS or customer/account) if he did not logged. And on this page(CMS or customer/account) I will have a form to login/register. So, I made an observer ...
1
vote
3
answers
5k
views
How to copy one quote (only cart items) to other quote (only items )
i want to copy one quote (only cart items) to other quote (only items ).
Only want to copy cart products to other new quote.
Suppose: i have old quote,which id is 5,have 4 items
i have another ...
21
votes
2
answers
14k
views
Error while printing invoice
I've got a standard Magento 1.8.0.0 installation on Windows 7
using the BitNami Magento installation for XAMPP.
When I open the Sales -> Invoices screen and click on an
invoice and then click on the ...
20
votes
3
answers
36k
views
How to print array contents in log file?
How to print array contents into a log file in magento CE 1.7 without iterating through a loop?
18
votes
3
answers
19k
views
how to connect another database from magento
Is it possible to connect to another database from Magento and accessing data?
If I need to create a module, how can I create a module to access another database? Is there any tutorial which tells ...
14
votes
6
answers
27k
views
Magento MySQL Has Gone Away Error
I'm having loads of weird issues on Magento CE 1.7.0.2. During normal operations, the site will occasionally produce a Magento Error Page (There has been an error processing your request) on both ...
11
votes
4
answers
24k
views
Watching Add to Cart Event - quote item id is empty
I am trying to catch the event that fires once an item is added to the cart. I'm currently watching the following event: checkout_cart_product_add_after
According to magento source this event is ...
11
votes
3
answers
14k
views
Buy X Product and Get Y another product free of same category
How to implement and apply Buy X And Get Y another product of same category free in the shopping cart price rules in magento.
8
votes
2
answers
27k
views
Recommended Magento PHP memory limit
Simple question. What is your recommended PHP memory limit for Magento?
8
votes
7
answers
20k
views
Magento 1.7.0.2 cannot login to admin locally
I installed locally magento 1.7.0.2 BUT i cannot login to admin panel!
WHAT TO DO?! I try absolutely everything solution in WEB!
I tried these suggested solutions
Clear the contents of the ...
7
votes
2
answers
15k
views
How to call a controller action outside magento?
We can create php scripts which runs outside magento. And also use magento functionalities by using the following code snippet in it.
define('ROOT', '');
$mage_php_url = ROOT.'app/Mage.php';
...
7
votes
11
answers
42k
views
CSS is not loading on the frontend in Magento
We are facing an issue with the css styling in Magento store. I tried refreshing the cache in admin but that didn´tt fix the issue.
Use
Varnish as external cache
NGINX
Magento 1.7.0.2
Ultimo as ...
7
votes
2
answers
17k
views
Override a controller in Adminhtml
Currently I'm trying to override the GroupController of Mage_Adminhtml_Customer so I can add some code for saving my custom field in the Customer Groups menu. As you can think it doesn't really work ...
7
votes
2
answers
11k
views
How to add a Total row in a magento grid
I'm creating a new module that uses a order grid for particular product(this is not the report grid) in magento admin i successfully create new order grid for that but i want to get total price for ...
6
votes
1
answer
7k
views
Call to a member function getBackend() on a non-object
Client is trying to setup promotions via the admin but when saving and applying the promotion the server logs the following error (admin return blank screen):
PHP Fatal error: Call to a member ...
6
votes
2
answers
12k
views
change stock availability programmatically
How I can change stock availability ie in stock and out of stock of product programmatically using product ID?