Questions tagged [magento-1.7]

Magento Community version 1.7

Filter by
Sorted by
Tagged with
29
votes
3answers
31k 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 ...
20
votes
3answers
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 ...
26
votes
13answers
67k 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 (...
75
votes
13answers
78k 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....
28
votes
6answers
19k 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
1answer
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
3answers
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 ...
18
votes
1answer
37k 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....
45
votes
5answers
112k 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.
18
votes
3answers
11k 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 ...
21
votes
5answers
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 ...
7
votes
4answers
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
1answer
455 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); ...
9
votes
3answers
12k 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 ...
13
votes
1answer
12k 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 ...
14
votes
2answers
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. ...
23
votes
6answers
33k 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 ...
22
votes
4answers
44k 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 ...
21
votes
6answers
36k 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 ...
7
votes
2answers
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 ...
19
votes
3answers
31k 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 '...
7
votes
2answers
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). ...
3
votes
2answers
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
2answers
31k 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 ...
16
votes
1answer
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 ...
16
votes
3answers
27k 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 ...
18
votes
4answers
27k 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....
7
votes
3answers
4k 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 ...
7
votes
3answers
18k 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); $...
1
vote
3answers
4k 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 ...
10
votes
1answer
9k 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 ...
6
votes
2answers
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 ...
3
votes
2answers
7k 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 ...
4
votes
6answers
9k 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
2answers
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> <...
17
votes
3answers
16k 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 ...
21
votes
2answers
13k 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 ...
26
votes
1answer
104k views

Mage::getBaseUrl() vs Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB)

Is there a reason to use Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB) rather than Mage::getBaseUrl()? I've seen both in use, and they both return the same thing. Is the longer one redundant? ...
18
votes
3answers
32k 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?
7
votes
2answers
14k 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
3answers
9k 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
1answer
11k views

change stock availability programmatically

How I can change stock availability ie in stock and out of stock of product programmatically using product ID?
6
votes
1answer
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 ...
11
votes
4answers
23k 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 ...
8
votes
2answers
8k 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
2answers
26k views

Recommended Magento PHP memory limit

Simple question. What is your recommended PHP memory limit for Magento?
7
votes
2answers
16k 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 ...
5
votes
9answers
34k 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 ...
4
votes
3answers
8k views

How to add multiple product to magento cart from outside of magento?

I have to add multiple items into magento cart from out side of magento (external website), through /path/to/app/checkout/cart/add?product=[id]&qty=[qty] this method I can add one product to the ...
14
votes
5answers
22k 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 ...